/* ========================================
   UNIFIED MODERN HEADER STYLES (extracted from public_header.html)
   ======================================== */

/* Modern Navbar Base - COMPACT VERSION */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 0.5rem 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    min-height: 60px !important;
}

/* Brand Styling - COMPACT */
.modern-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #667eea !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    color: #5a6fd8 !important;
    transform: translateY(-1px);
}

.brand-logo {
    height: 32px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.modern-brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation Links */
.modern-nav {
    margin: 0 auto;
    gap: 0.5rem;
}

.modern-nav-link {
    color: #667eea !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.modern-nav-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #5a6fd8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.modern-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-nav-link.active:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Auth Buttons - COMPACT */
.modern-auth {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.modern-btn-login {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.modern-btn-login:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.modern-btn-signup {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #000;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.modern-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
}

/* Hamburger Menu - COMPACT */
.modern-hamburger {
    border: none;
    background: transparent;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modern-hamburger:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.modern-hamburger:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Animation */
.modern-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.modern-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsive Design */
@media (max-width: 991.98px) {
    .modern-navbar {
        padding: 0.4rem 0 !important;
    }
    
    .brand-logo {
        height: 28px;
        margin-right: 8px;
    }
    
    .modern-brand {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(102, 126, 234, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .modern-nav {
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modern-nav-link {
        padding: 0.6rem 1rem !important;
        margin: 0.125rem 0;
        text-align: center;
        border-radius: 10px;
        font-size: 0.95rem;
        justify-content: center;
    }
    
    .modern-auth {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .modern-btn-login,
    .modern-btn-signup {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Animation Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.modern-nav-link:focus,
.modern-btn-login:focus,
.modern-btn-signup:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modern-navbar {
        border-bottom: 2px solid #667eea;
    }
    
    .modern-nav-link {
        border: 1px solid transparent;
    }
    
    .modern-nav-link:hover {
        border-color: #667eea;
    }
}


