/* ─────────────────────────────────────────
   EB Events – Cards modernos
   templates/ut_sombra/css/eb-events.css
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

.ebm-cards {
    display: flex;
    flex-direction: column;
}

/* ── Card ── */
.ebm-card {
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #f8f9fa;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}
.ebm-card:last-child {
    border-bottom: none;
    margin-bottom: 24px;
}
.ebm-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.ebm-card--featured {
    border-left: none;
}

/* ── Imagem ── */
.ebm-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
}
.ebm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.ebm-card:hover .ebm-card-img {
    transform: scale(1.04);
}
.ebm-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 32px;
}

/* ── Badge de categoria (canto superior esquerdo) ── */
.ebm-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    /* background e border-color vêm do inline style (cor da categoria) */
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Badge de data (canto superior direito) ── */
.ebm-card-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 46px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    line-height: 1;
}
.ebm-badge-day {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.ebm-badge-month {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
}
.ebm-badge-tbc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
}

/* ── Corpo do card ── */
.ebm-card-body {
    padding: 20px 16px 16px;
}

.ebm-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #281D15;
    margin: 0 0 8px;
    line-height: 1.25;
    /* Exactamente 2 linhas: trunca se tiver mais, reserva altura se tiver menos */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(20px * 1.25 * 2); /* 50px = 2 linhas */
}
.ebm-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ebm-card-title a:hover {
    color: #BA5F3E;
}

/* Descrição curta (2 linhas máximo) */
.ebm-card-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #847062;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta (local, data, hora, preço) ── */
.ebm-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ebm-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #847062;
}
.ebm-meta-item svg {
    color: #BA5F3E;
    stroke: #BA5F3E;
    flex-shrink: 0;
}
/* fallback para ícones FA ainda presentes */
.ebm-meta-item i {
    color: #BA5F3E;
    font-size: 11px;
    width: 13px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Botões de registo dentro do card ── */
.ebm-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.ebm-card-actions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ebm-card-actions ul li {
    margin: 0;
}

/* ── Splide grid – cards de altura uniforme ── */
.eb-events-grid-items .splide__slide {
    display: flex;
}
.eb-events-grid-items .splide__slide .ebm-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-radius: 3px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}
.eb-events-grid-items .splide__slide .ebm-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.eb-events-grid-items .splide__slide .ebm-card-meta {
    margin-top: auto;
    padding-top: 10px;
}
