/* DBQ Cams - Visual Effects & Animations */

/* Tab switch fade-up animation */
@keyframes tab-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-enter {
    animation: tab-fade-in 0.3s ease-out;
}

/* Favorites drag-to-reorder */
.fav-drag-clone {
    position: fixed !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    opacity: 0.9;
    transform: scale(1.04) rotate(1deg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--accent);
    transition: transform 0.15s ease;
    border-radius: var(--radius);
}

.fav-drag-placeholder {
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.06);
    transition: all 0.2s ease;
}

body.fav-dragging {
    cursor: grabbing !important;
    user-select: none;
    -webkit-user-select: none;
}

body.fav-dragging .camera-card {
    transition: transform 0.2s ease;
}

@keyframes fav-land {
    0% { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); box-shadow: var(--shadow-sm); }
}

.fav-drag-land {
    animation: fav-land 0.3s ease-out;
}

#favorites-grid .camera-card {
    cursor: grab;
}

#favorites-grid .camera-card:active {
    cursor: grabbing;
}

/* ========================================================================
   1. HEADER AURORA / GLOW
   ======================================================================== */
header {
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(234, 179, 8, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 50%);
    animation: aurora-drift 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
}

header > * {
    position: relative;
    z-index: 1;
}

@keyframes aurora-drift {
    0% {
        transform: translateX(-5%) translateY(-2%);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(5%) translateY(2%);
        opacity: 0.7;
    }
}

[data-theme="light"] header::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(29, 78, 216, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

/* Subtle glow line under header */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.2) 15%,
        rgba(234, 179, 8, 0.4) 50%,
        rgba(245, 158, 11, 0.2) 85%,
        transparent 100%);
    animation: glow-line 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes glow-line {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


/* ========================================================================
   HERO DASHBOARD STRIP
   ======================================================================== */
.hero-dashboard {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(234, 179, 8, 0.04) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    padding: 0;
}

.hero-dashboard-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat-clickable {
    cursor: pointer;
}

.hero-stat-clickable:hover .hero-stat-value {
    color: var(--accent-bright, #60a5fa);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Divider between stats */
.hero-stat + .hero-stat::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.25), transparent);
}

@media (max-width: 768px) {
    .hero-dashboard-inner {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .hero-stat + .hero-stat::before {
        left: -0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-dashboard-inner {
        gap: 0.75rem;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }
}

[data-theme="light"] .hero-dashboard {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.04) 0%, rgba(255,255,255,0.8) 50%, rgba(202, 138, 4, 0.03) 100%);
    border-bottom-color: rgba(217, 119, 6, 0.08);
}


/* ========================================================================
   BOLDER SECTION HEADERS
   ======================================================================== */
section h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
}

#us20 h2, #us61 h2, #other h2, #rwis h2, #favorites h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#us20 h2 { background: linear-gradient(135deg, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; }
#us61 h2 { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; }
#other h2 { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); -webkit-background-clip: text; background-clip: text; }
#rwis h2 { background: linear-gradient(135deg, #6ee7b7, #10b981); -webkit-background-clip: text; background-clip: text; }
#favorites h2 { background: linear-gradient(135deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; }


/* ========================================================================
   GLASSMORPHISM SIDEBAR CARDS
   ======================================================================== */
.sidebar-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.sidebar-card:hover {
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-md) !important;
}


/* ========================================================================
   ROUTE COLOR-CODED CARD GLOW ON HOVER
   ======================================================================== */
#us20 .camera-card:hover {
    border-color: var(--route-us20);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#us61 .camera-card:hover {
    border-color: var(--route-us61);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#other .camera-card:hover {
    border-color: var(--route-other);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#rwis .camera-card:hover {
    border-color: var(--route-rwis);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#favorites .camera-card:hover {
    border-color: var(--route-favorites);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Route-colored left accent bar on cards */
#us20 .camera-card { border-left: 2px solid rgba(37, 99, 235, 0.3); }
#us61 .camera-card { border-left: 2px solid rgba(245, 158, 11, 0.3); }
#other .camera-card { border-left: 2px solid rgba(167, 139, 250, 0.3); }
#rwis .camera-card { border-left: 2px solid rgba(52, 211, 153, 0.3); }
#favorites .camera-card { border-left: 2px solid rgba(251, 191, 36, 0.3); }


/* ========================================================================
   2. CAMERA CARD SCROLL ENTRANCE
   ======================================================================== */
.camera-card.fx-hidden {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
}

.camera-card.fx-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}


/* ========================================================================
   3. 3D TILT SHINE OVERLAY
   ======================================================================== */
.fx-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camera-card {
    will-change: transform;
}


/* ========================================================================
   4. LIVE BADGE PULSE RINGS
   ======================================================================== */
.camera-live-badge::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 5px;
    border: 1.5px solid var(--danger);
    animation: live-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes live-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    75%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Status dot pulse in modal header */
.status-dot {
    position: relative;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #ef4444;
    animation: live-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}


/* ========================================================================
   5. FAVORITES STAR BURST SPARKS
   ======================================================================== */
.fx-spark {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: spark-burst 0.6s ease-out forwards;
}

@keyframes spark-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Star itself gets a quick scale bounce when toggled */
.fav-btn.fav-active {
    animation: star-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes star-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.5); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}


/* ========================================================================
   6. TAB SECTION TRANSITIONS
   ======================================================================== */
.fx-tab-section {
    animation: none;
}

.fx-tab-active {
    animation: tab-fade-in 0.35s ease-out;
}

@keyframes tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================================
   7. SKELETON LOADING SHIMMER
   ======================================================================== */
.fx-skeleton {
    text-align: left !important;
    padding: 0.75rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fx-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        var(--border) 25%,
        var(--surface-hover) 37%,
        var(--border) 63%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Camera card skeleton placeholder */
.camera-card-skeleton {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.camera-card-skeleton .skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 37%, var(--border) 63%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.camera-card-skeleton .skeleton-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========================================================================
   8. THEME TRANSITION
   ======================================================================== */
.fx-theme-transitioning,
.fx-theme-transitioning *,
.fx-theme-transitioning *::before,
.fx-theme-transitioning *::after {
    transition: background-color 0.4s ease,
                color 0.3s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}


/* ========================================================================
   9. NAV LINK HOVER GLOW
   ======================================================================== */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    border-bottom-color: transparent !important;
}


/* ========================================================================
   10. SECTION HEADER HOVER EFFECT
   ======================================================================== */
section h2 {
    transition: color 0.2s ease, letter-spacing 0.3s ease;
}

section h2:hover {
    letter-spacing: 0.08em;
}


/* ========================================================================
   11. SIDEBAR CARD HOVER LIFT
   ======================================================================== */
.sidebar-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}


/* Back to top ,  see style.css for full styles */


/* ========================================================================
   13. WIDGET HEADER PULSE (weather/river)
   ======================================================================== */
.widget-clickable:hover .widget-value {
    color: var(--accent);
    transition: color 0.2s ease;
}


/* ========================================================================
   14. FOOTER LINK UNDERLINE ANIMATION
   ======================================================================== */
.footer-resources a,
.sidebar-links a {
    position: relative;
    display: inline-block;
}

.footer-resources a::after,
.sidebar-links a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-resources a:hover::after,
.sidebar-links a:hover::after {
    width: 100%;
}


/* ========================================================================
   15. SMOOTH SCROLL
   ======================================================================== */
html {
    scroll-behavior: smooth;
}


/* ========================================================================
   16. CUSTOM SCROLLBAR (dark theme)
   ======================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}


/* ========================================================================
   17. CUSTOM TEXT SELECTION
   ======================================================================== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

[data-theme="light"] ::selection {
    background: rgba(217, 119, 6, 0.2);
    color: #000;
}


/* ========================================================================
   18. MODAL BACKDROP BLUR
   ======================================================================== */
.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(5, 7, 15, 0.8) !important;
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.5) !important;
}

.modal-content {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.1);
}


/* ========================================================================
   19. GLOWING SEARCH BAR FOCUS
   ======================================================================== */
.camera-search-bar input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.closings-search:focus {
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}


/* ========================================================================
   20. CAMERA THUMBNAIL LOADING PLACEHOLDER
   ======================================================================== */
.camera-thumb-container {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0a0e1a 100%);
    background-size: 200% 200%;
    animation: thumb-loading 2s ease-in-out infinite;
}

.camera-thumb-container:has(.camera-thumb[src]) {
    animation: none;
}

@keyframes thumb-loading {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

[data-theme="light"] .camera-thumb-container {
    background: linear-gradient(135deg, #e2e8f0 0%, #f0f4f8 50%, #e2e8f0 100%);
    background-size: 200% 200%;
}


/* ========================================================================
   21. SIDEBAR CARD TOP-BORDER ACCENT STRIP
   ======================================================================== */
.sidebar-card {
    border-top: 2px solid transparent;
    background-clip: padding-box;
}

#sidebar-weather {
    border-top-color: var(--accent);
}

#sidebar-road-conditions {
    border-top-color: var(--route-rwis);
}

#sidebar-closings {
    border-top-color: var(--warning);
}

#sidebar-river {
    border-top-color: #60a5fa;
}


/* ========================================================================
   22. ALTERNATING SECTION BACKGROUND TINTS
   ======================================================================== */
#us20 {
    padding: 1.25rem;
    margin: 0 -1.25rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

#us61 {
    padding: 1.25rem;
    margin: 0 -1.25rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

#other {
    padding: 1.25rem;
    margin: 0 -1.25rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 1px solid rgba(167, 139, 250, 0.12);
}

#rwis {
    padding: 1.25rem;
    margin: 0 -1.25rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(52, 211, 153, 0.12);
}

#favorites {
    padding: 1.25rem;
    margin: 0 -1.25rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(253, 230, 138, 0.06) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

[data-theme="light"] #us20 {
    background: rgba(29, 78, 216, 0.03);
    border-color: rgba(29, 78, 216, 0.08);
}

[data-theme="light"] #us61 {
    background: rgba(217, 119, 6, 0.03);
    border-color: rgba(217, 119, 6, 0.08);
}

[data-theme="light"] #other {
    background: rgba(124, 58, 237, 0.03);
    border-color: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] #rwis {
    background: rgba(5, 150, 105, 0.03);
    border-color: rgba(5, 150, 105, 0.08);
}

[data-theme="light"] #favorites {
    background: rgba(217, 119, 6, 0.04);
    border-color: rgba(217, 119, 6, 0.1);
}


/* ========================================================================
   23. FOOTER GLOW TREATMENT
   ======================================================================== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.2) 20%,
        rgba(59, 130, 246, 0.4) 50%,
        rgba(37, 99, 235, 0.2) 80%,
        transparent 100%);
}

.footer-brand strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ========================================================================
   24. NAV ACTIVE GLOW INDICATOR
   ======================================================================== */
.nav-link.active {
    color: var(--accent);
    text-shadow: 0 0 16px var(--accent-glow);
}

.nav-link::after {
    background: var(--accent-gradient) !important;
    height: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}


/* ========================================================================
   25. WIDGET GLASS EFFECT
   ======================================================================== */
.widget {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .widget {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(29, 78, 216, 0.15);
}


/* ========================================================================
   26. CAMERA CARD ENHANCED HOVER GLOW (no border-image ,  breaks border-radius)
   ======================================================================== */
#us20 .camera-card:hover {
    border-color: var(--route-us20);
    border-left-color: var(--route-us20);
    box-shadow:
        0 4px 20px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.1),
        inset 0 0 20px rgba(37, 99, 235, 0.03);
}

#us61 .camera-card:hover {
    border-color: var(--route-us61);
    border-left-color: var(--route-us61);
    box-shadow:
        0 4px 20px rgba(245, 158, 11, 0.2),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        inset 0 0 20px rgba(245, 158, 11, 0.03);
}

#other .camera-card:hover {
    border-color: var(--route-other);
    border-left-color: var(--route-other);
    box-shadow:
        0 4px 20px rgba(167, 139, 250, 0.2),
        0 0 0 1px rgba(167, 139, 250, 0.1),
        inset 0 0 20px rgba(167, 139, 250, 0.03);
}

#rwis .camera-card:hover {
    border-color: var(--route-rwis);
    border-left-color: var(--route-rwis);
    box-shadow:
        0 4px 20px rgba(52, 211, 153, 0.2),
        0 0 0 1px rgba(52, 211, 153, 0.1),
        inset 0 0 20px rgba(52, 211, 153, 0.03);
}

#favorites .camera-card:hover {
    border-color: var(--route-favorites);
    border-left-color: var(--route-favorites);
    box-shadow:
        0 4px 20px rgba(251, 191, 36, 0.2),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        inset 0 0 20px rgba(251, 191, 36, 0.03);
}


/* ========================================================================
   27. CONTACT/ADVERTISE BUTTON GRADIENT UPGRADE
   ======================================================================== */
.contact-btn:hover {
    background: var(--accent-gradient) !important;
    color: #0f172a;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.advertise-btn:hover {
    background: var(--accent-gradient);
    color: #0f172a;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}


/* Back to top gradient ,  removed, handled in style.css */


/* ========================================================================
   29. CLOSINGS/SCORES FILTER ACTIVE STATE GRADIENT
   ======================================================================== */
.closings-filter-btn.active,
.scores-filter-btn.active {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    color: #0f172a !important;
}


/* ========================================================================
   30. SECTION DIVIDER GRADIENT
   ======================================================================== */
.section-divider svg path {
    fill: var(--surface) !important;
    filter: drop-shadow(0 -2px 4px rgba(37, 99, 235, 0.08));
}


/* ========================================================================
   31. HEADER ACTION BUTTONS GLOW
   ======================================================================== */
.header-action-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    color: var(--accent);
}


/* ========================================================================
   32. ROUTE LABEL BADGES ON SECTION HEADERS
   ======================================================================== */
#us20 h2::before,
#us61 h2::before,
#other h2::before,
#rwis h2::before,
#favorites h2::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 0.6rem;
    letter-spacing: 0.06em;
    vertical-align: middle;
    text-transform: uppercase;
}

#us20 h2::before {
    content: "US 20";
    background: rgba(37, 99, 235, 0.12);
    color: var(--route-us20);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

#us61 h2::before {
    content: "US 61";
    background: rgba(245, 158, 11, 0.12);
    color: var(--route-us61);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

#other h2::before {
    content: "LOCAL";
    background: rgba(167, 139, 250, 0.12);
    color: var(--route-other);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

#rwis h2::before {
    content: "DOT";
    background: rgba(52, 211, 153, 0.12);
    color: var(--route-rwis);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

#favorites h2::before {
    content: "FAV";
    background: rgba(251, 191, 36, 0.12);
    color: var(--route-favorites);
    border: 1px solid rgba(251, 191, 36, 0.25);
}


/* ========================================================================
   33. CAMERA INFO AREA SUBTLE GRADIENT
   ======================================================================== */
.camera-info {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 14, 26, 0.4) 100%);
}

[data-theme="light"] .camera-info {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}


/* ========================================================================
   34. SUBTLE BODY NOISE TEXTURE
   ======================================================================== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

[data-theme="light"] body::after {
    opacity: 0.03;
}


/* ========================================================================
   35. LIVE BADGE GLOW
   ======================================================================== */
.camera-live-badge {
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
    z-index: 3;
}

.rwis-badge {
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4) !important;
}


/* ========================================================================
   36. SIDEBAR CLOSINGS LINK HOVER
   ======================================================================== */
.sidebar-closings-shortcut:hover h3 {
    color: var(--warning) !important;
    transition: color 0.2s;
}

.closings-badge {
    transition: background 0.2s, color 0.2s;
}

.sidebar-closings-shortcut:hover .closings-badge {
    background: var(--warning);
    color: var(--bg);
}


/* ========================================================================
   37. CAMERA CARD NAME GRADIENT ON HOVER
   ======================================================================== */
.camera-card:hover .camera-name {
    color: var(--accent);
    transition: color 0.2s ease;
}

#us20 .camera-card:hover .camera-name { color: var(--route-us20); }
#us61 .camera-card:hover .camera-name { color: var(--route-us61); }
#other .camera-card:hover .camera-name { color: var(--route-other); }
#rwis .camera-card:hover .camera-name { color: var(--route-rwis); }
#favorites .camera-card:hover .camera-name { color: var(--route-favorites); }


/* ========================================================================
   38. IMPROVED CONDITION BADGES
   ======================================================================== */
.condition-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ========================================================================
   39. FAV BUTTON GLOW WHEN ACTIVE
   ======================================================================== */
.fav-btn.fav-active {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}


/* ========================================================================
   40. SIDEBAR RIVER LEVEL COLOR PULSE
   ======================================================================== */
.sidebar-river-level {
    transition: color 0.3s ease;
}

.river-normal { text-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
.river-action { text-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.river-flood { text-shadow: 0 0 20px rgba(244, 63, 94, 0.4); }


/* ========================================================================
   41. ROAD CONDITION BADGE GLOW
   ======================================================================== */
.road-dry { box-shadow: inset 0 0 8px rgba(22, 101, 52, 0.3); }
.road-wet { box-shadow: inset 0 0 8px rgba(30, 64, 175, 0.3); }
.road-ice { box-shadow: inset 0 0 8px rgba(180, 83, 9, 0.3); }
.road-snow { box-shadow: inset 0 0 8px rgba(185, 28, 28, 0.3); }


/* ========================================================================
   42. INCIDENT BANNER GLOW
   ======================================================================== */
.incident-banner-content {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

[data-theme="light"] .incident-banner-content {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}


/* ========================================================================
   43. WEATHER ALERT PULSE
   ======================================================================== */
.weather-alert-item {
    border-left: 3px solid var(--danger);
    transition: border-color 0.2s, background 0.2s;
}

.weather-alert-item:hover {
    background: rgba(244, 63, 94, 0.05);
}


/* ========================================================================
   MOBILE HAMBURGER MENU + DRAWER
   ======================================================================== */
#mobile-menu-toggle {
    display: none;
}

.menu-icon-x { display: none; }

@media (max-width: 480px) {
    #mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0.5rem;
    right: 0.5rem;
    bottom: auto;
    max-height: calc(100vh - 90px);
    z-index: 101;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 18px;
    padding: 0.9rem 1rem 1rem;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease-out;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.02) inset;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .mobile-menu-drawer {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.mobile-menu-drawer.open {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Need two-step: first display block, then animate in */
.mobile-menu-drawer.opening {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.08s;
    min-height: 68px;
    letter-spacing: 0.02em;
}
.mobile-menu-item svg { opacity: 0.85; transition: opacity 0.18s; }

[data-theme="light"] .mobile-menu-item {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-menu-item:active { transform: scale(0.96); }
.mobile-menu-item:hover { color: var(--text); background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); }

.mobile-menu-item.active {
    color: var(--accent);
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.18), inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.mobile-menu-item.active svg { opacity: 1; }

[data-theme="light"] .mobile-menu-item.active {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
}

.mobile-menu-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mobile-menu-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.08s;
    min-height: 40px;
}

[data-theme="light"] .mobile-menu-action {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-menu-action:active { transform: scale(0.97); }

.mobile-menu-action:hover {
    color: var(--text);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.08);
}

.mobile-menu-quick-info {
    display: flex;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

[data-theme="light"] .mobile-menu-quick-info {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.mobile-menu-quick-info .quick-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mobile-menu-quick-info .quick-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Overlay behind drawer */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s;
}

.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

/* Hide the consent banner while the menu is open so it doesn't float on top */
body:has(.mobile-menu-drawer.open) .consent-banner,
body:has(.mobile-menu-drawer.opening) .consent-banner {
    display: none !important;
}

/* Animate hamburger to X */
#mobile-menu-toggle.open .menu-icon-bars { display: none; }
#mobile-menu-toggle.open .menu-icon-x { display: block; }


/* ========================================================================
   44. MOBILE BOTTOM NAVIGATION BAR
   ======================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    z-index: 999;
    padding: 4px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0));
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: nowrap;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(245, 158, 11, 0.08),
        0 0 0 1px rgba(245, 158, 11, 0.05) inset;
}

[data-theme="light"] .mobile-bottom-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(217, 119, 6, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(217, 119, 6, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide top nav on mobile: bottom-nav + hamburger handle navigation */
    .sticky-top-wrapper nav[aria-label="Main navigation"] {
        display: none;
    }

    /* Add bottom padding to body so content isn't hidden behind floating nav */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    }

    /* Move back-to-top above floating nav */
    .back-to-top {
        bottom: calc(88px + env(safe-area-inset-bottom, 0)) !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
    }

    /* Hide bottom nav when modal is open */
    body:has(.modal[style*="display: flex"]) .mobile-bottom-nav {
        display: none;
    }

    /* Full-screen modal on mobile */
    .modal {
        padding: 0 !important;
    }

    .modal-content {
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border: none !important;
        display: flex;
        flex-direction: column;
    }

    /* Modal header handled by style.css @media (max-width: 600px) */

    /* Hide the stray small close button in camera modal on mobile */
    #camera-modal .modal-close {
        display: none !important;
    }

    /* Video keeps native 16:9 aspect ratio; info sits beneath */
    #modal-video-container {
        flex: 0 0 auto;
        aspect-ratio: 16 / 9 !important;
        width: 100%;
    }

    /* Hide ad in camera modal on mobile ,  more room for video */
    #camera-modal .modal-ad {
        display: none !important;
        flex-shrink: 0;
    }

    /* Bigger video nav buttons on mobile */
    .video-nav-btn {
        width: 44px !important;
        height: 56px !important;
    }

    .video-ctrl-btn {
        width: 36px !important;
        height: 36px !important;
    }

    /* Always show top controls on mobile (no hover) */
    .video-top-controls {
        opacity: 1 !important;
    }

    /* Section divider smaller on mobile */
    .section-divider svg {
        height: 20px;
    }

    /* Reduce heavy animations on mobile for performance */
    .camera-card.fx-hidden {
        transform: translateY(12px);
    }

    .camera-card.fx-visible {
        transition-duration: 0.3s;
    }

    /* Disable 3D tilt on mobile (already done for touch but reinforce) */
    .camera-card {
        will-change: auto !important;
    }

    /* Reduce aurora intensity on mobile */
    header::before {
        animation-duration: 20s;
        opacity: 0.5;
    }

    /* Simpler backdrop on mobile */
    .modal {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    /* Hourly forecast scroll fade indicator */
    .weather-hourly-scroll {
        position: relative;
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    /* Hide all sidebars on mobile ,  key info is in header/bottom nav/menu */
    .sidebar {
        display: none !important;
    }

    /* Compact footer on mobile */
    footer {
        padding: 1.25rem 1rem 1rem !important;
        margin-top: 1rem !important;
    }

    .footer-grid {
        gap: 1rem !important;
    }

    .footer-about {
        display: none;
    }

    .footer-resources {
        display: none;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 0.4rem;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 0.75rem;
    }

    .footer-disclaimer {
        font-size: 0.6rem;
    }

    .section-divider {
        display: none;
    }
}

/* Ultra-small screens (iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
    .camera-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .camera-card .camera-info {
        padding: 0.6rem 0.75rem !important;
    }

    .camera-card .camera-name {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    .camera-card .camera-live-badge {
        font-size: 0.6rem !important;
    }

    .mobile-bottom-nav {
        left: 6px;
        right: 6px;
        padding: 2px;
    }

    .mobile-nav-item {
        padding: 8px 2px 6px;
        font-size: 0.55rem;
        gap: 2px;
        border-radius: 12px;
    }

    .mobile-nav-item svg {
        width: 18px;
        height: 18px;
    }
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    background: none;
    border: none;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
    min-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
    transition: transform 0.2s, color 0.2s;
}

.mobile-nav-item.active {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .mobile-nav-item.active {
    background: rgba(217, 119, 6, 0.1);
}

.mobile-nav-item.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Active indicator line */
.mobile-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    background: var(--danger);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 0;
    line-height: 1.3;
    display: none;
}

.mobile-nav-badge:not(:empty) {
    display: block;
}


/* ========================================================================
   45. CLOSINGS ALL-CLEAR EMPTY STATE
   ======================================================================== */
.closings-all-clear {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--success);
}

.closings-all-clear svg {
    margin-bottom: 1rem;
    opacity: 0.8;
    stroke: var(--success);
}

.closings-all-clear h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--success);
}

.closings-all-clear p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
}

/* Sidebar closings "None" styling */
.closings-none {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.closings-none::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
    flex-shrink: 0;
}


/* ========================================================================
   46. MOBILE: COMPACT HEADER ON SCROLL
   ======================================================================== */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        transition: padding 0.3s ease, box-shadow 0.3s ease;
    }

    header.header-compact {
        padding: 0.5rem 1rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    header.header-compact .tagline {
        display: none;
    }

    header.header-compact .branding h1 {
        font-size: 1.25rem;
    }

    header.header-compact .header-widgets {
        display: none;
    }

    header.header-compact .header-action-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    /* Header compact glow line stays visible */
    header.header-compact::after {
        opacity: 0.7;
    }
}


/* ========================================================================
   47. PWA INSTALL BANNER
   ======================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.pwa-visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .pwa-install-banner {
        bottom: calc(72px + env(safe-area-inset-bottom, 0));
    }
}

.pwa-install-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.pwa-install-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pwa-install-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 0;
    transition: filter 0.2s;
}

.pwa-install-btn:hover {
    filter: brightness(1.1);
}

.pwa-install-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    min-height: 0;
    line-height: 1;
    transition: color 0.2s;
}

.pwa-install-dismiss:hover {
    color: var(--text);
}


/* ========================================================================
   ADMIN BAR
   ======================================================================== */
.admin-bar {
    background: #0f172a;
    color: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 9999;
    position: relative;
}

[data-theme="light"] .admin-bar {
    background: #1e293b;
}

.admin-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-bar-label {
    background: var(--accent, #f59e0b);
    color: #0f172a;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-bar-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-bar-link:hover {
    color: #f59e0b;
}

.admin-bar-live {
    margin-left: auto;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.7rem;
}

.admin-bar-live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .admin-bar-inner {
        padding: 0.3rem 0.75rem;
        gap: 0.6rem;
        font-size: 0.7rem;
    }
}


/* ========================================================================
   CONSENT BANNER
   ======================================================================== */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.consent-banner.consent-visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .consent-banner {
        bottom: calc(84px + env(safe-area-inset-bottom, 0));
        left: 16px;
        right: 16px;
        border-radius: 16px;
        border: 1px solid var(--border);
        border-top: 1px solid var(--border);
        padding: 0.6rem 0.8rem;
    }
    .consent-inner {
        gap: 0.6rem;
    }
    .consent-inner p {
        font-size: 0.72rem;
        line-height: 1.35;
    }
}

.consent-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.consent-inner p {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.consent-inner a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.consent-accept {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    min-height: 0;
    transition: filter 0.2s;
}

.consent-accept:hover {
    filter: brightness(1.1);
}


/* ========================================================================
   REDUCED MOTION
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #weather-particles {
        display: none !important;
    }

    .camera-card.fx-hidden {
        opacity: 1;
        transform: none;
    }
}
