/* Mobile Context & Enhanced Hero Design */

/* ===========================
   Mobile Context Badge
   =========================== */
.mobile-context-badge {
    display: none !important;
}

/* ===========================
   Mobile Hero Ticker - Hidden by default
   =========================== */
.mobile-hero-ticker {
    display: none !important;
}

@media (max-width: 640px) {
    .mobile-context-badge {
        display: block !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 0.625rem 0.875rem;
        margin-bottom: 1.25rem;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-context-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, rgba(255, 107, 107, 0.8) 0%, rgba(255, 68, 68, 0.8) 100%);
    }

    .context-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 0.35rem;
        display: block;
        font-weight: 600;
    }

    .context-stat {
        font-size: 1.25rem;
        font-weight: 700;
        color: #ff6b6b;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    }

    .context-detail {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }
}

/* ===========================
   Mobile Hero Ticker Integration
   =========================== */
@media (max-width: 640px) {
    .mobile-hero-ticker {
        display: flex !important;
        align-items: center;
        background: rgba(0, 217, 255, 0.06);
        border: 1px solid rgba(0, 217, 255, 0.2);
        border-radius: 10px;
        padding: 0.625rem 0.75rem;
        margin: 1.25rem 0;
        position: relative;
        min-height: 40px;
        overflow: hidden;
    }

    .mobile-hero-ticker .ticker-label {
        background: rgba(0, 217, 255, 0.15);
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.55rem;
        font-weight: 700;
        color: #00D9FF;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    .ticker-dot {
        display: inline-block;
        width: 5px;
        height: 5px;
        background: #00FF00;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }

    .mobile-ticker-content {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.5rem;
        flex: 1;
    }

    .mobile-ticker-content::-webkit-scrollbar {
        display: none;
    }

    .ticker-text {
        flex: 0 0 auto;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
    }

    .ticker-text strong {
        color: #00D9FF;
        font-weight: 600;
        margin-right: 0.25rem;
    }
}

/* ===========================
   Enhanced Mobile Hero Layout
   =========================== */
@media (max-width: 640px) {
    .hero-right-content {
        position: relative;
        z-index: 2;
    }

    /* Background subtle stats */
    .hero-right::after {
        content: '';
        position: absolute;
        top: 20%;
        right: -10%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 100, 100, 0.03) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Optimize spacing for context */
    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 0;
    }
}

/* ===========================
   Bottom Ticker - Removed on Mobile
   =========================== */
/* Bottom ticker is hidden on mobile in favor of mobile-hero-ticker */

/* ===========================
   Hamburger Menu Fix
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        top: 60px;
        left: -100% !important;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 14, 39, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        display: flex !important;
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu .nav-link {
        color: white !important;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        color: #00D9FF !important;
        background: rgba(0, 217, 255, 0.05);
        padding-left: 1rem;
    }

    .nav-menu .nav-cta {
        background: linear-gradient(135deg, #00D9FF 0%, #00FFD4 100%);
        color: #0A0E27 !important;
        font-weight: 600;
        margin-top: 1rem;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}