/**
 * WWC Ticketing - Events V2 Layout
 * Redesigned Ticketed Events page with featured banner and card grid
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=League+Spartan:wght@600;700;800&display=swap');

/* =====================
   Design Tokens
   ===================== */
:root {
    --wwc-cream: #F5EBDD;
    --wwc-ink: #1C1A17;
    --wwc-ink-2: #4A443D;
    --wwc-ink-3: #6B6259;
    --wwc-line: #EFE6D8;
    --wwc-chip-line: #CDBFAB;
    --wwc-red: #FF0A0F;
    --wwc-red-btn: #C8080D;
    --wwc-red-hover: #A80609;
    --wwc-red-text: #B5060B;
    --wwc-card: #FFFFFF;
    --wwc-disabled-bg: #D9D2C7;
    --wwc-disabled-text: #4A443D;
    --radius-card: 18px;
    --radius-btn: 12px;
    --shadow-card: 0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
    --shadow-date: 0 2px 8px rgba(28,26,23,.1);

    /* Category colors */
    --cat-bingo: #1F2A44;
    --cat-music: #4A2E1A;
    --cat-family: #1E4FD8;
    --cat-comedy: #5B2A86;
    --cat-dining: #2F5D3A;
    --cat-other: #3A3632;

    /* Fonts */
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =====================
   Base Wrapper
   ===================== */
.wwc-events-v2 {
    font-family: var(--font-body);
    color: var(--wwc-ink);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wwc-events-v2 *,
.wwc-events-v2 *::before,
.wwc-events-v2 *::after {
    box-sizing: border-box;
}

/* =====================
   Page Header
   ===================== */
.wwc-events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wwc-events-header-left {
    flex: 1;
    min-width: 280px;
}

.wwc-events-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wwc-red-text);
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.wwc-events-v2 .wwc-events-title,
.wwc-events-v2 h1.wwc-events-title {
    font-family: 'League Spartan', var(--font-heading), sans-serif !important;
    font-size: 56px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: var(--wwc-ink) !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -0.02em;
}

.wwc-events-intro {
    font-size: 17px;
    color: var(--wwc-ink-2);
    margin: 0;
    line-height: 1.5;
}

/* =====================
   Filter Chips
   ===================== */
.wwc-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.wwc-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--wwc-chip-line);
    background: var(--wwc-card);
    color: var(--wwc-ink);
}

.wwc-filter-chip:hover {
    border-color: var(--wwc-ink);
}

.wwc-filter-chip[aria-current="page"],
.wwc-filter-chip.active {
    background: var(--wwc-ink);
    color: white;
    border-color: var(--wwc-ink);
}

/* =====================
   Featured Banner (Next Up)
   ===================== */
.wwc-featured-section {
    margin-bottom: 40px;
}

.wwc-featured-card {
    background: var(--wwc-card);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.wwc-featured-image {
    flex: 1 1 520px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.wwc-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.wwc-featured-image-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wwc-featured-details {
    flex: 1 1 380px;
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.wwc-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.wwc-tag-nextup {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--wwc-red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 4px;
}

.wwc-tag-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--wwc-cream);
    color: var(--wwc-ink-2);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.wwc-events-v2 .wwc-featured-title,
.wwc-events-v2 h2.wwc-featured-title {
    font-family: 'League Spartan', var(--font-heading), sans-serif !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--wwc-ink) !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: -0.01em;
}

.wwc-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.wwc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--wwc-ink-2);
}

.wwc-meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--wwc-red-text);
    flex-shrink: 0;
}

.wwc-featured-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--wwc-ink-2);
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wwc-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--wwc-line);
    gap: 20px;
    flex-wrap: wrap;
}

.wwc-price-block {
    display: flex;
    flex-direction: column;
}

.wwc-price-label {
    font-size: 13px;
    color: var(--wwc-ink-3);
    margin-bottom: 4px;
}

.wwc-price-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--wwc-ink);
}

/* =====================
   Buy Button
   ===================== */
.wwc-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    background: var(--wwc-red-btn);
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wwc-btn-buy:hover {
    background: var(--wwc-red-hover);
    color: white;
}

.wwc-btn-buy:focus {
    outline: 3px solid rgba(200, 8, 13, 0.4);
    outline-offset: 2px;
}

.wwc-btn-buy--card {
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px;
}

.wwc-btn-buy--disabled {
    background: var(--wwc-disabled-bg);
    color: var(--wwc-disabled-text);
    cursor: not-allowed;
    pointer-events: none;
}

.wwc-btn-buy--disabled:hover {
    background: var(--wwc-disabled-bg);
}

/* =====================
   Coming Up Section
   ===================== */
.wwc-coming-section {
    margin-bottom: 40px;
}

.wwc-coming-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.wwc-events-v2 .wwc-coming-title,
.wwc-events-v2 h2.wwc-coming-title {
    font-family: 'League Spartan', var(--font-heading), sans-serif !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--wwc-ink) !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.wwc-coming-count {
    font-size: 15px;
    color: var(--wwc-ink-3);
}

/* =====================
   Event Card Grid
   ===================== */
.wwc-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.wwc-event-card {
    background: var(--wwc-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wwc-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(28,26,23,.08), 0 16px 40px rgba(28,26,23,.1);
}

/* Card Image */
.wwc-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.wwc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wwc-card-image-placeholder {
    width: 100%;
    height: 100%;
}

/* Date Badge */
.wwc-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: white;
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: var(--shadow-date);
    min-width: 60px;
}

.wwc-date-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--wwc-red-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wwc-date-day {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--wwc-ink);
    line-height: 1;
}

.wwc-date-weekday {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--wwc-ink-3);
    margin-top: 2px;
}

/* Card Body */
.wwc-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.wwc-card-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    background: var(--wwc-cream);
    color: var(--wwc-ink-2);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.wwc-events-v2 .wwc-card-title,
.wwc-events-v2 h3.wwc-card-title {
    font-family: 'League Spartan', var(--font-heading), sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--wwc-ink) !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.wwc-events-v2 .wwc-card-title a,
.wwc-events-v2 h3.wwc-card-title a {
    font-family: inherit !important;
    font-weight: inherit !important;
    color: inherit;
    text-decoration: none;
}

.wwc-events-v2 .wwc-card-title a:hover {
    color: var(--wwc-red-text);
}

.wwc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.wwc-card-meta .wwc-meta-item {
    font-size: 14px;
}

.wwc-card-meta .wwc-meta-item svg {
    width: 16px;
    height: 16px;
}

.wwc-card-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--wwc-ink-2);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.wwc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid var(--wwc-line);
    margin-top: auto;
    gap: 16px;
}

.wwc-card-price {
    display: flex;
    flex-direction: column;
}

.wwc-card-price-label {
    font-size: 12px;
    color: var(--wwc-ink-3);
}

.wwc-card-price-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--wwc-ink);
}

/* Few Left Tag */
.wwc-tag-fewleft {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 4px;
}

/* =====================
   Empty State
   ===================== */
.wwc-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--wwc-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.wwc-empty-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--wwc-ink);
    margin: 0 0 12px 0;
}

.wwc-empty-text {
    font-size: 16px;
    color: var(--wwc-ink-2);
    margin: 0;
}

/* =====================
   Footer Strip
   ===================== */
.wwc-events-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--wwc-ink-2);
    font-size: 15px;
}

.wwc-events-footer p {
    margin: 0 0 8px 0;
}

.wwc-events-footer a {
    color: var(--wwc-red-text);
    text-decoration: none;
    font-weight: 600;
}

.wwc-events-footer a:hover {
    text-decoration: underline;
}

/* =====================
   Icons (inline SVG)
   ===================== */
.wwc-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .wwc-events-title {
        font-size: 36px;
    }

    .wwc-events-header {
        flex-direction: column;
    }

    .wwc-filter-chips {
        width: 100%;
    }

    .wwc-featured-card {
        flex-direction: column;
    }

    .wwc-featured-image {
        flex: none;
        min-height: 200px;
        aspect-ratio: 16/9;
    }

    .wwc-featured-details {
        padding: 24px;
    }

    .wwc-featured-title {
        font-size: 28px;
    }

    .wwc-featured-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .wwc-btn-buy {
        width: 100%;
    }

    .wwc-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wwc-events-v2 {
        padding: 0 16px;
    }

    .wwc-events-title {
        font-size: 28px;
    }

    .wwc-card-title {
        font-size: 20px;
    }
}

/* =====================
   Accessibility
   ===================== */
.wwc-filter-chip:focus-visible,
.wwc-btn-buy:focus-visible,
.wwc-card-title a:focus-visible {
    outline: 3px solid var(--wwc-red);
    outline-offset: 2px;
}

/* Screen reader only */
.wwc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
