/**
 * sections.css - Extracted inline styles from index.php
 * Apple-Level Mobile Design Refactor
 *
 * Organization:
 * 1. Icon Colors (domain links)
 * 2. Status Bar
 * 3. Support Section
 * 4. Coverage Map Section
 * 5. Footer
 * 6. Auto-link URL styling (from PHP function)
 */

/* ===========================================
   1. ICON COLORS - Domain Link Icons
   =========================================== */

.icon-youtube {
    color: #FF0000;
    margin-right: 5px;
}

.icon-google {
    color: #4285F4;
    margin-right: 5px;
}

.icon-twitter {
    color: #ffffff; /* X brand is now white */
    margin-right: 5px;
}

.icon-facebook {
    color: #1877F2;
    margin-right: 5px;
}

.icon-twitch {
    color: #9146FF;
    margin-right: 5px;
}

.icon-kick {
    color: #53FC18;
    margin-right: 5px;
    font-weight: 900;
    font-family: 'Black Ops One', cursive;
}

.icon-tiktok {
    margin-right: 5px;
}

.icon-discord {
    color: #5865F2;
    margin-right: 5px;
}

.icon-external {
    color: #00bfff;
    margin-right: 5px;
    font-size: 0.85em;
}

/* ===========================================
   2. STATUS BAR - Top of page stream status
   =========================================== */

.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 12, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    min-height: 45px;
}

/* Mobile */
@media (max-width: 768px) {
    .status-bar {
        padding: 8px 10px;
    }
}

.status-bar .status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 9px;
    background: #e10600;
    box-shadow: none; /* No glow when offline - less distracting */
}

.status-bar .status-dot.online {
    background: #30D158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.5); /* Subtle glow only when live */
}

.status-bar .status-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.status-bar .status-platforms {
    display: none;
}

/* Weather chip in status bar - absolute positioned to right */
.status-bar .status-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.status-bar .status-weather:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-bar .status-weather .weather-temp {
    font-weight: 600;
    letter-spacing: 0;
}

.status-bar .status-weather .weather-icon {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Weather icon colors based on condition */
.status-bar .status-weather .weather-icon.sunny {
    color: #FFD60A;
}

.status-bar .status-weather .weather-icon.cloudy {
    color: #8E8E93;
}

.status-bar .status-weather .weather-icon.rainy {
    color: #64D2FF;
}

.status-bar .status-weather .weather-icon.stormy {
    color: #BF5AF2;
}

.status-bar .status-weather .weather-icon.snowy {
    color: #FFFFFF;
}

/* Mobile: Smaller weather chip */
@media (max-width: 768px) {
    .status-bar .status-weather {
        padding: 3px 8px;
        font-size: 0.75rem;
        gap: 4px;
        right: 8px;
    }

    .status-bar .status-weather .weather-icon {
        font-size: 0.8rem;
    }
}

/* ===========================================
   2b. MOBILE NAV - NEW Badge for Merch
   =========================================== */

.nav-badge-new {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(calc(50% + 14px));
    background: linear-gradient(135deg, #FF375F 0%, #FF2D55 100%);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 45, 85, 0.6);
    }
}

/* Merch nav item special styling */
.nav-item-merch {
    position: relative;
}

.nav-item-merch i {
    color: #FFD60A !important;
}

.nav-item-merch.active i {
    color: #FFD60A !important;
}

/* ===========================================
   3. SUPPORT SECTION - Donation buttons
   =========================================== */

.support-section {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
}

.support-section-header {
    text-align: center;
    margin-bottom: 18px;
}

.support-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.support-subtitle {
    font-size: 1rem;
    color: #f5f5f5;
    opacity: 0.85;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

/* Shared button base */
.support-btn {
    border-radius: 8px;
    padding: 10px 26px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px; /* Touch target */
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

/* PayPal */
.support-btn-paypal {
    background: #00457C;
    color: #fff;
}

.support-btn-paypal:hover {
    background: #0070E0;
}

.support-btn-paypal .support-icon {
    color: #FFD700;
    font-size: 1.7em;
}

/* Cash App */
.support-btn-cashapp {
    background: #00d632;
    color: #fff;
}

.support-btn-cashapp:hover {
    background: #12FF48;
}

.support-btn-cashapp .support-icon {
    color: #fff;
    font-size: 1.7em;
}

/* Buy Me a Coffee */
.support-btn-coffee {
    background: #FFDD00;
    color: #111;
}

.support-btn-coffee:hover {
    background: #ffe666;
}

.support-btn-coffee .support-icon {
    color: #784421;
    font-size: 1.6em;
}

/* Amazon Wish List */
.support-btn-amazon {
    background: #232f3e;
    color: #ff9900;
}

.support-btn-amazon:hover {
    background: #FF9900;
    color: #232f3e;
}

.support-btn-amazon .support-icon {
    color: #FF9900;
    font-size: 1.7em;
    transition: color 0.2s ease;
}

.support-btn-amazon:hover .support-icon {
    color: #232f3e;
}

/* ===========================================
   4. COVERAGE MAP SECTION
   =========================================== */

.coverage-map-section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.coverage-map-container {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid rgba(0, 119, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 119, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coverage-map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.4);
    border-color: #0099ff;
}

.map-header {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.map-icon {
    background: linear-gradient(135deg, #0077ff, #0055cc);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

.map-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.map-title,
.map-title-wrapper h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.map-subtitle,
.map-title-wrapper p {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.map-toggle-button {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.map-toggle-button:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: rgba(0, 119, 255, 0.5);
}

.map-toggle-icon {
    color: #0077ff;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.map-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.map-embed-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 119, 255, 0.2);
}

.map-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.map-footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.map-footer i {
    margin-right: 5px;
    color: #0077ff;
}

.map-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Map action links - base */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    min-height: 44px; /* Touch target */
}

/* Google Maps link */
.map-link-google {
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.3);
    color: #4285f4;
}

.map-link-google:hover {
    background: rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.5);
}

/* Apple Maps link */
.map-link-apple {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.map-link-apple:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Map section responsive */
@media (max-width: 768px) {
    .coverage-map-section {
        padding: 0 15px;
        margin: 20px auto;
    }

    .coverage-map-container {
        padding: 20px;
    }

    .map-header {
        gap: 12px;
    }

    .map-icon {
        width: 45px;
        height: 45px;
    }

    .map-icon i {
        font-size: 1.3rem;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .map-subtitle {
        font-size: 0.85rem;
    }

    .map-embed-wrapper {
        border-radius: 10px;
    }

    .map-footer {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .coverage-map-section {
        padding: 0 10px;
    }

    .coverage-map-container {
        padding: 15px;
    }

    .map-header {
        gap: 10px;
        flex-direction: column;
    }

    .map-icon {
        width: 40px;
        height: 40px;
    }

    .map-icon i {
        font-size: 1.2rem;
    }

    .map-title-wrapper {
        text-align: center;
    }

    .map-title {
        font-size: 1.3rem;
    }

    .map-subtitle {
        font-size: 0.8rem;
    }

    .map-footer {
        font-size: 0.75rem;
    }
}

/* ===========================================
   5. FOOTER
   =========================================== */

.site-footer {
    background: rgba(2, 19, 32, 0.95);
    border-top: 2px solid rgba(0, 71, 171, 0.3);
    padding: 25px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-attribution {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-attribution .heart {
    color: #e10600;
}

.footer-attribution strong {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 10px;
}

.footer-link {
    color: rgba(0, 71, 171, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0099ff;
}

.footer-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===========================================
   6. AUTO-LINK URL STYLING
   (From autoLinkWithIcons PHP function)
   =========================================== */

.auto-link {
    display: inline-flex;
    align-items: center;
    color: #00bfff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.auto-link:hover {
    border-bottom-color: #00bfff;
    color: #4da6ff;
}

/* ===========================================
   7. VOD NO-STREAM BUTTON
   (For VOD selection when no stream today)
   =========================================== */

.vod-no-stream-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(145, 70, 255, 0.08);
    border: 0.5px solid rgba(145, 70, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 48px; /* Touch target */
}

.vod-no-stream-btn:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: rgba(145, 70, 255, 0.35);
    transform: translateX(6px) scale(1.01);
}

.vod-no-stream-btn:focus {
    outline: 2px solid rgba(145, 70, 255, 0.8);
    outline-offset: 4px;
}

/* ===========================================
   8. CREATOR LINK (in stream announcement)
   =========================================== */

.creator-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.creator-link:hover {
    color: #fff;
}

/* ===========================================
   9. TOUCH TARGET IMPROVEMENTS
   =========================================== */

/* Ensure minimum touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .support-btn,
    .map-link,
    .vod-no-stream-btn,
    .footer-link {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Disable hover lift effects on touch devices */
@media (hover: none) {
    .coverage-map-container:hover {
        transform: none;
    }

    .support-btn:active,
    .map-link:active,
    .vod-no-stream-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ===========================================
   10. INTEGRATED VOD HIGHLIGHTS
   (Highlights displayed within VOD card)
   =========================================== */

.vod-integrated-highlights {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.integrated-highlights-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.integrated-highlights-header i {
    color: rgba(145, 70, 255, 0.7);
    font-size: 0.75rem;
}

.integrated-highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integrated-highlight-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(145, 70, 255, 0.08);
    border: 1px solid rgba(145, 70, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 44px;
}

.integrated-highlight-chip:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: rgba(145, 70, 255, 0.4);
    transform: translateY(-1px);
}

.integrated-highlight-chip:active {
    transform: scale(0.98);
}

.highlight-chip-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(145, 70, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.highlight-chip-time i {
    font-size: 0.6rem;
    opacity: 0.8;
}

.highlight-chip-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.highlight-chip-user {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-left: auto;
    font-weight: 400;
}

/* Mobile: Stack chips vertically */
@media (max-width: 480px) {
    .integrated-highlights-list {
        flex-direction: column;
    }

    .integrated-highlight-chip {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===========================================
   11. SCROLL-TRIGGERED ANIMATIONS
   Premium entrance effects
   =========================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left variant */
.animate-on-scroll.from-left {
    transform: translateX(-30px);
}

.animate-on-scroll.from-left.visible {
    transform: translateX(0);
}

/* Scale up variant */
.animate-on-scroll.scale-in {
    transform: scale(0.95);
}

.animate-on-scroll.scale-in.visible {
    transform: scale(1);
}

/* Staggered children for grids */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 60ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 120ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 180ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 240ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 300ms; }
.stagger-children > .animate-on-scroll:nth-child(7) { transition-delay: 360ms; }
.stagger-children > .animate-on-scroll:nth-child(8) { transition-delay: 420ms; }

/* ===========================================
   12. ENHANCED STATUS PULSE ANIMATIONS
   Living, breathing status indicators
   =========================================== */

@keyframes premium-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 currentColor;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px transparent;
        transform: scale(1.1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 15px currentColor);
    }
}

.status-dot.online,
.status-bar .status-dot.online {
    animation: premium-pulse 2s ease-in-out infinite;
    color: #30D158;
}

/* Platform card online state */
.platform-status-card.online {
    border-color: #30D158;
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
}

.platform-status-card.online .platform-icon {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ===========================================
   13. PREMIUM TAP STATES
   Every touch feels responsive
   =========================================== */

.interactive-card,
.scanner-section,
.driving-intel-section,
.coverage-map-container,
.platform-status-card,
.social-card,
.merch-card,
.support-btn {
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.2s ease;
}

/* Tap feedback - scale down slightly */
@media (hover: none) and (pointer: coarse) {
    .scanner-section:active,
    .driving-intel-section:active,
    .coverage-map-container:active,
    .platform-status-card:active,
    .social-card:active,
    .merch-card:active {
        transform: scale(0.98);
    }

    .support-btn:active,
    .integrated-highlight-chip:active {
        transform: scale(0.95);
    }
}

/* ===========================================
   14. ENHANCED GLASSMORPHISM
   Premium depth and blur
   =========================================== */

.glass-card,
.stream-metadata-card,
.weather-info-box {
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Frosted glass for status cards */
.platform-status-card {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ===========================================
   15. HIGHLIGHT CHIP SHINE EFFECT
   Subtle interactive feedback
   =========================================== */

.integrated-highlight-chip {
    position: relative;
    overflow: hidden;
}

.integrated-highlight-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.integrated-highlight-chip:hover::after {
    left: 150%;
}

/* ===========================================
   16. LAZY LOAD PLACEHOLDER
   Smooth content reveal
   =========================================== */

.lazy-embed {
    background: linear-gradient(
        135deg,
        rgba(30, 30, 40, 0.9) 0%,
        rgba(20, 20, 30, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.lazy-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.lazy-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.lazy-embed-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.lazy-embed-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Loaded state */
.lazy-embed.loaded {
    background: transparent;
    min-height: auto;
}

.lazy-embed.loaded::before {
    display: none;
}

.lazy-embed.loaded .lazy-embed-placeholder {
    display: none;
}

/* ===========================================
   17. CARD BORDER GLOW ANIMATION
   Subtle ambient glow on hover
   =========================================== */

@keyframes border-glow {
    0%, 100% {
        border-color: rgba(0, 119, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 119, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 119, 255, 0.5);
        box-shadow: 0 0 30px rgba(0, 119, 255, 0.2);
    }
}

.driving-intel-section:hover {
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow-red {
    0%, 100% {
        border-color: rgba(220, 20, 60, 0.5);
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.15);
    }
    50% {
        border-color: rgba(220, 20, 60, 0.7);
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.25);
    }
}

.scanner-section:hover {
    animation: border-glow-red 2s ease-in-out infinite;
}

/* ===========================================
   18. LIVE PLATFORM CARD REORDERING
   Surface live platforms to the top
   =========================================== */

/* Enable smooth reordering transitions on dashboard grid */
.dashboard-grid {
    display: grid; /* Ensure grid is set */
}

/* All status cards get a base order and transition */
.dashboard-grid .status-card {
    order: 10; /* Default order - offline cards stay in place */
    transition: order 0s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Live cards float to the top */
.dashboard-grid .status-card.is-live {
    order: 0;
}

/* Order by viewer count - more viewers = lower order = appears first */
.dashboard-grid .status-card.is-live[data-viewers-tier="high"] {
    order: -3; /* 1000+ viewers - top priority */
}

.dashboard-grid .status-card.is-live[data-viewers-tier="medium"] {
    order: -2; /* 100-999 viewers */
}

.dashboard-grid .status-card.is-live[data-viewers-tier="low"] {
    order: -1; /* 1-99 viewers */
}

/* Subtle highlight effect when card moves to live position */
.dashboard-grid .status-card.is-live {
    animation: card-surface 0.5s ease-out;
}

@keyframes card-surface {
    0% {
        transform: scale(0.98);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Weather card always stays first */
.dashboard-grid .weather-card {
    order: -10 !important;
}

/* ===========================================
   19. MAP MOBILE COLLAPSE & LAZY LOADING
   Default collapsed on mobile for performance
   =========================================== */

/* Class-based collapsed state */
.coverage-map-section.collapsed .map-content {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden;
    pointer-events: none;
}

/* Toggle icon rotation based on state */
.coverage-map-section.collapsed .map-toggle-icon {
    transform: rotate(-90deg);
}

.coverage-map-section:not(.collapsed) .map-toggle-icon {
    transform: rotate(0deg);
}

/* Smooth transitions */
.coverage-map-section .map-toggle-icon {
    transition: transform 0.3s ease;
}

/* Mobile: Show "tap to view" hint when collapsed */
@media (max-width: 768px) {
    .coverage-map-section.collapsed .map-header::after {
        content: 'Tap to view map';
        display: block;
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        white-space: nowrap;
    }

    .coverage-map-section.collapsed .map-header {
        padding-bottom: 8px;
    }
}

/* ============================================
   Location Modal Styles
   ============================================ */

.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.location-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.location-modal {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 2px solid rgba(0, 191, 255, 0.4);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 40px rgba(0, 191, 255, 0.3),
        0 0 80px rgba(0, 119, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.location-modal-overlay.active .location-modal {
    transform: scale(1) translateY(0);
}

.location-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.location-modal-close:hover {
    background: rgba(220, 20, 60, 0.8);
    border-color: rgba(220, 20, 60, 0.8);
    transform: rotate(90deg);
}

.location-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.location-modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 119, 255, 0.1) 100%);
    border: 2px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #00bfff;
    flex-shrink: 0;
}

.location-modal-title-wrapper {
    flex: 1;
}

.location-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-modal-subtitle {
    font-size: 0.95rem;
    color: #00bfff;
    margin: 0;
    font-weight: 500;
}

.location-modal-map {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(0, 0, 0, 0.5);
}

.location-modal-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Dark mode filter for Google Maps */
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.location-modal-map iframe.loaded {
    opacity: 1;
}

.location-modal-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.location-modal-map-loading i {
    font-size: 24px;
    color: #00bfff;
}

.location-modal-map.loaded .location-modal-map-loading {
    opacity: 0;
    visibility: hidden;
}

.location-modal-footer {
    padding: 20px 25px 25px;
}

.location-modal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 18px 0;
    padding: 12px 15px;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.15);
    border-radius: 10px;
}

.location-modal-info i {
    color: #00bfff;
    font-size: 16px;
}

.location-modal-actions {
    display: flex;
    gap: 12px;
}

.location-modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-modal-btn-google {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2) 0%, rgba(66, 133, 244, 0.1) 100%);
    border: 1px solid rgba(66, 133, 244, 0.4);
    color: #4285f4;
}

.location-modal-btn-google:hover {
    background: rgba(66, 133, 244, 0.3);
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.3);
}

.location-modal-btn-apple {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.location-modal-btn-apple:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Touch/tap improvements */
.location-modal-close,
.location-modal-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.location-modal-close:active {
    transform: scale(0.95);
}

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

/* Mobile Responsive */
@media (max-width: 600px) {
    .location-modal-overlay {
        padding: 15px;
        padding: max(15px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
    }

    .location-modal {
        max-height: 85vh;
        max-height: calc(85vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .location-modal-header {
        padding: 20px 20px 15px;
        gap: 12px;
    }

    .location-modal-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .location-modal-title {
        font-size: 1.1rem;
    }

    .location-modal-subtitle {
        font-size: 0.85rem;
    }

    .location-modal-map {
        height: 220px;
        min-height: 200px;
    }

    .location-modal-footer {
        padding: 15px 20px 20px;
    }

    .location-modal-info {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .location-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .location-modal-btn {
        padding: 14px 16px;
        min-height: 48px; /* Touch-friendly size */
    }

    .location-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 14px;
    }

    .location-modal-close:hover {
        transform: none; /* Disable rotate on mobile */
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .location-modal-header {
        padding: 15px 15px 12px;
        gap: 10px;
    }

    .location-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .location-modal-title {
        font-size: 1rem;
    }

    .location-modal-map {
        height: 180px;
    }

    .location-modal-footer {
        padding: 12px 15px 15px;
    }
}
