/* header.css - styles for the header */
/* Top bar styles */
.top-bar {
    background-color: #862C91;
    padding: 8px 0;
    color: white;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: #FFA500;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.auth-links a {
    color: #FFA500;
    font-size: 14px;
}

.auth-links a:hover {
    color: #FFD700;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Header styles */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
}

/* Prevent body scroll when mobile menu is open */
body.scroll-lock {
    overflow: hidden;
}

/* Logo and main navigation container */
.header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Top section with logo and secondary nav */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: 70px;
    max-height: 70px;
}

/* Secondary navigation */
.secondary-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.secondary-nav a {
    color: #666;
    font-size: 13px;
    padding: 5px 0;
    white-space: nowrap;
}

.secondary-nav a:hover {
    color: #862C91;
}

.secondary-nav a.apply {
    color: #FF0000;
    font-weight: 500;
}

.secondary-nav a.apply:hover {
    color: #CC0000;
}

/* Main navigation */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #862C91;
    border-bottom: 2px solid #862C91;
}

.search-icon {
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: 15px;
    /* Increased touch target for mobile */
    padding: 8px;
    display: flex;
    align-items: center;
}

.search-icon:hover {
    color: #862C91;
}

/* Mobile menu button - hidden by default */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    /* Minimum 44x44px touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: #862C91;
}

/* Mobile navigation styles */
.mobile-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-direction: column;
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 1002;
    transition: transform 0.2s ease;
}

.mobile-menu-close svg {
    stroke: #862C91;
    transition: stroke 0.2s ease;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

.mobile-menu-close:hover svg {
    stroke: #6B2275;
}

.mobile-nav-links a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a:hover {
    color: #862C91;
}

.mobile-nav-links.show {
    display: flex;
}

/* Hide mobile nav by default on all screens */
.mobile-nav-links {
    display: none;
}

/* Only show mobile toggle on mobile screens */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .secondary-nav {
        display: none;
    }

    /* Ensure header stays sticky on mobile */
    .main-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }

    /* Mobile menu should be fixed and above sticky header */
    .mobile-nav-links {
        position: fixed;
        top: 0;
    }
}

/* Additional responsive adjustments */
@media (min-width: 1201px) and (max-width: 1400px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .secondary-nav {
        gap: 12px;
    }

    .secondary-nav a {
        font-size: 12px;
    }
}