/* ==========================================================================
   AVA Membership — EventList Divi module styles (card vertical)
   ========================================================================== */

.ava-events-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Item (card) ──────────────────────────────────────────────────────────── */
.ava-event-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ava-event-item:last-child {
    border-bottom: 0;
}

.ava-event-item__body{
    flex: 1;
}

/* Badge circular gris: linea 1 = tipo, linea 2 = dia */
.ava-event-item__badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d1d5db;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.ava-event-item__badge-type {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.ava-event-item__badge-day {
    font-size: 0.95rem;
    margin-top: 2px;
}

.ava-event-item__mode {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ── Titulo ──────────────────────────────────────────────────────────────── */
.ava-event-item__title {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.ava-event-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.ava-event-item__title a:hover {
    color: var(--primary-color, #2271b1);
}

/* ── Excerpt ────────────────────────────────────────────────────────────── */
.ava-event-item__excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Link "Acceder" ──────────────────────────────────────────────────────── */
.ava-event-item__link {
    align-self: flex-start;
    color: var(--primary-color, #2271b1);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.ava-event-item__link:hover {
    text-decoration: underline;
}

/* ── Search bar (compartido con filters.css pero lo redefinimos por
   compatibilidad con el modulo EventList que ya tenia su propio estilo) ── */
.ava-events-search {
    margin-bottom: 16px;
}

.ava-events-search-input {
    width: 100%;
    max-width: 360px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font: inherit;
}

.ava-events-empty {
    color: #6b7280;
    text-align: center;
    padding: 20px;
}


/* -- Modos de visualizacion ------------------------------------------------ */

/* list + both: 1 elemento por fila (block layout, no hacen falta reglas) */

/* grid: 2 elementos por fila */
.ava-events-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}
.ava-events-list--grid > .ava-event-item {
    padding-left: 0;
    padding-right: 0;
}
/* Separador vertical entre las dos columnas */
.ava-events-list--grid > .ava-event-item:nth-child(even) {
    padding-left: 16px;
}
.ava-events-list--grid > .ava-event-item:nth-child(odd) {
    padding-right: 16px;
}
