/**
 * 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;
}

/* Filtros de categorías */
.matilde-events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 8rem;
    justify-content: center;
    align-items: center;
}

.matilde-filter-pill {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 0.3rem;
    font-size: 1.6rem;
    font-weight: 500;
    background: #000000;
    color: #C5A95E;
    border: 0.2rem solid #C5A95E;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.matilde-filter-pill:hover {
    opacity: 0.8;
    transform: translateY(-0.1rem);
}

.matilde-filter-pill-active {
    background: #C5A95E;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 0.2rem 0.4rem rgba(197, 169, 94, 0.3);
}

/* Paginación con dots */
.matilde-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.matilde-events-dots {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.matilde-pagination-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #C5A95E;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.2rem solid transparent;
}

.matilde-pagination-dot:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.matilde-pagination-dot-active {
    background: #FFFFFF;
    border-color: #C5A95E;
    transform: scale(1.3);
}

/* 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: 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: 1.6rem;
    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;
}

/* Event description */
.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: 400;
    text-align: center;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    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;
}

/* Error and status messages */
.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;
}

/* No events available - Image with text overlay */
.matilde-events-no-events {
    margin: 2rem 0;
    width: 100%;
}

.matilde-events-no-events-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/* Rotating background icon */
.matilde-events-no-events-background-icon {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 1;
    z-index: 1;
    animation: rotateSlowly 20s linear infinite;
}

@keyframes rotateSlowly {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.matilde-events-no-events-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.matilde-events-no-events-text {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0.5rem 2rem;
    border-radius: 0;
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

/* Responsive adjustments for no events text */
@media (max-width: 768px) {
    .matilde-events-no-events-text {
        padding: 1rem 2rem;
        font-size: 1.4rem;
        white-space: normal;
        max-width: 90%;
    }
    
    .matilde-events-no-events-background-icon {
        width: 200px;
        height: 200px;
    }
}

/* 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;
    }
    
    .matilde-events-filters {
        gap: 0.8rem;
        margin-bottom: 4rem;
    }
    
    .matilde-filter-pill {
        font-size: 1.1rem;
        padding: 0.35rem 1rem;
    }
    
    .matilde-events-pagination {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .matilde-events-dots {
        gap: 0.8rem;
    }
    
    .matilde-pagination-dot {
        width: 1rem;
        height: 1rem;
    }
}

@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);
    }
} 