/**
 * WP Category Search - Estilos v1.6.0
 * Estilos fijos con colores personalizados
 */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.wp-category-search-container {
    width: 100%;
}

/* ============================================
   FORMULARIO DE BÚSQUEDA
   ============================================ */
.wp-category-search-form {
    margin-bottom: 20px;
}

/* ============================================
   CAMPO DE BÚSQUEDA
   ============================================ */
.search-input-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #999;
}

.search-input::placeholder {
    color: #999;
}

/* Botón BUSCAR - Fondo blanco, letras negras */
.search-button {
    padding: 12px 25px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    color: #000;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: #f5f5f5;
}

/* ============================================
   BOTONES DE ACCIÓN
   ============================================ */
.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Botón MOSTRAR TODOS - Fondo gris fuerte, letras blancas */
.btn-show-all {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #555;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-show-all:hover {
    background: #444;
}

/* Botón LIMPIAR - Fondo gris claro, letras negras */
.btn-clear {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #ddd;
    color: #000;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: #ccc;
}

/* ============================================
   CONTENEDOR DE RESULTADOS
   ============================================ */
.search-results-container {
    margin-top: 20px;
}

/* ============================================
   LOADING
   ============================================ */
.search-loading {
    text-align: center;
    padding: 30px;
    color: #fff;
}

/* ============================================
   RESULTADOS - Todo en blanco
   ============================================ */
.search-results-list {
    margin-top: 15px;
}

.results-count {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.results-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    margin: 0 0 8px 0;
    color: #fff;
}

.result-title a {
    color: #fff;
    text-decoration: none;
}

.result-title a:hover {
    opacity: 0.8;
}

.result-excerpt {
    margin: 8px 0;
    color: #fff;
    opacity: 0.9;
}

.result-link {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.result-link:hover {
    opacity: 0.8;
}

/* ============================================
   MENSAJES
   ============================================ */
.search-no-results,
.search-error,
.search-message {
    padding: 20px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn-show-all,
    .btn-clear {
        width: 100%;
        text-align: center;
    }
}
