/* ════════════════════════════════════════════════════════════════
   WeatherNow – Main Stylesheet
   Modern WeatherStar-inspired Weather Client
   ════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Dark Theme (default) */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card2: #1e2a40;
    --accent: #3b82f6;
    --accent2: #06b6d4;
    --accent3: #8b5cf6;
    --text-primary: #f0f4ff;
    --text-secondary: #94a3b8;
    --text-accent: #fbbf24;
    --border: rgba(59, 130, 246, 0.2);
    --border-strong: rgba(59, 130, 246, 0.5);
    --alert-bg: #7f1d1d;
    --alert-text: #fca5a5;
    --alert-border: #ef4444;
    --glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-accent: 0 0 30px rgba(251, 191, 36, 0.3);
    --grad-top: linear-gradient(180deg, #0f1729 0%, #1a2235 100%);
    --grad-card: linear-gradient(135deg, #1a2235 0%, #111827 100%);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --slide-duration: 0.5s;
}

/* Retro Theme */
.theme-retro {
    --bg-primary: #1a0a2e;
    --bg-secondary: #0d1b2a;
    --bg-card: #0a1628;
    --bg-card2: #0e1e34;
    --accent: #ffcc00;
    --accent2: #00ff88;
    --accent3: #ff6b35;
    --text-primary: #e8f4f8;
    --text-secondary: #7ecfd4;
    --text-accent: #ffcc00;
    --border: rgba(255, 204, 0, 0.25);
    --border-strong: rgba(255, 204, 0, 0.6);
    --glow: 0 0 20px rgba(255, 204, 0, 0.25);
    --grad-top: linear-gradient(180deg, #1a0a2e 0%, #0d1b2a 100%);
    --grad-card: linear-gradient(135deg, #0d1b2a 0%, #030d1a 100%);
}

/* Midnight Theme */
.theme-midnight {
    --bg-primary: #000010;
    --bg-secondary: #050518;
    --bg-card: #0a0a28;
    --bg-card2: #0e0e32;
    --accent: #7c3aed;
    --accent2: #a78bfa;
    --accent3: #ec4899;
    --text-primary: #e2e8f0;
    --text-secondary: #a78bfa;
    --text-accent: #f472b6;
    --border: rgba(124, 58, 237, 0.25);
    --border-strong: rgba(124, 58, 237, 0.6);
    --glow: 0 0 25px rgba(124, 58, 237, 0.35);
    --grad-top: linear-gradient(180deg, #000010 0%, #0a0a28 100%);
    --grad-card: linear-gradient(135deg, #0a0a28 0%, #000010 100%);
}

/* Aurora Theme */
.theme-aurora {
    --bg-primary: #001a0f;
    --bg-secondary: #002a18;
    --bg-card: #003520;
    --bg-card2: #004228;
    --accent: #00ff87;
    --accent2: #60efff;
    --accent3: #ff6b6b;
    --text-primary: #e0fff4;
    --text-secondary: #4ade80;
    --text-accent: #ffd166;
    --border: rgba(0, 255, 135, 0.2);
    --border-strong: rgba(0, 255, 135, 0.5);
    --glow: 0 0 25px rgba(0, 255, 135, 0.25);
    --grad-top: linear-gradient(180deg, #001a0f 0%, #002a18 100%);
    --grad-card: linear-gradient(135deg, #003520 0%, #001a0f 100%);
}

html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════════
   SETTINGS PANEL
   ════════════════════════════════════════════════════════════════ */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.settings-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 360px;
    max-width: 92vw;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-strong);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 950;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.settings-panel.open {
    transform: translateX(0);
}

.settings-overlay.hidden,
.hidden {
    display: none !important;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1;
}

.settings-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.settings-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.settings-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Input group */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.2);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--bg-card2);
    border-color: var(--accent);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.status-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
    min-height: 18px;
}

/* Toggle switch */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    padding: 4px 0;
}

.toggle-row>span:first-child {
    flex: 1;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: left 0.3s, background 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    left: 23px;
    background: #fff;
}

#unit-label {
    font-size: 0.88rem;
    color: var(--text-accent);
    min-width: 24px;
}

/* Checkbox grid */
.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px 0;
}

.checkbox-grid input[type=checkbox] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Range input */
.range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-row span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.range-row input[type=range] {
    flex: 1;
    accent-color: var(--accent);
    height: 4px;
    cursor: pointer;
}

.range-value {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-accent);
    margin-top: 6px;
}

/* Theme grid */
.theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: var(--accent);
}

.theme-btn.active {
    border-color: var(--accent);
    background: var(--bg-card2);
    color: var(--accent);
}

/* Track list */
.track-list {
    max-height: 120px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.track-item {
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: var(--bg-card2);
    color: var(--text-primary);
}

.track-item.playing {
    color: var(--accent);
    font-weight: 600;
}

.music-folder-row {
    margin-bottom: 10px;
}

/* Hint text */
.hint-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.hint-text kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.78rem;
}

/* Kiosk button */
.btn-kiosk {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: filter 0.2s, transform 0.1s;
}

.btn-kiosk:hover {
    filter: brightness(1.15);
}

.btn-kiosk:active {
    transform: scale(0.98);
}

/* ════════════════════════════════════════════════════════════════
   MAIN WEATHER LAYOUT
   ════════════════════════════════════════════════════════════════ */
.weather-main {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

/* ── Animated Background ──────────────────────────────────────── */
.weather-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Top Bar ──────────────────────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-strong);
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), var(--glow);
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Brand badge */
.brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1.15;
    background: var(--accent);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 0.05em;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.brand-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent2);
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--accent2);
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.1em;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(6, 182, 212, 0);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    }
}

.location-display {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-accent);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
    letter-spacing: 0.03em;
}

/* Clock */
.clock-block {
    text-align: right;
}

.clock-time {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(240, 244, 255, 0.3);
}

.clock-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── Alert Banner ─────────────────────────────────────────────── */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--alert-bg);
    border-top: 2px solid var(--alert-border);
    border-bottom: 2px solid var(--alert-border);
    color: var(--alert-text);
    padding: 6px 16px;
    z-index: 9;
    position: relative;
    flex-shrink: 0;
    animation: alert-pulse 1.5s infinite;
}

@keyframes alert-pulse {

    0%,
    100% {
        background: var(--alert-bg);
    }

    50% {
        background: #991b1b;
    }
}

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-ticker-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* ── Admin Announcement Banner ────────────────────────────────── */
.admin-announce-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    z-index: 9;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid;
    font-size: 0.88rem;
    font-weight: 500;
    animation: slideDownIn 0.35s ease both;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-announce-banner[data-type="info"] {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
}

.admin-announce-banner[data-type="warning"] {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde68a;
}

.admin-announce-banner[data-type="emergency"] {
    background: rgba(239, 68, 68, 0.18);
    border-color: var(--alert-border);
    color: #fca5a5;
    animation: slideDownIn 0.35s ease both, alert-pulse 1.5s infinite;
}

.admin-announce-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-announce-text {
    white-space: nowrap;
    display: inline-block;
    line-height: 1.4;
}

/* ── Shared banner scroll container + marquee ─────────────────── */
.banner-scroll-container {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    align-items: center;
}

.banner-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: banner-marquee 20s linear infinite;
    padding-right: 60px;
    /* gap before repeat */
}

/* Pause when the text fits without scrolling: JS adds .no-scroll to stop */
.banner-scroll-text.no-scroll {
    animation: none;
}

@keyframes banner-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.admin-dismiss {
    background: transparent;
    border: 1px solid currentColor;
    opacity: 0.6;
    border-radius: 4px;
    color: inherit;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.admin-dismiss:hover {
    opacity: 1;
}

/* ── Announcement Popup Overlay ───────────────────────────────── */
.announce-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s, backdrop-filter 0.3s;
    padding: 24px;
}

.announce-popup.popup-visible {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.announce-popup.popup-exit {
    background: rgba(0, 0, 0, 0) !important;
    backdrop-filter: blur(0px) !important;
}

.announce-popup.popup-exit .announce-popup-inner {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
}

.announce-popup-inner {
    max-width: 560px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid;
    padding: 32px;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.announce-popup.popup-visible .announce-popup-inner {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Info */
.announce-popup-info .announce-popup-inner {
    background: #0f172a;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 30px 100px rgba(59, 130, 246, 0.2);
}

/* Warning */
.announce-popup-warning .announce-popup-inner {
    background: #1c1003;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 30px 100px rgba(245, 158, 11, 0.2);
}

/* Emergency */
.announce-popup-emergency .announce-popup-inner {
    background: #1a0505;
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 30px 100px rgba(239, 68, 68, 0.3);
}

.announce-popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.announce-popup-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.announce-popup-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    letter-spacing: 0.03em;
}

.announce-popup-info .announce-popup-title {
    color: #93c5fd;
}

.announce-popup-warning .announce-popup-title {
    color: #fcd34d;
}

.announce-popup-emergency .announce-popup-title {
    color: #fca5a5;
}

.announce-popup-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.announce-popup-close:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.announce-popup-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Auto-dismiss timer bar */
.announce-popup-timer {
    margin-top: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.announce-popup-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width linear;
}

.announce-popup-emergency .announce-popup-timer-bar {
    background: var(--alert-border);
}

.announce-popup-warning .announce-popup-timer-bar {
    background: #f59e0b;
}

/* ── Slide Viewport ───────────────────────────────────────────── */
.slide-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    padding: 24px 28px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--slide-duration) ease, transform var(--slide-duration) ease;
    pointer-events: none;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.slide.slide-exit {
    opacity: 0;
    transform: translateX(-40px);
}

/* Loading slide */
#slide-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Slide Header ─────────────────────────────────────────────── */
.slide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-strong);
    position: relative;
}

.slide-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.slide-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    flex: 1;
}

.slide-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.slide-badge.noaa {
    color: var(--accent2);
    border-color: var(--accent2);
    background: rgba(6, 182, 212, 0.1);
}

/* ── Current Conditions ───────────────────────────────────────── */
.conditions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100% - 80px);
}

.conditions-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.big-temp {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(240, 244, 255, 0.3);
    line-height: 1;
}

.cond-desc {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.weather-icon-large {
    font-size: clamp(3rem, 7vw, 5rem);
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
    line-height: 1;
}

.feels-like {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.conditions-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.stat-row:hover {
    background: var(--bg-card2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-accent);
}

/* ── Hourly Forecast ──────────────────────────────────────────── */
.hourly-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    height: calc(100% - 80px);
    align-items: stretch;
}

.hourly-card {
    flex: 0 0 110px;
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.hourly-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.hourly-card.current {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.hourly-time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hourly-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.hourly-temp {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hourly-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.hourly-precip {
    font-size: 0.78rem;
    color: var(--accent2);
    font-weight: 600;
}

/* ── Extended Forecast ────────────────────────────────────────── */
.extended-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    height: calc(100% - 80px);
}

.day-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.day-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.day-card.today {
    border-color: var(--text-accent);
    background: rgba(251, 191, 36, 0.07);
}

.day-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.day-card.today .day-name {
    color: var(--text-accent);
}

.day-icon {
    font-size: 2.2rem;
}

.day-hi-lo {
    display: flex;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.day-hi {
    color: var(--text-primary);
    font-weight: 700;
}

.day-lo {
    color: var(--text-secondary);
}

.day-desc {
    font-size: 0.73rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.day-precip {
    font-size: 0.78rem;
    color: var(--accent2);
    font-weight: 600;
}

/* ── Almanac ──────────────────────────────────────────────────── */
.almanac-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.almanac-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.almanac-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.almanac-icon {
    font-size: 2.5rem;
}

.almanac-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.almanac-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-accent);
}

/* ── Air Quality ──────────────────────────────────────────────── */
.aqi-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.aqi-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.aqi-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.aqi-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-accent);
}

.aqi-bar-container {
    width: 100%;
}

.aqi-bar-bg {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00c846, #ffd000, #ff6600, #cc0000, #7d0023);
    position: relative;
    margin-bottom: 6px;
    border: 1px solid var(--border);
}

.aqi-indicator {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 28px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    transition: left 1s ease;
}

.aqi-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.aqi-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: center;
}

.aqi-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aqi-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aqi-detail-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Radar (Leaflet + RainViewer) ─────────────────────────────── */
.radar-container {
    height: calc(100% - 80px);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

/* The actual Leaflet map fills all space above controls */
.radar-map {
    flex: 1;
    min-height: 0;
    background: #1a1a2e;
}

/* Override Leaflet's default attribution to match our theme */
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6) !important;
    color: var(--text-secondary) !important;
    font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
    color: var(--accent) !important;
}

/* Legend bar – WeatherStar-style precip scale */
.radar-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 1000;
    min-width: 160px;
}

.radar-legend-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 5px;
}

.radar-legend-bar {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg,
            #00be00 0%, #009900 15%,
            #006600 25%, #cccc00 35%,
            #ffff00 45%, #ffaa00 55%,
            #ff6600 65%, #cc0000 75%,
            #aa0000 85%, #660000 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
}

.radar-legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--text-secondary);
}

/* Live badge pulse */
.live-badge {
    color: #ff4444 !important;
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Bottom radar controls bar */
.radar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 1000;
}

.radar-ctrl-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s;
}

.radar-ctrl-btn:hover {
    background: var(--bg-card2);
    border-color: var(--accent);
    color: var(--accent);
}

/* Frame timeline dots */
.radar-frames {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    padding: 0 4px;
}

.radar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.35;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
}

.radar-dot:hover {
    opacity: 0.7;
}

.radar-dot.active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.5);
}


/* ── Severe Alerts ────────────────────────────────────────────── */
.alert-slide-icon {
    font-size: 1.8rem;
    animation: spin-alert 3s infinite;
}

@keyframes spin-alert {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    height: calc(100% - 80px);
}

.no-alerts {
    font-size: 1.05rem;
    color: var(--accent2);
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
}

.alert-card {
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid var(--alert-border);
    border-left: 4px solid var(--alert-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.alert-card:hover {
    background: rgba(127, 29, 29, 0.5);
}

.alert-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.alert-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--alert-text);
    flex: 1;
}

.alert-card-severity {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--alert-border);
    color: #fff;
}

.alert-card-body {
    font-size: 0.85rem;
    color: var(--alert-text);
    line-height: 1.5;
    opacity: 0.85;
}

.alert-card-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.alert-tts-btn {
    float: right;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.alert-tts-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Progress Bar & Dots ──────────────────────────────────────── */
.progress-bar-container {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.slide-progress {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width linear;
    width: 0%;
}

.slide-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.slide-dot.active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.3);
}

/* ── Bottom Bar ───────────────────────────────────────────────── */
.bottom-bar {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-strong);
    padding: 8px 16px;
    gap: 16px;
    z-index: 10;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
    min-height: 52px;
}

.ticker-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.ticker-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.ticker-scroll-container {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ticker-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Music controls */
.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mc-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
}

.mc-btn:hover {
    background: var(--bg-card2);
    border-color: var(--accent);
}

.mc-btn.playing {
    color: var(--accent);
    border-color: var(--accent);
}

.mc-track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 180px;
}

.mc-track-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.mc-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
}

/* ── Slide Nav Controls ───────────────────────────────────────── */
.slide-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.slide-nav:hover {
    opacity: 1;
}

.weather-main:hover .slide-nav {
    opacity: 1;
}

.nav-btn {
    width: 42px;
    height: 42px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.nav-btn:hover {
    background: var(--bg-card2);
    border-color: var(--accent);
    transform: scale(1.08);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* ════════════════════════════════════════════════════════════════
   KIOSK MODE
   ════════════════════════════════════════════════════════════════ */
body.kiosk-mode .settings-panel,
body.kiosk-mode .settings-overlay {
    display: none !important;
}

body.kiosk-mode #settings-open {
    display: none;
}

body.kiosk-mode .slide-nav {
    opacity: 0;
}

body.kiosk-mode .slide-nav:hover {
    opacity: 1;
}

body.kiosk-mode #music-controls {
    display: none;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ════════════════════════════════════════════════════════════════ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-row,
.almanac-card,
.hourly-card,
.day-card,
.aqi-detail-card {
    animation: fadeSlideIn 0.4s ease both;
}

/* Staggered animation delays for grid children */
.conditions-right .stat-row:nth-child(1) {
    animation-delay: 0.05s;
}

.conditions-right .stat-row:nth-child(2) {
    animation-delay: 0.10s;
}

.conditions-right .stat-row:nth-child(3) {
    animation-delay: 0.15s;
}

.conditions-right .stat-row:nth-child(4) {
    animation-delay: 0.20s;
}

.conditions-right .stat-row:nth-child(5) {
    animation-delay: 0.25s;
}

.conditions-right .stat-row:nth-child(6) {
    animation-delay: 0.30s;
}

.conditions-right .stat-row:nth-child(7) {
    animation-delay: 0.35s;
}

.conditions-right .stat-row:nth-child(8) {
    animation-delay: 0.40s;
}

.almanac-card:nth-child(1) {
    animation-delay: 0.05s;
}

.almanac-card:nth-child(2) {
    animation-delay: 0.10s;
}

.almanac-card:nth-child(3) {
    animation-delay: 0.15s;
}

.almanac-card:nth-child(4) {
    animation-delay: 0.20s;
}

.almanac-card:nth-child(5) {
    animation-delay: 0.25s;
}

.almanac-card:nth-child(6) {
    animation-delay: 0.30s;
}

/* ── Detailed Observations (dense grid) ───────────────────────── */
.obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    height: calc(100% - 80px);
    overflow-y: auto;
    align-content: start;
}

.obs-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    animation: fadeSlideIn 0.35s ease both;
}

.obs-card:hover {
    border-color: var(--accent);
    background: var(--bg-card2);
    transform: translateY(-2px);
}

.obs-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
}

.obs-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
    line-height: 1.2;
}

.obs-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-accent);
    text-align: right;
    white-space: nowrap;
}

.obs-card:nth-child(1) {
    animation-delay: 0.02s;
}

.obs-card:nth-child(2) {
    animation-delay: 0.04s;
}

.obs-card:nth-child(3) {
    animation-delay: 0.06s;
}

.obs-card:nth-child(4) {
    animation-delay: 0.08s;
}

.obs-card:nth-child(5) {
    animation-delay: 0.10s;
}

.obs-card:nth-child(6) {
    animation-delay: 0.12s;
}

.obs-card:nth-child(7) {
    animation-delay: 0.14s;
}

.obs-card:nth-child(8) {
    animation-delay: 0.16s;
}

.obs-card:nth-child(n+9) {
    animation-delay: 0.18s;
}

/* ── Precipitation Chart ──────────────────────────────────────── */
.precip-chart-wrap {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
    gap: 14px;
}

.precip-chart {
    flex: 1;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 16px 16px 8px;
}

.pc-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100%;
    padding-bottom: 30px;
}

.pc-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.pc-prob-label {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 700;
    text-align: center;
    min-height: 13px;
    line-height: 1;
}

.pc-bar-wrap {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 0;
    overflow: hidden;
}

.pc-prob-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s ease;
}

.pc-amt-bar {
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s ease;
}

.pc-thunder {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    z-index: 1;
}

.pc-time {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 700;
}

.precip-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.78rem;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.pl-rain {
    color: var(--accent);
    font-weight: 600;
}

.pl-snow {
    color: var(--accent2);
    font-weight: 600;
}

.pl-tstorm {
    color: #f59e0b;
    font-weight: 600;
}

/* ── Pollen & Health ──────────────────────────────────────────── */
.pollen-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    height: calc(100% - 80px);
    align-items: start;
}

.pollen-overall {
    background: var(--grad-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.pollen-overall::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pollen-big-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.4));
}

.pollen-overall-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pollen-overall-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

.pollen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    align-content: start;
}

.pollen-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, transform 0.15s;
    animation: fadeSlideIn 0.4s ease both;
}

.pollen-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pollen-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.pollen-val {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.pollen-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pollen-card:nth-child(1) {
    animation-delay: 0.05s;
}

.pollen-card:nth-child(2) {
    animation-delay: 0.10s;
}

.pollen-card:nth-child(3) {
    animation-delay: 0.15s;
}

.pollen-card:nth-child(4) {
    animation-delay: 0.20s;
}

.pollen-card:nth-child(5) {
    animation-delay: 0.25s;
}

.pollen-card:nth-child(6) {
    animation-delay: 0.30s;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .conditions-layout {
        grid-template-columns: 1fr;
    }

    .conditions-left {
        padding: 20px 0 10px;
    }

    .big-temp {
        font-size: 3rem;
    }

    .almanac-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .aqi-layout {
        grid-template-columns: 1fr;
    }

    .obs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .pollen-layout {
        grid-template-columns: 1fr;
    }

    .precip-chart {
        padding: 10px 10px 4px;
    }

    .slide {
        padding: 16px;
    }

    .mc-track-info {
        max-width: 120px;
    }

    .clock-time {
        font-size: 1rem;
    }

    .location-display {
        font-size: 0.75rem;
    }

    .top-bar {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .almanac-layout {
        grid-template-columns: 1fr;
    }

    .extended-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}