/* Weather Landing Page (BWT-1886) — adapted from the msn-weather-layout mockup.
   Scoped with the .wx- prefix so it never collides with site.css / ces-combo-reel.css.
   Works in both light (#F2FBFF) and dark (.dark) themes set by _CESComboReelLayout. */

.wx-main {
    padding: 1rem 0 2rem;
}

.wx-page-header {
    margin-bottom: 1.25rem;
}

.wx-location {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.wx-subtle {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: #64748b;
}

.dark .wx-location { color: #f8fafc; }
.dark .wx-subtle { color: #94a3b8; }

/* Cards */
.wx-card {
    background: linear-gradient(135deg, rgba(223, 218, 201, 0.75) 0%, rgba(81, 157, 192, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .wx-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.55) 0%, rgba(30, 41, 59, 0.175) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.wx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wx-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .wx-section-title { color: #f1f5f9; }

.wx-time {
    font-size: 0.85rem;
    color: #64748b;
}
.dark .wx-time { color: #94a3b8; }

/* Current weather */
.wx-current-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wx-current-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.3));
}
.dark .wx-current-icon { filter: none; }

.wx-current-temp {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}
.wx-current-temp sup {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
}
.dark .wx-current-temp { color: #f8fafc; }

.wx-current-right { margin-left: 0.25rem; }

.wx-current-condition {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}
.dark .wx-current-condition { color: #e2e8f0; }

.wx-current-feels {
    font-size: 0.95rem;
    color: #64748b;
}
.dark .wx-current-feels { color: #94a3b8; }

/* Metrics breakdown — MSN-style horizontal row with a top divider */
.wx-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.dark .wx-metrics { border-top-color: rgba(255, 255, 255, 0.12); }

.wx-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 1.25rem 0.4rem 0;
    min-width: 92px;
}

.wx-metric-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}
.dark .wx-metric-label { color: #94a3b8; }

.wx-info {
    font-size: 0.7rem;
    color: #94a3b8;
    cursor: help;
}
.dark .wx-info { color: #64748b; }

.wx-metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dark .wx-metric-val { color: #f1f5f9; }

.wx-wind-arrow {
    display: inline-block;
    font-size: 0.85rem;
    color: #2563eb;
    line-height: 1;
}

/* Next 24 hours — horizontal scroll with a minimal, fade-on-hover slider */
.wx-hourly-scroll {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    /* Firefox: thin track, transparent thumb until hovered */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.35s ease;
}
.wx-hourly-scroll:hover,
.wx-hourly-scroll:focus-within {
    scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
}
.dark .wx-hourly-scroll:hover,
.dark .wx-hourly-scroll:focus-within {
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

/* WebKit/Blink: keep a slim rail, fade the thumb in via color transition */
.wx-hourly-scroll::-webkit-scrollbar {
    height: 6px;
}
.wx-hourly-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.wx-hourly-scroll::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 999px;
    transition: background-color 0.35s ease;
}
.wx-hourly-scroll:hover::-webkit-scrollbar-thumb,
.wx-hourly-scroll:focus-within::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.55);
}
.dark .wx-hourly-scroll:hover::-webkit-scrollbar-thumb,
.dark .wx-hourly-scroll:focus-within::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.55);
}

.wx-hour {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
    padding: 0.6rem 0.4rem;
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.03);
}
.dark .wx-hour { background: rgba(255, 255, 255, 0.05); }

.wx-hour.is-now {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.wx-hour-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.dark .wx-hour-time { color: #cbd5e1; }

.wx-hour-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0.35rem auto;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.28));
}
.dark .wx-hour-icon { filter: none; }

.wx-hour-temp {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.dark .wx-hour-temp { color: #f1f5f9; }

.wx-hour-pop {
    font-size: 0.72rem;
    color: #2563eb;
    margin-top: 0.15rem;
}

/* 5-day forecast table */
.wx-forecast-table {
    width: 100%;
    border-collapse: collapse;
}
.wx-forecast-table td {
    padding: 0.65rem 0.4rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}
.dark .wx-forecast-table td { border-top-color: rgba(255, 255, 255, 0.08); }
.wx-forecast-table tr:first-child td { border-top: none; }

.wx-ft-day { font-weight: 600; color: #0f172a; white-space: nowrap; }
.dark .wx-ft-day { color: #f1f5f9; }
.wx-ft-cond { color: #475569; }
.wx-ft-condwrap { display: inline-flex; align-items: center; gap: 0.5rem; }
.wx-ft-cond-icon { width: 32px; height: 32px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.28)); }
.dark .wx-ft-cond-icon { filter: none; }
td.wx-ft-icon { width: 49px; }
.dark .wx-ft-cond { color: #cbd5e1; }
.wx-ft-pop { color: #2563eb; font-size: 0.85rem; white-space: nowrap; }
.wx-ft-temps { text-align: right; white-space: nowrap; color: #475569; }
.dark .wx-ft-temps { color: #cbd5e1; }
.wx-ft-temps strong { color: #0f172a; }
.dark .wx-ft-temps strong { color: #f8fafc; }

.wx-unavailable { color: #64748b; }

/* Related stories sidebar */
.wx-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.wx-related-item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    text-decoration: none;
}
.wx-related-thumb {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex: 0 0 auto;
}
.wx-related-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1e293b;
}
.dark .wx-related-title { color: #e2e8f0; }
.wx-related-item:hover .wx-related-title { color: #2563eb; }

/* Related-stories sidebar sticky behavior. The resting (scrolled-to-top) position is pushed
   down by ~the page-header height so it lines up with the Current Weather card instead of the
   header above it — i.e. scrolling back up never lifts it higher than that card. The larger
   `top` keeps the pinned (scrolled-down) position from riding up to the top of the screen.
   Values are an approximation of the header height; tweak if the header wraps. */
.wx-related-sticky {
    position: sticky;
    top: 9.5rem;
    margin-top: 4.75rem;
}

.wx-news { margin-top: 1.5rem; }

/* Nav weather widget — match the card gradient on the weather landing page. Scoped to this
   stylesheet (loaded only here) so other combo-reel pages keep the default solid widget. */
.ces-weather-widget {
    background: linear-gradient(135deg, rgba(223, 218, 201, 0.6) 0%, rgba(81, 157, 192, 0.45) 100%);
}
.dark .ces-weather-widget {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.55) 0%, rgba(30, 41, 59, 0.175) 100%);
}
