/**
 * Public styles for Matilde ISRF Plugin
 */

.matilde-isrf-plugin-container {
    max-width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 0.8rem;
    border: 0.1rem solid #e1e1e1;
}

.matilde-isrf-content {
    text-align: center;
}

.matilde-isrf-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 600;
}

.matilde-isrf-text {
    color: #666;
    line-height: 1.6;
    font-size: 1.6rem;
}

.matilde-isrf-text p {
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .matilde-isrf-plugin-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .matilde-isrf-content h2 {
        font-size: 2rem;
    }
    
    .matilde-isrf-text {
        font-size: 1.4rem;
    }
}

/* Animation for content loading */
.matilde-isrf-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ESTILOS PARA TARJETAS DE EVENTOS
   ============================================ */

/* Eventos Grid Container */
.matilde-events-container {
    max-width: 120rem;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Grid de eventos */
.matilde-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.matilde-events-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.matilde-events-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.matilde-events-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Tarjeta de evento */
.matilde-event-card {
    background: rgba(0, 0, 0, 0.60);
    box-shadow: 0 0.1rem 0.4rem 0 rgba(25, 33, 61, 0.08);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.4rem;
    gap: 1.2rem;
}

.matilde-event-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.15);
}

/* Imagen del evento */
.matilde-event-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 0.4rem;
    position: relative;
}

.matilde-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.matilde-event-card:hover .matilde-event-image img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.matilde-event-content {
    flex-grow: 1;
    gap: 0.8rem;
    display: flex;
    flex-direction: column;
}

.matilde-event-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.4;
}

.matilde-event-date,
.matilde-event-location,
.matilde-event-type {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #666;
}

.matilde-event-date-icon,
.matilde-event-location-icon,
.matilde-event-type-icon {
    margin-right: 0.8rem;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.matilde-event-date-text,
.matilde-event-location-text {
    line-height: 1.4;
}

.matilde-event-type.matilde-event-online {
    color: #0073aa;
    font-weight: 500;
}

/* Categorías y Tags */
.matilde-event-categories,
.matilde-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
}

.matilde-event-category,
.matilde-event-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 0.3rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.matilde-event-category {
    background: #C5A95E;
    color: #000000;
}

.matilde-event-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Descripción del evento */
.matilde-event-description {
    color: #555;
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.matilde-event-description p {
    margin: 0 0 1rem 0;
}

.matilde-event-description p:last-child {
    margin-bottom: 0;
}

/* Acciones del evento */
.matilde-event-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Botones */
.matilde-event-button {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #ffffff !important;
    width: fit-content;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 800;
    text-align: center;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: inherit;
}

.matilde-event-button:hover {
    color: #ffffff !important;
}

.matilde-event-button-video {
    background: #d32f2f;
}

.matilde-event-button-video:hover {
    background: #b71c1c;
}

.matilde-event-button-more {
    background: transparent;
}

/* Mensajes de error y estado */
.matilde-events-error,
.matilde-events-message {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    text-align: center;
}

.matilde-events-error {
    background: #ffebee;
    color: #c62828;
    border: 0.1rem solid #ef5350;
}

.matilde-events-message {
    background: #e3f2fd;
    color: #1565c0;
    border: 0.1rem solid #42a5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .matilde-events-grid,
    .matilde-events-grid-2,
    .matilde-events-grid-3,
    .matilde-events-grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .matilde-events-container {
        padding: 0 1.5rem;
    }
    
    .matilde-event-card {
        border-radius: 0.8rem;
    }
    
    .matilde-event-content {
        padding: 1.5rem;
    }
    
}

@media (min-width: 769px) and (max-width: 1024px) {
    .matilde-events-grid-3,
    .matilde-events-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .matilde-events-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .matilde-events-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .matilde-events-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
} 