/* FILE: /public_html/assets/css/header.css | VERSION: v4-a (Dynamic Auth Header) */
/* This is a major update to support the new nav structure and auth states. */

:root {
    --header-height: 70px;
    --header-height-scroll: 60px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height);
}

.site-header.is-scrolled,
.site-header.menu-is-open {
    height: var(--header-height-scroll);
    background-color: var(--bg-color-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* =============================================================
   LEFT SIDE (Logo + Main Nav)
   ============================================================= */
.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;  /* Increased gap between logo and nav */
}

.header-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}
.header-logo:hover {
    transform: scale(1.05);
}

.header-nav-main {
    display: none; /* Hidden on mobile */
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .header-nav-main {
        display: flex; /* Shown on desktop */
    }
}

.header-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color-muted);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.header-nav-link:hover {
    color: var(--text-color);
}
.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width 0.3s ease;
}
.header-nav-link:hover::after {
    width: 100%;
}


/* =============================================================
   RIGHT SIDE (Actions)
   ============================================================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions-desktop {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .header-actions-desktop {
        display: flex;
    }
}

/* Primary Button (re-used) */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--neon-magenta);
    border-radius: 99px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px var(--neon-magenta-glow);
}
.button-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px var(--neon-magenta-glow);
}
.button-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Notification Bell */
.notification-bell {
    background: none;
    border: none;
    color: var(--text-color-muted);
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}
.notification-bell:hover {
    color: var(--neon-cyan);
}
.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--neon-magenta);
    border: 1px solid var(--bg-color-dark);
    border-radius: 50%;
}

/* Dashboard Link */
.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.dashboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.dashboard-link:hover .dashboard-avatar {
    transform: scale(1.1);
    border-color: var(--neon-cyan);
}

/* =============================================================
   MOBILE NAV (Toggle & Panel)
   ============================================================= */
.header-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    z-index: 1001; /* Above mobile panel */
}
.header-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.header-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .header-toggle {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-color-dark);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.mobile-nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-muted);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.mobile-nav-link:hover {
    color: var(--text-color);
}
.mobile-nav-divider {
    width: 100px;
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}
.mobile-nav .button-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}