/**
 * Landing Navbar Styles
 * Floating pill-style navbar with glass effect
 * Shared across landing page and feature pages
 */

/* ==========================================================================
   Base Floating Navbar
   ========================================================================== */

body:has(.navbar-landing-style) .navbar {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
}

body:has(.navbar-landing-style) .navbar > .container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    max-width: 1000px;
    transition: all 0.25s ease;
}

body:has(.navbar-landing-style) .navbar.scrolled {
    padding: 0.75rem 0;
}

body:has(.navbar-landing-style) .navbar.scrolled > .container {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Nav Links
   ========================================================================== */

body:has(.navbar-landing-style) .navbar-nav .nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
}

/* Remove bullet separators */
body:has(.navbar-landing-style) .navbar-nav > .nav-item:not(:last-child) > .nav-link:not(.dropdown-toggle):after {
    display: none;
}

/* Last nav item - CTA style */
body:has(.navbar-landing-style) .navbar-nav > .nav-item:last-child > .nav-link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 8px 16px !important;
    transition: all 0.25s ease;
}

body:has(.navbar-landing-style) .navbar-nav > .nav-item:last-child > .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Brand
   ========================================================================== */

body:has(.navbar-landing-style) .navbar .brand-tagline {
    display: none;
}

body:has(.navbar-landing-style) .navbar .brand-name {
    font-size: 1.1rem;
}

/* ==========================================================================
   Dropdown Menu - Glass Effect
   ========================================================================== */

body:has(.navbar-landing-style) .navbar .dropdown-menu {
    background: rgba(25, 22, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    margin-top: 1rem;
}

body:has(.navbar-landing-style) .navbar .dropdown-item {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.15s ease;
}

body:has(.navbar-landing-style) .navbar .dropdown-item:hover,
body:has(.navbar-landing-style) .navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

body:has(.navbar-landing-style) .navbar .dropdown-item.active,
body:has(.navbar-landing-style) .navbar .dropdown-menu .current-menu-item > .dropdown-item {
    background: rgba(99, 102, 241, 0.25);
    color: #FFFFFF;
    border-left: none;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    body:has(.navbar-landing-style) .navbar > .container {
        border-radius: 24px;
        padding: 0.75rem 1.25rem;
        max-width: calc(100% - 2rem);
    }

    body:has(.navbar-landing-style) .navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    body:has(.navbar-landing-style) .navbar-nav {
        gap: 0.25rem;
    }

    body:has(.navbar-landing-style) .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 12px;
    }

    body:has(.navbar-landing-style) .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    body:has(.navbar-landing-style) .navbar-nav > .nav-item:last-child {
        margin-top: 0.5rem;
    }

    body:has(.navbar-landing-style) .navbar-nav > .nav-item:last-child > .nav-link {
        text-align: center;
        justify-content: center;
    }

    body:has(.navbar-landing-style) .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
    }

    body:has(.navbar-landing-style) .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
}

/* ==========================================================================
   Theme Variants - Intelligence/Spy Theme
   ========================================================================== */

body:has(.navbar-theme-intelligence) .navbar > .container {
    background: rgba(10, 10, 15, 0.7);
    border-color: rgba(168, 85, 247, 0.15);
}

body:has(.navbar-theme-intelligence) .navbar.scrolled > .container {
    background: rgba(10, 10, 15, 0.85);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
}

body:has(.navbar-theme-intelligence) .navbar-nav > .nav-item:last-child > .nav-link {
    border-color: rgba(168, 85, 247, 0.4);
}

body:has(.navbar-theme-intelligence) .navbar-nav > .nav-item:last-child > .nav-link:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.6);
}

body:has(.navbar-theme-intelligence) .navbar .dropdown-menu {
    background: rgba(10, 10, 15, 0.9);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.1);
}

body:has(.navbar-theme-intelligence) .navbar .dropdown-item:hover,
body:has(.navbar-theme-intelligence) .navbar .dropdown-item:focus {
    background: rgba(168, 85, 247, 0.2);
}
