/* Modern Header Styles - Mustache Template */

/* Reset and Base */
* {
    box-sizing: border-box;
}

.modern-header-mustache {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modern-header-mustache.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container-mustache {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content-mustache {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

/* Logo */
.logo-wrapper-mustache {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link-mustache {
    display: block;
    text-decoration: none;
}

.logo-image-mustache {
    width: 180px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link-mustache:hover .logo-image-mustache {
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav-mustache {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-link-mustache {
    position: relative;
    padding: 0.75rem 1.25rem;
    font-size: 15px;
    font-weight: 500;
    color: #023047;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link-mustache:hover {
    color: #32a8ee;
    background: rgba(50, 168, 238, 0.05);
}

/* Auth Section */
.auth-section-mustache {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-text-mustache {
    padding: 0.625rem 1.25rem;
    font-size: 15px;
    font-weight: 500;
    color: #023047;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-text-mustache:hover {
    color: #32a8ee;
    background: rgba(50, 168, 238, 0.05);
}

.btn-primary-mustache {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #32a8ee 0%, #41aae8 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(50, 168, 238, 0.25);
    white-space: nowrap;
    border: none;
}

.btn-primary-mustache:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 168, 238, 0.35);
    color: #ffffff;
}

.btn-primary-mustache:active {
    transform: translateY(0);
}

.btn-primary-mustache.mobile-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle-mustache {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger-line-mustache {
    width: 24px;
    height: 2px;
    background: #023047;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hamburger-line-mustache:not(:last-child) {
    margin-bottom: 5px;
}

.mobile-menu-toggle-mustache[aria-expanded="true"] .hamburger-line-mustache:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle-mustache[aria-expanded="true"] .hamburger-line-mustache:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle-mustache[aria-expanded="true"] .hamburger-line-mustache:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav-mustache {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #f3f4f6;
}

.mobile-nav-mustache.show {
    display: block;
}

.mobile-nav-content-mustache {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-link-mustache {
    display: block;
    padding: 1rem 0;
    font-size: 16px;
    font-weight: 500;
    color: #023047;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.mobile-nav-link-mustache:hover {
    color: #32a8ee;
    padding-left: 0.5rem;
}

.mobile-nav-divider-mustache {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

/* Responsive Design */
@media screen and (max-width: 1115px) {
    .desktop-nav-mustache,
    .auth-section-mustache .btn-text-mustache,
    .auth-section-mustache .btn-primary-mustache:not(.mobile-btn) {
        display: none;
    }

    .mobile-menu-toggle-mustache,
    .mobile-nav-mustache {
        display: flex;
    }

    .mobile-nav-mustache {
        display: none;
    }

    .mobile-nav-mustache.show {
        display: block;
    }

    .header-container-mustache {
        padding: 0 1.5rem;
    }

    .header-content-mustache {
        height: 70px;
    }

    .logo-image-mustache {
        width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .header-container-mustache {
        padding: 0 1rem;
    }

    .header-content-mustache {
        height: 65px;
    }

    .logo-image-mustache {
        width: 140px;
    }

    .mobile-nav-content-mustache {
        padding: 1.5rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-image-mustache {
        width: 130px;
    }

    .mobile-menu-toggle-mustache {
        width: 40px;
        height: 40px;
    }

    .hamburger-line-mustache {
        width: 22px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.nav-link-mustache:focus,
.btn-text-mustache:focus,
.btn-primary-mustache:focus,
.mobile-menu-toggle-mustache:focus,
.mobile-nav-link-mustache:focus {
    outline: 2px solid #32a8ee;
    outline-offset: 2px;
}

/* Animation for page load */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-header-mustache {
    animation: fadeInDown 0.5s ease-out;
}

