/**
 * Event Card Component
 *
 * Reusable card for event listings in carousels and grids.
 * 3:4 aspect ratio image with hover zoom effect.
 *
 * @package Timelapse
 * @since 1.0.0
 */

/* ── Card Link ── */
.tl-evt-card {
    display: block;
    position: relative;
    text-decoration: none;
    border: none;
    outline: none;
    width: 100%;
    max-width: 300px;
}

/* ── Image Box (3:4 ratio) ── */
.tl-evt-card__img-box {
    position: relative;
    width: 100%;
    padding-top: 130%;
    border-radius: var(--tl-radius-md);
    overflow: hidden;
    background: var(--tl-gray-900);
    margin-bottom: var(--tl-space-sm);
    transform: translateZ(0);
}

.tl-evt-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tl-evt-card__bg--placeholder {
    background: linear-gradient(135deg, var(--tl-surface), var(--tl-gray-900));
}

.tl-evt-card:hover .tl-evt-card__bg {
    transform: scale(1.12);
}

/* ── Date Badge (overlay) ── */
.tl-evt-card__date-badge {
    position: absolute;
    top: var(--tl-space-sm);
    left: var(--tl-space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--tl-radius-sm);
    border: 1px solid var(--tl-glass-border-faint);
    z-index: var(--tl-z-content);
}

.tl-evt-card__date-day {
    font-family: var(--tl-font-primary);
    font-size: 16px;
    font-weight: var(--tl-weight-extrabold);
    color: var(--tl-white);
    line-height: 1;
}

.tl-evt-card__date-month {
    font-family: var(--tl-font-primary);
    font-size: 9px;
    font-weight: var(--tl-weight-bold);
    color: var(--tl-neon);
    text-transform: uppercase;
    letter-spacing: var(--tl-tracking-wider);
    line-height: 1;
    margin-top: 2px;
}

/* ── Discount Tag (overlay) ── */
.tl-evt-card__discount-tag {
    position: absolute;
    top: var(--tl-space-sm);
    right: var(--tl-space-sm);
    font-family: var(--tl-font-primary);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 215, 96, 0.3);
    color: var(--tl-green-tag);
    font-size: var(--tl-text-xxs);
    font-weight: var(--tl-weight-extrabold);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
    z-index: var(--tl-z-content);
}

/* ── Info Area ── */
.tl-evt-card__info {
    padding: 0 2px;
}

.tl-evt-card__meta {
    display: flex;
    align-items: center;
    gap: var(--tl-space-xs);
    margin-bottom: var(--tl-space-xs);
    flex-wrap: nowrap;
}

.tl-evt-card__date-text {
    font-family: var(--tl-font-primary);
    color: var(--tl-white);
    font-size: var(--tl-text-xs);
    font-weight: var(--tl-weight-medium);
    letter-spacing: var(--tl-tracking-wide);
    line-height: 1;
    white-space: nowrap;
}

.tl-evt-card__title {
    font-family: var(--tl-font-primary);
    color: var(--tl-white);
    font-size: 0.95rem;
    font-weight: var(--tl-weight-bold);
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-evt-card__address {
    font-family: var(--tl-font-primary);
    color: var(--tl-gray-200);
    font-size: var(--tl-text-small);
    margin: 0;
    font-weight: var(--tl-weight-regular);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .tl-evt-card__title {
        font-size: 11px;
        line-height: 1.2;
    }

    .tl-evt-card__date-text {
        font-size: 9px;
    }

    .tl-evt-card__discount-tag {
        font-size: 8px;
        padding: 2px 4px;
    }

    .tl-evt-card__img-box {
        border-radius: var(--tl-radius-sm);
        margin-bottom: 6px;
    }

    .tl-evt-card__address {
        font-size: 9px;
        line-height: 1.1;
        margin-top: 1px;
    }

    .tl-evt-card__date-badge {
        width: 32px;
        height: 36px;
    }

    .tl-evt-card__date-day {
        font-size: 13px;
    }

    .tl-evt-card__date-month {
        font-size: 7px;
    }
}
