/**
 * Event list cards (tigsi-event-card-v2) — loaded once on events/index-filter
 */
.tigsi-event-card-v2 {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tigsi-event-card-v2:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.tigsi-event-card-v2-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tigsi-event-card-v2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tigsi-event-card-v2:hover .tigsi-event-card-v2-media img {
    transform: scale(1.04);
}

.tigsi-event-card-v2-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.08) 55%, rgba(2, 6, 23, 0) 100%);
}

.tigsi-event-card-v2-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.tigsi-event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 700;
    padding: 8px 12px;
    backdrop-filter: blur(4px);
}

.tigsi-event-chip-free {
    color: #14532d;
    background: rgba(187, 247, 208, 0.94);
}

.tigsi-event-chip-price {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.9);
}

.tigsi-event-chip-recurring {
    color: #ffffff;
    background: rgba(118, 75, 162, 0.9);
}

.tigsi-event-chip-rating {
    color: #78350f;
    background: rgba(254, 243, 199, 0.95);
}

.tigsi-event-chip-fav {
    color: #fff;
    background: rgba(244, 63, 94, 0.95);
    padding: 7px 9px;
    margin-left: auto;
}

.tigsi-event-chip-countdown {
    margin-left: auto;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-ribbon {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-countdown-badge {
    min-height: 32px;
}

.tigsi-event-card-v2-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.tigsi-event-card-v2-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 700;
}

.tigsi-event-card-v2-title a {
    color: #111827;
    text-decoration: none;
}

.tigsi-event-card-v2-title a:hover {
    color: #4338ca;
}

.tigsi-event-card-v2-meta {
    display: grid;
    gap: 7px;
}

.tigsi-event-card-v2-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    color: #475569;
}

.tigsi-event-card-v2-meta-item i {
    margin-top: 2px;
    color: #6366f1;
}

.tigsi-event-card-v2-description {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.tigsi-event-card-v2-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.tigsi-btn-primary,
.tigsi-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tigsi-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: 1px solid transparent;
    flex: 1;
}

.tigsi-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.35);
}

.tigsi-btn-ghost {
    background: rgba(79, 70, 229, 0.08);
    color: #4338ca;
    border: 1px solid rgba(79, 70, 229, 0.18);
}

.tigsi-btn-ghost:hover {
    color: #3730a3;
    background: rgba(79, 70, 229, 0.14);
}

@media (max-width: 575.98px) {
    .tigsi-event-card-v2-body {
        padding: 16px;
    }

    .tigsi-event-chip-countdown {
        max-width: 55%;
    }

    .tigsi-event-card-v2-footer {
        flex-direction: column;
    }

    .tigsi-btn-primary,
    .tigsi-btn-ghost {
        width: 100%;
    }
}
