/* ==========================================================================
   STYLES COLOCALISÉS : RECHERCHE (FRONTEND/SEARCH/SEARCH.CSS)
   ========================================================================== */

/* Grande barre de recherche */
.search-box-large {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.search-box-large input {
    flex: 1;
    background: none;
    border: none;
    color: var(--parchment);
    font-family: inherit;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    outline: none;
}

.search-box-large input::placeholder {
    color: var(--parchment-muted);
    font-style: italic;
}

/* Filtres pilules cliquables */
.search-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--gold);
    color: var(--parchment);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--gold);
    color: #1a0f07;
    font-weight: bold;
    box-shadow: 0 0 12px var(--gold-glow);
}

/* Barre d'état des résultats */
.results-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.results-count-text {
    color: var(--gold-light);
    font-size: 1.1rem;
}

/* Liste des cartes de résultats */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.search-item-card {
    background: linear-gradient(145deg, rgba(35, 22, 12, 0.92) 0%, rgba(20, 12, 6, 0.95) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.search-item-card:hover {
    border-color: var(--gold-light);
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
}

.search-item-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.search-item-card h3 a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.search-item-card h3 a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.search-item-card p {
    line-height: 1.6;
    margin: 0.5rem 0 1rem 0;
    color: var(--parchment);
}

/* Surlignage des termes trouvés */
.highlight-match {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: bold;
}

.search-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--parchment-muted);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px dashed var(--gold);
}
