/**
 * La Cuisine - Estilos para Visor de Recetas
 * Version: 1.0.0
 */

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
#lacuisine-recetas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   SECCIÓN DE FILTROS
   ======================================== */
.lacuisine-filters-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Buscador */
.lacuisine-search-box {
    margin-bottom: 20px;
}

#lacuisine-search {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#lacuisine-search:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Filtro de categorías */
.lacuisine-categories-filter {
    margin-bottom: 15px;
}

.lacuisine-categories-filter label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#lacuisine-category-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#lacuisine-category-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Contador de resultados */
.lacuisine-results-count {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-weight: 500;
}

#lacuisine-count {
    font-weight: 700;
    color: #ff6b35;
    font-size: 18px;
}

/* ========================================
   GRID DE TARJETAS
   ======================================== */
.lacuisine-recetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Tarjeta individual */
.lacuisine-receta-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.lacuisine-receta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

/* Imagen destacada de la receta */
.lacuisine-receta-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.lacuisine-receta-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.lacuisine-receta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lacuisine-receta-card:hover .lacuisine-receta-image img {
    transform: scale(1.08);
}

/* Contenido de la tarjeta */
.lacuisine-receta-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título de la receta */
.lacuisine-receta-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
}

.lacuisine-receta-card h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lacuisine-receta-card h3 a:hover {
    color: #ff6b35;
}

/* Categorías */
.lacuisine-receta-categories {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lacuisine-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ffe8e0;
    color: #ff6b35;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Fecha */
.lacuisine-receta-date {
    color: #888;
    font-size: 13px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.lacuisine-receta-date::before {
    content: "📅 ";
}

/* Botón Ver Receta */
.lacuisine-receta-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff6b35;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lacuisine-receta-link:hover {
    background: #e55a2a;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ========================================
   MENSAJE SIN RESULTADOS
   ======================================== */
.lacuisine-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

.lacuisine-no-results p {
    margin: 0;
    font-weight: 500;
}

/* ========================================
   EFECTOS Y ANIMACIONES
   ======================================== */
.lacuisine-receta-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #lacuisine-recetas-container {
        padding: 15px;
    }

    .lacuisine-filters-section {
        padding: 20px;
    }

    .lacuisine-recetas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lacuisine-receta-image {
        height: 200px;
    }

    .lacuisine-receta-content {
        padding: 20px;
    }

    .lacuisine-receta-card h3 {
        font-size: 18px;
    }

    #lacuisine-search {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .lacuisine-receta-image {
        height: 180px;
    }

    .lacuisine-receta-content {
        padding: 15px;
    }

    .lacuisine-filters-section {
        padding: 15px;
    }

    .lacuisine-category-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ========================================
   MODO OSCURO (Opcional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    #lacuisine-recetas-container {
        color: #e0e0e0;
    }

    .lacuisine-filters-section {
        background: #2a2a2a;
    }

    .lacuisine-receta-card {
        background: #1e1e1e;
        border-color: #404040;
        color: #e0e0e0;
    }

    .lacuisine-receta-card h3,
    .lacuisine-receta-card h3 a {
        color: #fff;
    }

    .lacuisine-receta-card h3 a:hover {
        color: #ff6b35;
    }

    #lacuisine-search,
    #lacuisine-category-select {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }

    .lacuisine-results-count {
        background: #2a2a2a;
        color: #b0b0b0;
    }

    .lacuisine-category-badge {
        background: #3a2a20;
        color: #ffb89a;
    }
}
