/* ========================================
   DESKTOP DROPDOWN NAVIGATION
   ======================================== */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 12px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger:hover,
.nav-dropdown:hover .dropdown-trigger {
    color: var(--color-primary);
    background: rgba(255, 77, 143, 0.08);
    transform: translateY(-2px);
}

.dropdown-trigger .arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-trigger .arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition-base);
    position: relative;
    cursor: pointer;
}

.dropdown-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dropdown-link.competitive {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.05), rgba(236, 72, 153, 0.05));
}

.dropdown-link.competitive:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.12), rgba(236, 72, 153, 0.12));
}

.link-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.link-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.beta-badge {
    margin-left: auto;
    padding: 3px 8px;
    background: linear-gradient(135deg, #FF6B6B, #EC4899);
    color: white;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beta-badge.new-badge {
    background: linear-gradient(135deg, #00D9A3, #00B894);
}

.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}


/* ========================================
   HAMBURGER BUTTON (MOBILE)
   ======================================== */

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.2s;
    order: -1;
    margin-right: 4px;
}

.hamburger-menu:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ========================================
   MOBILE OVERLAY + SLIDE-OUT MENU
   ======================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(255, 77, 143, 0.04), rgba(108, 92, 231, 0.04));
    flex-shrink: 0;
}

.mobile-menu-logo {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-logo .logo-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-base);
    line-height: 1;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.08);
}


/* ========================================
   MOBILE NAV LINKS
   ======================================== */

.mobile-menu-nav {
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-section {
    margin-bottom: 20px;
    padding: 0 16px;
}

.mobile-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.mobile-nav-link.competitive {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08), rgba(236, 72, 153, 0.08));
    border-left: 3px solid #FF6B6B;
}

.mobile-nav-link.competitive:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.14), rgba(236, 72, 153, 0.14));
}

.mobile-link-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.lock-badge,
.hot-badge,
.new-badge-mobile {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.lock-badge {
    background: rgba(108, 92, 231, 0.1);
    color: #6C5CE7;
}

.hot-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: white;
}

.new-badge-mobile {
    background: linear-gradient(135deg, #00D9A3, #00B894);
    color: white;
}

/* Competitive Section */
.competitive-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.04), rgba(236, 72, 153, 0.04));
    padding: 14px 16px 10px;
    border-radius: var(--radius-md);
    margin: 0 16px 20px;
}

.competitive-section .mobile-section-title {
    padding-left: 0;
}


/* ========================================
   MOBILE AUTH AREA
   ======================================== */

.mobile-menu-auth {
    padding: 16px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-auth-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    text-align: center;
}

.mobile-auth-btn.sign-in {
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.mobile-auth-btn.sign-up {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.mobile-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mobile-user-info {
    text-align: center;
    padding: 12px;
}

.mobile-user-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
}

.mobile-user-email {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.mobile-logout-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-base);
}

.mobile-logout-btn:hover {
    background: #e74c3c;
    color: white;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Hide Features dropdown on ALL screen sizes — features live in the side drawer now */
.nav-dropdown {
    display: none !important;
}

/* Hide old nav-links on all screen sizes */
.nav-links {
    display: none !important;
}

@media (max-width: 968px) {
    .desktop-nav {
        display: none !important;
    }

    /* Hide the old mobile-menu-toggle from mobile-fixes.css */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}