/**
 * Estilos para la vista de listado de talleres (archive-talleres.php)
 * Diseño moderno tipo grid con tarjetas para cada taller
 */

/* Contenedor principal */
.talleres-listado-container {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Encabezado del listado */
.talleres-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.talleres-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.talleres-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid de talleres */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Tarjeta de taller */
.taller-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.taller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Imagen de la tarjeta */
.taller-imagen {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Etiqueta de precio */
.taller-precio {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #940404;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Contenido de la tarjeta */
.taller-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.taller-titulo {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.taller-titulo a {
    color: #940404!important;
    text-decoration: none;
    transition: color 0.2s;
}

.taller-titulo a:hover {
    color: #f34343;
}

/* Metadatos */
.taller-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.taller-modulos {
    display: flex;
    align-items: center;
    gap: 5px;
}

.taller-modulos i {
    color: #4f3fff;
}

/* Extracto */
.taller-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.taller-excerpt p {
    margin-top: 0;
}

/* Botón de ver detalles */
.taller-boton-ver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #940404;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: flex-start;
    margin-top: auto;
}

.taller-boton-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 63, 63, 0.3);
    color: white;
}

/* Mensaje de no encontrados */
.talleres-no-encontrados {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* Paginación */
.talleres-paginacion {
    margin-top: 30px;
    text-align: center;
}

.talleres-paginacion .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 8px 15px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.talleres-paginacion .page-numbers.current {
    background: #4f3fff;
    color: white;
}

.talleres-paginacion .page-numbers:hover:not(.current) {
    background: #e5e5e5;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .talleres-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .talleres-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .talleres-grid {
        grid-template-columns: 1fr;
    }
    
    .talleres-header {
        margin-bottom: 30px;
    }
    
    .talleres-title {
        font-size: 1.8rem;
    }
}
