/* ========================================
   오늘 핫 순위 시스템 - 새로운 디자인
   ======================================== */

/* 전체 컨테이너 */
.today-hot-section {
    background-color: #1a1a1a; /* 어두운 배경 */
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 타이틀 영역 */
.today-hot-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px;
}

.fire-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.title-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 순위 리스트 */
.today-hot-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

/* 순위 아이템 */
.ranking-item {
    display: flex;
    align-items: flex-start;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    min-height: 50px;
    margin-bottom: 0;
}

.ranking-item:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ranking-item.empty {
    opacity: 0.6;
    background-color: #1e1e1e;
}

/* 순위 번호 */
.rank-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 30px;
    text-align: center;
    margin-right: 15px;
    line-height: 1;
}

/* 장소 정보 */
.place-info {
    flex: 1;
    margin-right: 15px;
}

.place-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.place-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.location-text {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 500;
}

.place-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.stat-tag {
    background-color: #333333;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 혼잡도 태그 - 핑크색 */
.congestion-tag {
    background-color: #333333;
    color: #ff6b9d;
    font-weight: 600;
}

/* 대기시간 태그 - 초록색 */
.wait-tag {
    background-color: #333333;
    color: #4CAF50;
    font-weight: 600;
}

/* 성비 태그 - 핑크색 */
.gender-tag {
    background-color: #333333;
    color: #ff6b9d;
    font-weight: 600;
}

/* 액션 버튼들 */
.place-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.status-tag {
    background-color: #4CAF50; /* 연한 초록색 */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.hot-tag {
    background-color: #ff4444; /* 빨간색 */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* 인기 백분율 */
.hot-score {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.fire-icon {
    font-size: 1rem;
}

.percentage {
    color: #ff4444;
    font-size: 1rem;
    font-weight: 700;
}

/* 더보기 버튼 */
.toggle-button {
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-button.expanded {
    background-color: transparent;
}

.toggle-icon {
    transition: all 0.3s ease;
    font-size: 0.8rem;
}


/* 로딩 상태 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #cccccc;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 상태 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #ff4444;
    gap: 10px;
}

.error-icon {
    font-size: 2rem;
}

/* ===== 모바일 반응형 스타일 ===== */

/* 태블릿 스타일 (768px 이하) */
@media (max-width: 768px) {
    .today-hot-section {
        padding: 15px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .today-hot-title {
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .fire-logo {
        width: 25px;
        height: 25px;
    }
    
    .title-text {
        font-size: 1.3rem;
    }
    
    .today-hot-list {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .ranking-item {
        padding: 6px 12px;
        border-radius: 6px;
        min-height: 45px;
    }
    
    .rank-number {
        font-size: 1.1rem;
        min-width: 25px;
        margin-right: 12px;
    }
    
    .place-name-line {
        gap: 6px;
        margin-bottom: 3px;
    }
    
    .place-name {
        font-size: 0.95rem;
    }
    
    .location-text {
        font-size: 0.8rem;
    }
    
    .place-stats {
        gap: 4px;
        margin-top: 3px;
    }
    
    .stat-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .hot-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .hot-score {
        gap: 3px;
    }
    
    .fire-icon {
        font-size: 0.9rem;
    }
    
    .percentage {
        font-size: 0.9rem;
    }
    
    .toggle-button {
        padding: 12px 15px;
        font-size: 1rem;
        margin-bottom: 0;
    }
}

/* 모바일 스타일 (480px 이하) */
@media (max-width: 480px) {
    .today-hot-section {
        padding: 12px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .today-hot-title {
        margin-bottom: 15px;
        gap: 6px;
    }
    
    .fire-logo {
        width: 22px;
        height: 22px;
    }
    
    .title-text {
        font-size: 1.2rem;
    }
    
    .today-hot-list {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .ranking-item {
        padding: 5px 10px;
        border-radius: 5px;
        min-height: 40px;
    }
    
    .rank-number {
        font-size: 1rem;
        min-width: 22px;
        margin-right: 8px;
    }
    
    .place-info {
        flex: 1;
        margin-right: 8px;
    }
    
    .place-name-line {
        gap: 5px;
        margin-bottom: 2px;
    }
    
    .place-name {
        font-size: 0.9rem;
    }
    
    .location-text {
        font-size: 0.75rem;
    }
    
    .place-stats {
        gap: 3px;
        margin-top: 2px;
    }
    
    .stat-tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
    
    .hot-tag {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .hot-score {
        gap: 2px;
    }
    
    .fire-icon {
        font-size: 0.8rem;
    }
    
    .percentage {
        font-size: 0.8rem;
    }
    
    .toggle-button {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* 소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    .today-hot-section {
        padding: 10px;
        margin: 8px 0;
        border-radius: 6px;
    }
    
    .today-hot-title {
        margin-bottom: 12px;
        gap: 5px;
    }
    
    .fire-logo {
        width: 20px;
        height: 20px;
    }
    
    .title-text {
        font-size: 1.1rem;
    }
    
    .today-hot-list {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .ranking-item {
        padding: 4px 8px;
        border-radius: 4px;
        min-height: 35px;
    }
    
    .rank-number {
        font-size: 0.9rem;
        min-width: 20px;
        margin-right: 6px;
    }
    
    .place-info {
        margin-right: 6px;
    }
    
    .place-name-line {
        gap: 4px;
        margin-bottom: 1px;
    }
    
    .place-name {
        font-size: 0.85rem;
    }
    
    .location-text {
        font-size: 0.7rem;
    }
    
    .place-stats {
        gap: 2px;
        margin-top: 1px;
    }
    
    .stat-tag {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .hot-tag {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .hot-score {
        gap: 2px;
    }
    
    .fire-icon {
        font-size: 0.7rem;
    }
    
    .percentage {
        font-size: 0.7rem;
    }
    
    .toggle-button {
        padding: 8px 10px;
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}