/* css/navigation.css - Navigation Styles with Proper Tier Visibility */

/* Main Navigation Container */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* All Navigation Links */
.nav-link {
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

/* Hover State */
.nav-link:hover {
    background: rgba(97, 113, 64, 0.1);
    color: #617140;
    transform: translateY(-1px);
}

/* Active/Current Page State */
.nav-link.active {
    background: #617140;
    color: white;
    font-weight: 600;
}

.nav-link.active:hover {
    background: #4a5a30;
    color: white;
}

/* Tier Navigation - ALWAYS VISIBLE when present */
.tier-nav {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Different tier nav colors (optional - for visual distinction) */
/* .tier-nav.auth-nav {
    Dashboard - slight blue tint
}

.tier-nav.family-nav {
    Family - slight purple tint
}

.tier-nav.girlfriend-nav {
    Raeha's Tab - slight pink tint
} */

.tier-nav.admin-nav {
    /* Admin - slight red tint */
    position: relative;
}

/* Optional: Add icon or badge to admin nav */
.tier-nav.admin-nav::after {
    content: '👑';
    margin-left: 4px;
    font-size: 0.8em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.mobile-active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .tier-nav {
        display: block !important;
        width: 100%;
    }
}

/* Hide tier nav by default in CSS (JavaScript will show based on permissions) */
/* REMOVED - We want JavaScript to fully control visibility */

/* Ensure navigation is visible */
#mainNav {
    display: flex !important;
    visibility: visible !important;
}

/* Debug helper - remove in production */
/* .nav-link::before {
    Uncomment to debug which links are showing
    content: '[' attr(class) '] ';
    font-size: 0.7em;
    color: red;
} */