/* ===== 날씨 페이지 CSS ===== */
.weather-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

/* 헤더 */
.weather-page-header {
    text-align: center;
    margin-bottom: 1.8rem;
}
.weather-page-header h1 {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--wa-color-text-normal, #222);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}
.weather-page-header h1 i {
    color: var(--wa-color-brand-50, #3178c0);
    margin-right: 0.3em;
}
.weather-page-desc {
    font-size: 0.78em;
    color: var(--wa-color-text-quiet, #999);
    margin: 0;
}

/* ===== 도시별 현재 날씨 카드 그리드 ===== */
.weather-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}
@media (max-width: 600px) {
    .weather-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* 카드 */
.weather-card {
    background: var(--wa-color-neutral-95, #f8f9fa);
    border-radius: 12px;
    padding: 1rem 1.1rem 0.7rem;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
}

/* 도시 이름 */
.weather-card-city {
    font-size: 0.92em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
}
.weather-card-city-en {
    font-size: 0.78em;
    font-weight: 400;
    color: var(--wa-color-text-quiet, #aaa);
}

/* 현재 날씨 */
.weather-card-current {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}
.weather-card-icon {
    font-size: 2.4em;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.weather-card-temp {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--wa-color-text-normal, #222);
    line-height: 1.2;
}
.weather-card-details {
    display: flex;
    gap: 0.7em;
    font-size: 0.7em;
    color: var(--wa-color-text-quiet, #888);
    margin-top: 0.15rem;
}
.weather-card-details i {
    margin-right: 0.15em;
    color: var(--wa-color-brand-50, #3178c0);
}

/* 7일 예보 (가로 스크롤 지원) */
.weather-card-forecast {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--wa-color-neutral-90, #e8e8e8);
    padding-top: 0.55rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.weather-card-fday {
    flex: 0 0 auto;
    min-width: 42px;
    text-align: center;
    padding: 0 0.15rem;
}
.weather-card-flabel {
    font-size: 0.62em;
    font-weight: 600;
    color: var(--wa-color-text-quiet, #999);
    margin-bottom: 0.2rem;
    white-space: nowrap;
}
.weather-card-ficon {
    font-size: 1.05em;
    margin-bottom: 0.12rem;
}
.weather-card-ftemps {
    font-size: 0.65em;
    display: flex;
    justify-content: center;
    gap: 0.25em;
}
.ftemp-max {
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
}
.ftemp-min {
    color: var(--wa-color-text-quiet, #bbb);
}

/* ===== 시간대별 테이블 ===== */
.wt-section-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--wa-color-brand-50, #3178c0);
    display: inline-block;
}
.wt-section-header h2 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
    margin: 0;
}
.wt-section-header h2 i {
    color: var(--wa-color-brand-50, #3178c0);
    margin-right: 0.3em;
}
.wt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    background: var(--wa-color-neutral-97, #fafbfc);
}
.wt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
    min-width: 520px;
}
.wt-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.wt-th-time,
.wt-th-city {
    padding: 0.55rem 0.4rem;
    font-weight: 600;
    font-size: 0.92em;
    color: var(--wa-color-text-normal, #444);
    background: var(--wa-color-neutral-95, #f0f2f5);
    text-align: center;
    white-space: nowrap;
}
.wt-th-time {
    width: 60px;
    text-align: center;
    border-radius: 8px 0 0 0;
}
.wt-th-city:last-child {
    border-radius: 0 8px 0 0;
}

/* 섹션 구분 행 (오늘, 내일, 모레, 날짜) */
.wt-section-row td {
    padding: 0;
}
.wt-section-label {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--wa-color-brand-50, #3178c0);
    padding: 0.8rem 0.5rem 0.3rem !important;
    background: transparent;
    letter-spacing: 0.02em;
}

/* 데이터 행 */
.wt-data-row {
    background: transparent;
    transition: background 0.15s;
}
.wt-data-row:nth-child(even) {
    background: var(--wa-color-neutral-97, #fafbfc);
}
.wt-data-row:hover {
    background: var(--wa-color-neutral-95, #f0f2f5);
}
.wt-td-time {
    padding: 0.5rem 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--wa-color-text-quiet, #777);
    white-space: nowrap;
}
.wt-td-city {
    padding: 0.4rem 0.3rem;
    text-align: center;
}

/* 셀 내용: 아이콘 + 온도 + 설명 세로 배치 */
.wt-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.wt-cell-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06));
}
.wt-cell-temp {
    font-size: 1em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
}
.wt-cell-desc {
    font-size: 0.75em;
    color: var(--wa-color-text-quiet, #999);
}

/* 푸터 */
.weather-page-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.68em;
    color: var(--wa-color-text-quiet, #aaa);
}
.weather-page-footer a {
    color: var(--wa-color-brand-50, #3178c0);
    text-decoration: none;
}
.weather-page-footer a:hover {
    text-decoration: underline;
}
