/* ========== 통합 날씨 v2 스타일 ========== */

:root {
    --weather-primary: #2196F3;
    --weather-secondary: #4FC3F7;
    --weather-accent: #FFC107;
    --weather-success: #4CAF50;
    --weather-danger: #F44336;
    --weather-gray-100: #F8F9FA;
    --weather-gray-200: #E9ECEF;
    --weather-gray-300: #DEE2E6;
    --weather-gray-500: #ADB5BD;
    --weather-gray-700: #495057;
    --weather-gray-900: #212529;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
}

.weather-unified-page {
    min-height: 100vh;
    position: relative;
}

/* ========== 배경 ========== */
.weather-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.weather-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 50%, #FFF8E7 100%);
    transition: background 0.5s ease;
}

.weather-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 12s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ========== 메인 컨테이너 ========== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 100px;
}

/* ========== 헤더 ========== */
.weather-header {
    padding: 16px 0;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* 왼쪽: 뒤로가기 */
.back-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--weather-gray-700);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* 가운데: 타이틀 */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--weather-gray-900);
    flex: 1;
    text-align: center;
}

.header-title i {
    color: var(--weather-primary);
}

/* 오른쪽: 버튼 그룹 */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--weather-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* 관리자 DB 업데이트 버튼 */
.admin-update-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-update-btn:hover {
    background: linear-gradient(135deg, #E64A19 0%, #BF360C 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,87,34,0.4);
}

.admin-update-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.location-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.location-icon {
    color: var(--weather-danger);
    font-size: 1.1rem;
}

.location-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--weather-gray-900);
    cursor: pointer;
}

.location-select:focus {
    outline: none;
}

.update-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--weather-gray-500);
}

/* ========== 히어로 섹션 (현재날씨 + 생활지수) ========== */
.hero-weather-section {
    margin-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 현재 날씨 카드 */
.current-weather-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 32px;
    text-align: center;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--weather-gray-200);
    border-top-color: var(--weather-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.weather-icon-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon-wrap i {
    font-size: 4rem;
    color: #FFD700;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.weather-temp {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--weather-gray-900);
}

.temp-unit {
    font-size: 2rem;
    font-weight: 300;
    color: var(--weather-gray-700);
    margin-top: 8px;
}

.weather-desc {
    font-size: 1.25rem;
    color: var(--weather-gray-700);
    margin-bottom: 24px;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--weather-primary);
}

.detail-label {
    font-size: 0.75rem;
    color: var(--weather-gray-500);
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--weather-gray-900);
}

/* 생활지수 컴팩트 - 새 디자인 */
.life-index-compact {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 16px;
}

.life-index-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--weather-gray-900);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.life-index-title i {
    color: var(--weather-danger);
    font-size: 0.9rem;
}

.life-index-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 지수 배지 그리드 */
.life-index-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.index-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0,0,0,0.04);
    color: var(--weather-gray-700);
    flex: 1;
    min-width: 70px;
    justify-content: center;
}

.index-badge i {
    font-size: 0.85rem;
}

.index-badge .badge-label {
    font-size: 0.7rem;
    color: var(--weather-gray-500);
}

.index-badge .badge-value {
    font-weight: 700;
}

.index-badge.level-good {
    background: linear-gradient(135deg, rgba(76,175,80,0.15) 0%, rgba(76,175,80,0.05) 100%);
    color: #2E7D32;
}

.index-badge.level-moderate {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,193,7,0.05) 100%);
    color: #F57F17;
}

.index-badge.level-bad {
    background: linear-gradient(135deg, rgba(255,152,0,0.15) 0%, rgba(255,152,0,0.05) 100%);
    color: #E65100;
}

.index-badge.level-danger {
    background: linear-gradient(135deg, rgba(244,67,54,0.15) 0%, rgba(244,67,54,0.05) 100%);
    color: #C62828;
}

.index-badge.level-info {
    background: linear-gradient(135deg, rgba(33,150,243,0.15) 0%, rgba(33,150,243,0.05) 100%);
    color: #1565C0;
}

/* 생활 조언 리스트 (박스 없이 깔끔하게) */
.life-advice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

.advice-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--weather-gray-700);
    padding: 4px 0;
}

.advice-line i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.advice-line span {
    line-height: 1.3;
}

/* ========== 섹션 공통 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--weather-gray-900);
    margin: 0;
}

.section-header h2 i {
    color: var(--weather-primary);
}

.section-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--weather-primary);
    color: white;
    border-radius: 20px;
}

.publish-time {
    font-size: 0.8rem;
    color: var(--weather-gray-500);
}

/* ========== 시간별 예보 ========== */
.hourly-section {
    margin-bottom: 24px;
    overflow: visible;
}

.hourly-scroll-container {
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 0 -20px;
    padding: 0 20px 15px;
    -webkit-overflow-scrolling: touch;
    touch-action: auto; /* 🔥 JS에서 가로/세로 스크롤 제어 */
    overscroll-behavior-x: contain;
    width: calc(100% + 40px);
    cursor: grab;
    user-select: none;
}

.hourly-scroll-container::-webkit-scrollbar {
    height: 10px;
}

.hourly-scroll-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.hourly-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    cursor: grab;
}

.hourly-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

.hourly-forecast {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    min-width: max-content;
    width: max-content;
    flex-wrap: nowrap;
}

.hourly-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 70px;
}

.hourly-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--weather-gray-700);
}

.hourly-icon i {
    font-size: 1.5rem;
    color: #FFD700;
}

.hourly-temp {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--weather-gray-900);
}

.hourly-desc {
    font-size: 0.75rem;
    color: var(--weather-gray-500);
}

.hourly-pop {
    font-size: 0.7rem;
    color: #4682B4;
    font-weight: 500;
}

/* 시간대별 배경색 */
.hourly-item.time-night {
    background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
    color: white;
}
.hourly-item.time-night .hourly-time,
.hourly-item.time-night .hourly-temp { color: white; }
.hourly-item.time-night .hourly-desc { color: rgba(255,255,255,0.7); }
.hourly-item.time-night .hourly-pop { color: #90CAF9; }

.hourly-item.time-morning {
    background: linear-gradient(180deg, #FFE0B2 0%, #FFCC80 100%);
    color: #5D4037;
}
.hourly-item.time-morning .hourly-time,
.hourly-item.time-morning .hourly-temp { color: #5D4037; }
.hourly-item.time-morning .hourly-desc { color: #8D6E63; }
.hourly-item.time-morning .hourly-pop { color: #1565C0; }

.hourly-item.time-day {
    background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1565C0;
}
.hourly-item.time-day .hourly-time,
.hourly-item.time-day .hourly-temp { color: #1565C0; }
.hourly-item.time-day .hourly-desc { color: #1976D2; }
.hourly-item.time-day .hourly-pop { color: #0D47A1; }

.hourly-item.time-evening {
    background: linear-gradient(180deg, #FFB74D 0%, #FF8A65 100%);
    color: #BF360C;
}
.hourly-item.time-evening .hourly-time,
.hourly-item.time-evening .hourly-temp { color: #BF360C; }
.hourly-item.time-evening .hourly-desc { color: #D84315; }
.hourly-item.time-evening .hourly-pop { color: #4527A0; }

/* 현재 시간 강조 (시간대 스타일 위에 오버라이드) */
.hourly-item.now {
    background: linear-gradient(135deg, var(--weather-primary) 0%, #1976D2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
    border: 2px solid white;
}

.hourly-item.now .hourly-time,
.hourly-item.now .hourly-temp {
    color: white !important;
    font-weight: 700;
}

.hourly-item.now .hourly-desc,
.hourly-item.now .hourly-pop {
    color: rgba(255,255,255,0.9) !important;
}

/* 지나간 시간 (흐리게) */
.hourly-item.past {
    opacity: 0.5;
}

/* ========== 일별 예보 ========== */
.daily-section {
    margin-bottom: 24px;
}

.daily-scroll-container {
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 0 -20px;
    padding: 0 20px 15px;
    -webkit-overflow-scrolling: touch;
    touch-action: auto; /* 🔥 JS에서 가로/세로 스크롤 제어 */
    overscroll-behavior-x: contain;
    width: calc(100% + 40px);
    cursor: grab;
    user-select: none;
}

.daily-scroll-container::-webkit-scrollbar {
    height: 10px;
}

.daily-scroll-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.daily-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    cursor: grab;
}

.daily-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

.daily-forecast {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    min-width: max-content;
    width: max-content;
    flex-wrap: nowrap;
}

.daily-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 88px;
    text-align: center;
}

.daily-item.short-term {
    border-top: 3px solid var(--weather-primary);
}

.daily-item.mid-term {
    border-top: 3px solid var(--weather-secondary);
}

.daily-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--weather-primary);
}

.day-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--weather-gray-900);
}

.day-date {
    font-size: 0.8rem;
    color: var(--weather-gray-500);
}

.daily-weather {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.weather-am, .weather-pm, .weather-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.weather-am i, .weather-pm i, .weather-single i {
    font-size: 1.3rem;
}

.weather-am span, .weather-pm span, .weather-single span {
    font-size: 0.75rem;
    color: var(--weather-gray-500);
}

.weather-single {
    flex: 1;
}

.daily-temp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.95rem;
}

.temp-min {
    color: var(--weather-primary);
    font-weight: 600;
}

.temp-max {
    color: var(--weather-danger);
    font-weight: 600;
}

.temp-divider {
    color: var(--weather-gray-300);
}

.temp-note {
    font-size: 0.75rem;
    color: var(--weather-gray-500);
    font-style: italic;
}

/* ========== 기상전망 텍스트 ========== */
.forecast-text-section {
    margin-bottom: 24px;
}

.forecast-text-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

.forecast-text-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--weather-gray-700);
    margin: 0;
    word-break: keep-all;
}

/* ========== 해상예보 ========== */
.sea-forecast-section {
    margin-bottom: 24px;
}

.sea-region-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #0077B6, #00B4D8);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sea-forecast-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 16px;
}

.sea-forecast-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.sea-forecast {
    display: flex;
    gap: 12px;
    min-width: max-content;
}

.sea-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,119,182,0.1) 0%, rgba(0,180,216,0.05) 100%);
    border-radius: var(--radius-md);
    min-width: 90px;
    border: 1px solid rgba(0,119,182,0.2);
}

.sea-item .sea-date {
    font-size: 0.8rem;
    color: var(--weather-gray-500);
}

.sea-item .sea-day {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--weather-gray-700);
}

.sea-item .sea-weather {
    font-size: 1.5rem;
}

.sea-item .sea-weather-name {
    font-size: 0.75rem;
    color: var(--weather-gray-600);
}

.sea-item .sea-wave {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: rgba(0,119,182,0.15);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #0077B6;
    font-weight: 500;
}

.sea-item .sea-wave i {
    font-size: 0.9rem;
}

/* ========== 푸터 ========== */
.data-source {
    text-align: center;
    padding: 20px;
}

.data-source a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--weather-gray-500);
    text-decoration: none;
}

.data-source a:hover {
    color: var(--weather-primary);
}

/* ========== 로딩 & 없음 ========== */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--weather-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--weather-gray-500);
    font-size: 0.9rem;
}

/* ========== 모바일 반응형 - 앱 스타일 ========== */
@media (max-width: 768px) {
    .main-container {
        padding: 56px 12px 70px;
    }
    
    /* 헤더 컴팩트화 */
    .weather-header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .header-top {
        margin-bottom: 10px;
    }
    
    .back-link, .refresh-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .location-bar {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .location-icon {
        font-size: 0.95rem;
    }
    
    .location-select {
        font-size: 0.9rem;
    }
    
    .update-time {
        font-size: 0.75rem;
    }
    
    /* 히어로 섹션 - 세로 배치 */
    .hero-weather-section {
        margin-bottom: 16px;
    }
    
    /* 현재 날씨 카드 컴팩트 */
    .current-weather-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    
    .weather-main {
        flex-direction: row;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .weather-icon-wrap {
        width: 60px;
        height: 60px;
    }
    
    .weather-icon-wrap i {
        font-size: 2.5rem;
    }
    
    .temp-value {
        font-size: 3rem;
    }
    
    .temp-unit {
        font-size: 1.2rem;
        margin-top: 4px;
    }
    
    .weather-desc {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .weather-details {
        gap: 12px;
        justify-content: space-around;
    }
    
    .detail-item {
        min-width: 50px;
        gap: 2px;
    }
    
    .detail-item i {
        font-size: 1rem;
    }
    
    .detail-label {
        font-size: 0.65rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    /* 생활지수 컴팩트 */
    .life-index-compact {
        padding: 12px;
        border-radius: var(--radius-lg);
        margin-top: 12px;
    }
    
    .life-index-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .life-index-grid {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .index-badge {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .index-badge .badge-label {
        font-size: 0.65rem;
    }
    
    .life-advice-list {
        gap: 6px;
        padding-top: 6px;
    }
    
    .advice-line {
        font-size: 0.78rem;
        gap: 8px;
        padding: 3px 0;
    }
    
    .advice-line i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    /* 섹션 헤더 */
    .section-header {
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .section-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    /* 시간별 예보 컴팩트 */
    .hourly-section {
        margin-bottom: 16px;
    }
    
    .hourly-scroll-container {
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .hourly-forecast {
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }
    
    .hourly-item {
        padding: 10px 12px;
        min-width: 56px;
        gap: 4px;
    }
    
    .hourly-time {
        font-size: 0.75rem;
    }
    
    .hourly-icon i {
        font-size: 1.2rem;
    }
    
    .hourly-temp {
        font-size: 0.95rem;
    }
    
    .hourly-desc {
        font-size: 0.65rem;
    }
    
    /* 일별 예보 컴팩트 */
    .daily-section {
        margin-bottom: 16px;
    }
    
    .daily-scroll-container {
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .daily-forecast {
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }
    
    .daily-item {
        padding: 10px 8px;
        min-width: 70px;
        gap: 6px;
    }
    
    .day-label {
        font-size: 0.65rem;
    }
    
    .day-name {
        font-size: 0.85rem;
    }
    
    .day-date {
        font-size: 0.7rem;
    }
    
    .weather-am i, .weather-pm i, .weather-single i {
        font-size: 1.1rem;
    }
    
    .weather-am span, .weather-pm span, .weather-single span {
        font-size: 0.65rem;
    }
    
    .daily-temp {
        font-size: 0.85rem;
    }
    
    /* 기상전망 컴팩트 */
    .forecast-text-section {
        margin-bottom: 16px;
    }
    
    .forecast-text-card {
        padding: 14px;
        border-radius: var(--radius-md);
    }
    
    .forecast-text-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* 해상예보 컴팩트 */
    .sea-forecast-section {
        margin-bottom: 16px;
    }
    
    .sea-forecast-container {
        padding: 12px;
    }
    
    .sea-forecast {
        gap: 8px;
    }
    
    .sea-item {
        padding: 10px 12px;
        min-width: 72px;
        gap: 6px;
    }
    
    .sea-item .sea-date {
        font-size: 0.7rem;
    }
    
    .sea-item .sea-day {
        font-size: 0.8rem;
    }
    
    .sea-item .sea-weather {
        font-size: 1.2rem;
    }
    
    .sea-item .sea-weather-name {
        font-size: 0.65rem;
    }
    
    .sea-item .sea-wave {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    /* 푸터 */
    .data-source {
        padding: 12px;
    }
    
    .data-source a {
        font-size: 0.75rem;
    }
}
