/* Navigation - Liquid Glass Effect */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Tab Bar - React Component Container */
.desktop-nav-links {
    min-width: 400px;
    width: auto;
}

/* Context Menu (Mobile) - Matches Cadences.tsx */
.context-menu {
    position: fixed;
    width: 180px;
    /* Blue Glass Gradient (Cadences style but Blue) */
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)) padding-box, linear-gradient(145deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.0)) border-box;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20.15px; /* Exact radius from Cadences.tsx */
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15); /* Blue shadow */
    border: 1px solid transparent;
    z-index: 10000;
    padding: 8px;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Springy transition */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.context-menu-item {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 9999px; /* Rounded full items */
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.context-menu-item:hover {
    background: rgba(59, 130, 246, 0.08); /* Blue hover tint */
}

.context-menu-item.active {
    background: rgba(59, 130, 246, 0.15); /* Active blue tint */
    color: var(--blue-primary);
}

/* Mobile Nav Button */
.mobile-nav-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 24px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        width: auto;
        height: auto;
    }

    .mobile-nav-arrow {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
        color: var(--blue-primary);
    }

    .mobile-nav-arrow.open {
        transform: rotate(180deg);
    }

    .desktop-nav-links {
        display: none !important;
    }

    nav {
        position: fixed !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: auto;
        min-width: 140px;
        /* Removed Blue Glass for Mobile Button */
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        padding: 4px !important;
        display: flex;
        justify-content: center;
        border-radius: 9999px;
        z-index: 1000 !important;
    }

    .nav-container {
        width: 100%;
        justify-content: center;
    }
}

/* Navigation Visibility */
.desktop-nav { display: block; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
}
