/* ================================================
   VEXORIA MOBILE.CSS - ULTIMATE MOBILE OVERRIDE
   Loaded LAST to win all CSS specificity battles.
   Targets ONLY the index.html main layout.
   ================================================ */

/* ── 1. RESET HORIZONTAL OVERFLOW ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ── 2. NAVBAR: Force fixed, single-row, proper layout ── */
nav.navbar-redesigned-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Center the inner flex container */
    background: rgba(5, 5, 5, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(188, 19, 254, 0.3) !important;
    box-sizing: border-box !important;
}

/* Common state for scrolled and initial to prevent jolt */
nav.navbar-redesigned-top.scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    height: 60px !important;
}

/* The inner row container - MUST BE 100% */
nav.navbar-redesigned-top > div.nav-container-flex {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 60px !important;
    flex-wrap: nowrap !important;
}

/* ── 3. AUTH WRAPPER (Right side in RTL) ── */
nav.navbar-redesigned-top .nav-auth-wrapper {
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
}

/* ── 4. LOGO MIDDLE (Center) ── */
nav.navbar-redesigned-top .nav-logo-middle {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2 !important;
    flex: 1 !important; /* Allow it to take middle space */
}

nav.navbar-redesigned-top .navbar-logo-img {
    height: 32px !important; /* Professional size */
    width: auto !important;
    filter: drop-shadow(0 0 8px rgba(188, 19, 254, 0.5)) !important;
    max-width: 140px !important;
}

/* ── 5. MENU WRAPPER (Left side in RTL) ── */
nav.navbar-redesigned-top .nav-menu-wrapper {
    display: flex !important;
    align-items: center !important;
    order: 3 !important;
}

nav.navbar-redesigned-top button.more-btn-custom {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 50% !important;
    background: rgba(188, 19, 254, 0.2) !important;
    border: 1px solid rgba(188, 19, 254, 0.5) !important;
    z-index: 100000 !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
}

nav.navbar-redesigned-top button.more-btn-custom .hamburger-line {
    width: 20px !important;
    height: 2px !important;
    background-color: #fff !important;
    display: block !important;
    border-radius: 10px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Open State (X) Animations */
nav.navbar-redesigned-top button.more-btn-custom.is-active {
    background: rgba(188, 19, 254, 0.4) !important;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.7) !important;
    transform: rotate(180deg) !important;
}

nav.navbar-redesigned-top button.more-btn-custom.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
}

nav.navbar-redesigned-top button.more-btn-custom.is-active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

nav.navbar-redesigned-top button.more-btn-custom.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
}

/* ── 5. USER DROPDOWN ── */
nav.navbar-redesigned-top .user-dropdown {
    position: absolute !important;
    top: 55px !important;
    right: 10px !important;
    left: auto !important;
    width: 230px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    z-index: 100001 !important;
    display: none !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: rgba(8, 8, 12, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid #bc13fe !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important;
}

nav.navbar-redesigned-top .user-dropdown.active {
    display: flex !important;
}

/* ── 6. MOBILE: HERO SECTION ── */
@media (max-width: 768px) {
    /* Push content below navbar */
    header#hero.hero-new {
        padding-top: 60px !important;
    }

    .hero-logo-new {
        width: 110px !important;
        margin-bottom: 0.8rem !important;
    }

    .hero-title-new {
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.8rem !important;
        letter-spacing: 0 !important;
    }

    .hero-subtitle-new {
        font-size: 0.78rem !important;
        margin-bottom: 1.2rem !important;
        padding: 0 8px !important;
        line-height: 1.5 !important;
    }

    /* CTA Buttons */
    .hero-content-new > div[style*="flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .btn-cyber {
        padding: 10px 22px !important;
        font-size: 0.82rem !important;
        width: auto !important;
        min-width: 160px !important;
        text-align: center !important;
    }
}

/* ── 7. SECTIONS & GRIDS ── */
@media (max-width: 768px) {
    .section-new {
        padding: 50px 0 !important;
    }

    .section-title-new {
        font-size: 1.5rem !important;
    }

    .container-new {
        padding: 0 16px !important;
    }

    /* About section: stack vertically */
    .about-container {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Features: single column */
    .features-grid-new {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .feature-card-new {
        padding: 24px 20px !important;
    }

    /* Gallery: 2 columns */
    .gallery-grid-new {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .gallery-item-new {
        height: 160px !important;
        border-radius: 12px !important;
    }

    /* World map text */
    .map-overlay h3 {
        font-size: 1.2rem !important;
    }

    .map-overlay p {
        font-size: 0.8rem !important;
    }

    /* Footer */
    .footer-content-new {
        flex-direction: column !important;
        gap: 25px !important;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .footer-new {
        padding: 50px 0 30px !important;
    }
}

/* ── 8. HALL OF FAME BUTTON ── */
@media (max-width: 768px) {
    .hof-btn {
        padding: 12px !important;
        margin: 0 12px !important;
    }

    .hof-text {
        font-size: 1rem !important;
    }

    .hof-emblem-img {
        width: 35px !important;
        margin-left: 10px !important;
    }
}

/* ── 9. SUBSCRIPTION PLANS MODAL ── */
@media (max-width: 600px) {
    .plans-modal {
        padding: 50px 8px 20px !important;
        max-height: 95vh !important;
    }

    .plans-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .plan-card {
        padding: 16px 8px !important;
        border-radius: 16px !important;
    }

    .plan-card img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 8px !important;
    }

    .plan-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .plan-price {
        font-size: 1.5rem !important;
        margin-bottom: 3px !important;
    }

    .plan-duration {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }

    .info-badge {
        padding: 2px 6px !important;
        gap: 4px !important;
    }

    .info-badge span {
        font-size: 0.6rem !important;
    }

    .btn-subscribe {
        padding: 10px 5px !important;
        font-size: 0.78rem !important;
    }
}

/* Single column for very small phones */
@media (max-width: 380px) {
    .plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 10. DAILY LOGIN FAB ── */
@media (max-width: 768px) {
    #daily-login-btn {
        bottom: 15px !important;
        left: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
}
