/* header.css - Navigation and Header styles */

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 50px;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-toggle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: -120px; /* Hidden above */
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.search-overlay.active {
    top: 0;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-form {
    flex: 1;
    width: 500px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 30px;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--secondary-color);
    padding-left: 10px;
}

.close-search {
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
}

.close-search:hover {
    color: var(--primary-color);
}

/* Overlay Backdrop */
.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .search-overlay {
        height: 80px;
    }
    
    .search-form {
        padding: 8px 15px;
        width: 280px;
    }
    
    .search-form input {
        font-size: 0.9rem;
    }
}