/**
 * CMS Source - Header Search Component
 * Barre de recherche integree dans le page-header, sous page-description
 * Utilisee sur : Marche, Marketplace, Librairie, Annonces, Blog, Discussions, Events
 * @version 1.0.0
 */

/* =========================================================================
   HEADER SEARCH — dans le page-header, sous la description
   ========================================================================= */
.header-search {
    max-width: 500px;
    margin: 1.25rem auto 0;
    display: flex;
    border-radius: var(--border-radius-full, 9999px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition, 200ms ease);
}
.header-search:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-search input[type="text"],
.header-search input[type="search"] {
    flex: 1;
    padding: 0.65rem 1.25rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.9375rem;
    outline: none;
    min-width: 0;
}
.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search button {
    padding: 0.65rem 1.25rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: background var(--transition, 200ms ease);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.header-search button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hidden inputs dans le header-search */
.header-search input[type="hidden"] {
    display: none;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
    .header-search {
        max-width: 100%;
        margin: 1rem auto 0;
    }
}

@media (max-width: 480px) {
    .header-search input[type="text"],
    .header-search input[type="search"] {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .header-search button {
        padding: 0.5rem 1rem;
    }
}
