/* =========================================================
   KVLTX Event Listing - Grid & Card Styles
   ========================================================= */

/* Grid
   ------------------------------------------------- */
.kvltx-events-grid {
    display: grid;
    grid-template-columns: repeat(var(--kvltx-cols, 3), 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .kvltx-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .kvltx-events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Empty state
   ------------------------------------------------- */
.kvltx-events-empty {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    padding: 48px 16px;
}

/* Card
   ------------------------------------------------- */
.kvltx-event-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kvltx-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Image area
   ------------------------------------------------- */
.kvltx-event-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.kvltx-event-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Gradient overlay on image */
.kvltx-event-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

/* No-image placeholder */
.kvltx-event-card__image--placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Date badge
   ------------------------------------------------- */
.kvltx-event-card__date {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #92400e;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    min-width: 48px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.kvltx-event-card__date-day {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.kvltx-event-card__date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.05em;
}

/* Category pill
   ------------------------------------------------- */
.kvltx-event-card__category {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #1f2937;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Body
   ------------------------------------------------- */
.kvltx-event-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.kvltx-event-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kvltx-event-card__title a {
    color: inherit;
    text-decoration: none;
}

.kvltx-event-card__title a:hover {
    color: #92400e;
}

/* Meta rows (time, location) */
.kvltx-event-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.4;
}

.kvltx-event-card__meta svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* Excerpt */
.kvltx-event-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.55;
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View Event link */
.kvltx-event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    text-decoration: none;
    transition: color 0.15s ease;
}

.kvltx-event-card__link:hover {
    text-decoration: underline;
    color: #78350f;
}

.kvltx-event-card__link svg {
    transition: transform 0.2s ease;
}

.kvltx-event-card__link:hover svg {
    transform: translateX(3px);
}

/* =========================================================
   EventON Single Event — Featured Image Fix
   The inner span has the correct background-image but needs
   to be displayed as a block filling its parent.
   ========================================================= */
.evocard_main_image.direct > span {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
