/* ================================================================
   Upskill Course Filter — style.css
   Reprend l'esthétique du thème Upskill / filters.php
   ================================================================ */

.ucf-filter-wrap {
    font-family: inherit;
}

/* ── Formulaire ────────────────────────────────────────────────── */
.ucf-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Recherche ─────────────────────────────────────────────────── */
.ucf-search-block {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.ucf-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.ucf-search-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.ucf-search-input:focus {
    outline: none;
    border-color: #aaa;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.ucf-search-input::placeholder {
    color: #aaa;
}

/* ── Titre de section ──────────────────────────────────────────── */
.ucf-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px 0;
    padding: 0;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ── Bloc catégories ───────────────────────────────────────────── */
.ucf-cats-block {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.ucf-cats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ucf-cats-item {
    margin: 0;
    padding: 0;
}

/* ── Label + checkbox ──────────────────────────────────────────── */
.ucf-category-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    user-select: none;
}

.ucf-category-label:hover {
    color: #111;
}

.ucf-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    accent-color: currentColor; /* hérite de la couleur Elementor si définie */
}

/* ── Bouton reset ──────────────────────────────────────────────── */
.ucf-reset-block {
    margin-top: 4px;
}

.ucf-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid #c0392b;
    border-radius: 4px;
    color: #c0392b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
}

.ucf-reset:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
}

/* ── Notice taxonomie vide ─────────────────────────────────────── */
.ucf-empty-notice {
    font-size: 13px;
    color: #e74c3c;
    background: #fef0ee;
    border: 1px solid #fad4cf;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0;
}
