/**
 * EMCS Frontend Styles
 *
 * Estilos personalizados para el listado y detalle de eventos.
 * Complementa Bootstrap 5 con estilos específicos del plugin.
 *
 * @package EMCS
 * @since   1.0.0
 */

/* ==========================================================================
   Event List
   ========================================================================== */

.emcs-event-list h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.emcs-event-list .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.emcs-event-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.emcs-event-list .card-img-top {
    height: 200px;
    object-fit: cover;
}

.emcs-event-list .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.emcs-event-list .card-text {
    font-size: 0.9rem;
    color: #555;
}

/* Filtros */
.emcs-event-list .form-select {
    border-radius: 0.375rem;
}

/* Paginación */
.emcs-event-list .pagination .page-link {
    color: #0d6efd;
}

.emcs-event-list .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* No results */
#emcs-no-results p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ==========================================================================
   Event Detail
   ========================================================================== */

.emcs-event-detail h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.emcs-event-detail .img-fluid {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.emcs-event-meta span {
    font-size: 0.95rem;
}

.emcs-event-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* Registration box */
#emcs-registration-box {
    position: sticky;
    top: 2rem;
    border-radius: 0.5rem;
}

#emcs-registration-box .btn-primary {
    font-weight: 600;
}

#emcs-registration-box .btn-success {
    font-weight: 600;
}

/* Replay embed */
.emcs-replay iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .emcs-event-list .card-img-top {
        height: 160px;
    }

    .emcs-event-detail .img-fluid {
        max-height: 250px;
    }

    #emcs-registration-box {
        position: static;
        margin-top: 2rem;
    }
}
