/* Mobile Header Styles */

/* Mobile Menu Button */
.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: transparent;
    color: #4a5568;
    transition: all 0.2s ease;
}

.menu-button:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

/* Mobile Navigation Container */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 60;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-nav-container.active {
    left: 0;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Search Button */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: transparent;
    color: #4a5568;
    transition: all 0.2s ease;
}

.search-button:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

/* Mobile Search Modal */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.mobile-search-modal.active {
    transform: translateY(0);
}

/* Mobile Search Form */
.mobile-search-form {
    width: 100%;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.mobile-search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #4a5568;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    margin-top: 2rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 0;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f7fafc;
    transition: color 0.2s ease;
}

.mobile-nav-links a:hover {
    color: #2d3748;
}

.mobile-nav-links a i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

/* Mobile Header Responsive Adjustments */
@media (max-width: 768px) {
    .desktop-search {
        display: none;
    }
    
    /* Override for when search is active on mobile */
    .desktop-search.mobile-visible {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .desktop-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .menu-button, 
    .search-button {
        display: none;
    }
}
