/* ─── AI Products Dropdown ─────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-toggle:hover {
    color: var(--text);
    background: var(--bg-card);
}

.dropdown-toggle i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i,
.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-card, #161b22);
    border: 1px solid var(--border, #30363d);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 2000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text, #e6edf3);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.current {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dropdown-item.current:hover {
    background: rgba(34, 197, 94, 0.15);
}

.week-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropdown-item.current .week-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text, #e6edf3);
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-secondary, #8b949e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 4px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* ─── Announcement Banners ─────────────────────────────────── */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.announcement-banner.show {
    transform: translateY(0);
}

.announcement-banner.hiding {
    transform: translateY(-100%);
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}

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

.banner-badge i { font-size: 0.875rem; }

.banner-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

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

.banner-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.banner-detail {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #4338ca;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-cta i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.banner-cta:hover i {
    transform: translateX(4px);
}

.banner-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.banner-close i { font-size: 0.875rem; }

/* Discord-type banners */
.discord-banner {
    background: linear-gradient(135deg, #5865F2, #7289DA);
}

.discord-cta { color: #5865F2; }
.discord-cta:hover { color: #4752C4; }

/* Body adjustments for banners */
body.banner-visible .nav,
body.maven-visible .nav {
    top: 50px !important;
}

body.discord-visible .nav {
    top: 50px !important;
}

body.both-banners-visible .nav {
    top: 100px !important;
}

/* ─── Mobile hamburger ─────────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text, #e6edf3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate hamburger to X when open */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        background: var(--bg-card, #161b22);
        border-top: 1px solid var(--border, #30363d);
        padding: 12px;
        gap: 4px;
        order: 3;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        width: 100%;
        max-height: 50vh;
        opacity: 0;
        visibility: hidden;
        display: none;
        box-shadow: none;
        border: 1px solid var(--border, #30363d);
        margin-top: 4px;
        left: 0;
    }

    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        display: block;
        transform: none !important;
    }

    .nav-link, .btn {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
    }

    #market-status { display: none; }

    /* Banner mobile */
    .banner-container {
        flex-direction: column;
        padding: 10px 16px;
        gap: 8px;
    }

    .banner-content {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .banner-text {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }

    .banner-separator { display: none; }

    .banner-badge {
        font-size: 0.65rem;
        min-width: auto;
        padding: 6px 12px;
    }

    .banner-actions {
        width: 100%;
        justify-content: center;
    }

    .banner-cta {
        flex: 1;
        justify-content: center;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    body.banner-visible .nav,
    body.maven-visible .nav,
    body.discord-visible .nav {
        top: 80px !important;
    }

    body.both-banners-visible .nav {
        top: 160px !important;
    }
}
