/**
 * Premium Header Styles
 * 
 * CSS for the modern, premium header design
 *
 * @package Wallpaper
 * @since 1.0.0
 */

/* Header Styles */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 10px 0;
    background-color: #f0f2f5; /* Match body background */
    box-shadow: none;
}

.site-header.scrolled {
    padding: 8px 0;
    background-color: #f0f2f5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 0 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin: 0 20px;
    max-width: 1800px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.site-header.scrolled .header-wrapper {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
}

.custom-logo-link {
    display: block;
    max-height: 50px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-branding {
    display: flex;
    align-items: center;
    padding: 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: #4caf50;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    font-size: 15px;
    position: relative;
}

/* Current menu item styling without underline */
.main-navigation li.current-menu-item a {
    color: #4caf50;
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle,
.menu-toggle,
.user-action {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-toggle:hover,
.menu-toggle:hover,
.user-action:hover {
    background-color: #4caf50;
    color: #ffffff;
    transform: translateY(-2px);
}

.user-action img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Search form */
.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.header-search.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    background-color: #ffffff;
}

.search-submit {
    background-color: #4caf50;
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background-color: #2c3e50;
    transform: scale(1.05);
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #2c3e50;
    position: relative;
    transition: background-color 0.3s;
}

.menu-toggle:hover .menu-icon,
.menu-toggle:hover .menu-icon::before,
.menu-toggle:hover .menu-icon::after {
    background-color: #ffffff;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    transition: all 0.3s;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

/* Content area padding */
.site-content {
    padding-top: 90px;
}

/* Media Queries */
@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }
    
    .header-wrapper {
        height: 60px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .site-header.active .main-navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        padding: 20px 0;
        border-radius: 0 0 16px 16px;
        z-index: 99;
    }
    
    .site-header.active .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .site-header.active .main-navigation li {
        width: 100%;
    }
    
    .site-header.active .main-navigation a {
        padding: 12px 24px;
        display: block;
    }
    
    .site-header.active .main-navigation a:hover {
        background-color: #f5f5f5;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0;
    }
    
    .header-wrapper {
        margin: 0 10px;
    }
    
    .site-content {
        padding-top: 80px;
    }
    
    .search-toggle, 
    .menu-toggle, 
    .user-action {
        width: 36px;
        height: 36px;
    }
    
    .header-actions {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .search-field {
        padding: 10px 16px;
    }
    
    .search-submit {
        width: 40px;
        height: 40px;
    }
} 