/* File: tvk-core/assets/event-card.css */

/* --- CARD TWEAKS --- */
.tvk-event-card {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transform: translateZ(0);
    max-width: 400px; 
    margin: 0 auto;
    width: 100%;
}

.tvk-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tvk-event-card:hover .tvk-card-bg {
    transform: scale(1.08);
}

.tvk-card-link {
    position: absolute;
    inset: 0;
    z-index: 22;
}

/* Past Badge */
.tvk-past-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 25;
    background: rgba(100, 100, 100, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tvk-event-card.tvk-is-past .tvk-card-bg {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.4s ease, transform 0.6s ease;
}

.tvk-event-card.tvk-is-past:hover .tvk-card-bg {
    filter: grayscale(0%);
    opacity: 1;
}

/* Overlay */
.tvk-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    z-index: 20;
    transition: opacity 0.4s;
    opacity: 1;
}

.tvk-event-card:hover .tvk-card-overlay {
    opacity: 0;
}

/* Content */
.tvk-date-badge {
    display: inline-block;
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tvk-db-date {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
}

.tvk-db-day {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 500;
}

.tvk-multi-tag {
    font-size: 12px;
    opacity: 0.8;
    vertical-align: top;
    margin-left: 2px;
}

.tvk-card-title {
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tvk-card-meta {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
}

.tvk-meta-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tvk-meta-row svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* Lightbox Trigger */
.tvk-lightbox-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    font-size: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(-10px);
}

.tvk-lightbox-trigger svg {
    width: 20px;
    height: 20px;
}

.tvk-lightbox-trigger:hover {
    background: #DC1D50;
    color: #fff;
}

.tvk-event-card:hover .tvk-lightbox-trigger {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) and (pointer: coarse) {
    .tvk-lightbox-trigger {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: rgba(255, 255, 255, 0.95);
    }
}