/* ── Living Venue Engine: Event Grid ──────────────────────────────────── */

.lve-events-section {
    margin: 28px 0;
    padding: 24px 20px 28px;
    background: #0d0d0d;
    border-radius: 4px;
}

.lve-events-section .section-header-defined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
}

.lve-events-section .section-title-defined {
    color: #f0f0f0;
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lve-section-tm-logo {
    height: 20px;
    width: auto;
    opacity: 0.75;
    flex-shrink: 0;
}

/* ── 5-column event grid ──────────────────────────────────────────────── */
.lve-event-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* ── Individual card ──────────────────────────────────────────────────── */
.lve-event-card {
    background: #161616;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

/* Full-card clickable overlay */
.lve-event-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Button and image sit above the overlay */
.lve-event-card-img,
.lve-event-card-body { position: relative; z-index: 2; }
.lve-event-card-btn--relative { position: relative; z-index: 2; }

.lve-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* ── Image container ──────────────────────────────────────────────────── */
.lve-event-card-img {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #111;
}

.lve-event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lve-event-card:hover .lve-event-card-img img {
    transform: scale(1.06);
}

/* Dark gradient so overlays are always readable */
.lve-event-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0)    40%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

/* ── Date badge (top-left) ────────────────────────────────────────────── */
.lve-event-date-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    border-radius: 3px;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.lve-event-date-badge .lve-badge-month {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5b9de0;
}

.lve-event-date-badge .lve-badge-day {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-top: 1px;
}

/* ── TM logo overlay (bottom-right of image) ──────────────────────────── */
.lve-event-tm-badge {
    position: absolute;
    bottom: 7px;
    right: 8px;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    border-radius: 2px;
    padding: 3px 5px;
    backdrop-filter: blur(2px);
}

.lve-event-tm-badge img {
    height: 12px;
    width: auto;
    display: block;
    opacity: 0.9;
}

/* ── Card body ────────────────────────────────────────────────────────── */
.lve-event-card-body {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lve-event-card-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: #f0f0f0;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lve-event-card-venue {
    font-size: 10px;
    color: #888;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.lve-event-card-btn {
    display: block;
    background: #026cdf;
    color: #fff !important;
    text-align: center;
    padding: 7px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.15s;
    margin-top: auto;
}

.lve-event-card-btn:hover {
    background: #0055b8;
    color: #fff !important;
}

/* ── No-image placeholder ─────────────────────────────────────────────── */
.lve-event-card-img.lve-no-img {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lve-event-card-img.lve-no-img::before {
    content: '🎵';
    font-size: 32px;
    opacity: 0.3;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .lve-event-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 800px) {
    .lve-event-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
    .lve-event-grid { grid-template-columns: repeat(2, 1fr); }
    .lve-events-section { padding: 16px 12px 20px; }
}

/* ── Overflow grid (hidden until Load More clicked) ──────────────────── */
.lve-event-grid-overflow {
    display: none;
}

.lve-event-grid-overflow--visible {
    display: grid;
    margin-top: 10px;
    animation: lveFadeIn 0.25s ease;
}

@keyframes lveFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Load More button ─────────────────────────────────────────────────── */
.lve-load-more-wrap {
    text-align: center;
    margin-top: 18px;
}

.lve-load-more-btn {
    background: transparent;
    border: 1px solid #333;
    color: #bbb;
    padding: 10px 28px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lve-load-more-btn:hover {
    border-color: #026cdf;
    color: #fff;
    background: #026cdf;
}

.lve-load-more-count {
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
}

/* ── City page strip: 1-row preview, 3-col overflow ──────────────────── */
.lve-city-strip .lve-event-grid-overflow--visible {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .lve-city-strip .lve-event-grid-overflow--visible { grid-template-columns: repeat(2, 1fr); }
}

/* ── Inline ticket strip on editorial posts ───────────────────────────── */
.lve-inline-strip .lve-event-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .lve-inline-strip .lve-event-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Single event page ────────────────────────────────────────────────── */

.lve-single-article {
    max-width: 100%;
}

/* Hero */
.lve-single-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--border-light, #e5e5ea);
    border-radius: 6px;
    margin-bottom: 28px;
}

.lve-single-hero--empty {
    aspect-ratio: unset;
    height: 120px;
}

.lve-single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lve-single-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.lve-single-segment-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Two-column body */
.lve-single-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* Main column */
.lve-single-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-base, #1a1a1a);
    margin: 0 0 20px;
}

/* Mobile-only inline meta (hidden on desktop) */
.lve-single-meta-inline {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lve-single-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-base, #333);
}

.lve-single-meta-row em {
    font-style: normal;
    opacity: 0.6;
    margin-left: 4px;
}

.lve-single-meta-row a {
    color: var(--accent-color, #026cdf);
    text-decoration: none;
}

.lve-single-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-color, #026cdf);
}

/* Aside — sticky detail card */
.lve-single-aside {
    position: sticky;
    top: 80px;
}

.lve-single-detail-card {
    border: 1px solid var(--border-light, #e5e5ea);
    border-radius: 10px;
    padding: 20px;
    background: var(--bg-body, #fff);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

[data-theme="dark"] .lve-single-detail-card {
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* Calendar date block */
.lve-single-cal-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 16px;
}

.lve-single-cal-month {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color, #026cdf);
}

.lve-single-cal-day {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-base, #1a1a1a);
    margin-top: 2px;
}

/* Divider */
.lve-single-detail-divider {
    height: 1px;
    background: var(--border-light, #e5e5ea);
    margin: 16px 0;
}

/* Detail rows */
.lve-single-detail-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lve-single-detail-row:last-of-type {
    margin-bottom: 0;
}

.lve-single-detail-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-color, #026cdf);
}

.lve-single-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-base, #999);
    opacity: 0.55;
    margin-bottom: 3px;
}

.lve-single-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-base, #1a1a1a);
    line-height: 1.3;
}

.lve-single-detail-value a {
    color: inherit;
    text-decoration: none;
}

.lve-single-detail-value a:hover {
    color: var(--accent-color, #026cdf);
}

.lve-single-detail-sub {
    font-size: 12px;
    color: var(--text-base, #666);
    opacity: 0.65;
    margin-top: 2px;
}

/* Ticket button */
.lve-single-ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--accent-color, #026cdf);
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.15s, transform 0.1s;
    box-sizing: border-box;
}

.lve-single-ticket-btn:hover {
    background: var(--accent-hover, #0055b8);
    color: #fff !important;
    transform: translateY(-1px);
}

.lve-single-ticket-btn--mobile {
    display: none;
    margin-bottom: 28px;
}

.lve-single-tm-logo {
    height: 16px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    flex-shrink: 0;
}

.lve-single-no-tickets {
    font-size: 12px;
    text-align: center;
    opacity: 0.45;
    margin: 0;
}

/* Responsive — collapse to single column below 780px */
@media (max-width: 780px) {
    .lve-single-body {
        grid-template-columns: 1fr;
    }

    .lve-single-aside {
        display: none; /* detail card hidden — mobile version shown inline */
    }

    .lve-single-meta-inline {
        display: flex;
    }

    .lve-single-ticket-btn--mobile {
        display: flex;
    }

    .lve-single-hero {
        aspect-ratio: 3 / 2;
        border-radius: 4px;
    }
}
