/* ==========================================================================
   AYW Event Results — Frontend Styles
   Design: Dark (#0a0a0a), Crimson (#c0392b), Bebas Neue / Oswald / Source Serif 4
   ========================================================================== */

/* ---------- Single Event Page ---------- */

.ayw-event-single {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Source Serif 4', Georgia, serif;
    color: #e0e0e0;
    box-sizing: border-box;
}

/* Back link */
.ayw-back-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.ayw-back-link:hover { color: var(--promo-color, #c0392b); text-decoration: none; }

/* Banner */
.ayw-event-banner {
    position: relative;
    width: 100% !important;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 24px;
    background-color: #1a1a1a;
    background-position: center;
    background-size: cover !important;
    background-repeat: no-repeat;
}
.ayw-event-banner-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
    pointer-events: none;
}

/* Two-column layout */
.ayw-event-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.ayw-event-main { min-width: 0; }

/* Sidebar */
.ayw-event-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sidebar cards */
.ayw-sb-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.ayw-sb-card-head {
    padding: 10px 14px;
    border-bottom: 2px solid var(--promo-color, #c0392b);
    background: rgba(255,255,255,0.02);
}
.ayw-sb-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #fff;
}
.ayw-sb-card-body { padding: 14px; }

/* Info rows */
.ayw-sb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ayw-sb-row:last-child { border-bottom: none; }
.ayw-sb-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}
.ayw-sb-value {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #ddd;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ayw-sb-promo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Status badges in sidebar */
.ayw-sb-status {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 6px;
    margin-top: 10px;
    border-radius: 2px;
}
.ayw-sb-status--upcoming { background: #2ecc71; color: #111; }
.ayw-sb-status--mw { background: #f1c40f; color: #111; }

/* Show Rating card */
.ayw-sb-rating-body {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding: 20px 14px;
}
.ayw-sb-rating-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    line-height: 1;
}
.ayw-sb-rating-max {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #555;
}

/* Quick stats */
.ayw-sb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    text-align: center;
}
.ayw-sb-stat {
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    padding: 12px 6px;
}
.ayw-sb-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--promo-color, #c0392b);
    display: block;
    line-height: 1;
}
.ayw-sb-stat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* Related events */
.ayw-sb-related { padding: 0; }
.ayw-sb-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.ayw-sb-related-item:last-child { border-bottom: none; }
.ayw-sb-related-item:hover { background: rgba(255,255,255,0.04); text-decoration: none; color: inherit; }
.ayw-sb-related-info { min-width: 0; }
.ayw-sb-related-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    display: block;
    line-height: 1.3;
}
.ayw-sb-related-date {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}
.ayw-sb-related-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Mobile badges (shown only on mobile) */
.ayw-mobile-only { display: none; }

/* Badges (reused) */
.ayw-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ayw-badge {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 2px;
    display: inline-block;
}
.ayw-badge-promo { background: var(--promo-color, #c0392b); color: #fff; }
.ayw-badge-tier { background: rgba(255,255,255,0.08); color: #ccc; border: 1px solid rgba(255,255,255,0.15); }
.ayw-badge-upcoming { background: #2ecc71; color: #111; }
.ayw-badge-mustwatch { background: #f1c40f; color: #111; }

/* Section Title */
.ayw-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* Match Card */
.ayw-match-card { margin-bottom: 40px; }
.ayw-matches-list { display: flex; flex-direction: column; gap: 2px; }
.ayw-match {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(255,255,255,0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ayw-match:hover { background: rgba(255,255,255,0.06); border-left-color: var(--promo-color, #c0392b); }
.ayw-match-highlight { border-left-color: #f1c40f !important; background: rgba(241, 196, 15, 0.04); }
.ayw-match-highlight:hover { background: rgba(241, 196, 15, 0.08); }
.ayw-match-num-col {
    display: flex; align-items: center; justify-content: center;
    width: 48px; flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.ayw-match-num { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: #555; }
.ayw-match-content { flex: 1; padding: 14px 16px; min-width: 0; }
.ayw-match-title-belt {
    font-family: 'Oswald', sans-serif; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1.5px; color: #f1c40f; margin-bottom: 4px;
}
.ayw-match-participants {
    font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600;
    color: #fff; margin-bottom: 6px; line-height: 1.3;
}
.ayw-match-details { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #888; }
.ayw-match-type {
    font-family: 'Oswald', sans-serif; font-size: 11px; text-transform: uppercase;
    letter-spacing: 1px; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 2px; color: #999;
}
.ayw-match-winner { font-family: 'Source Serif 4', serif; color: #aaa; }
.ayw-match-winner strong { color: var(--promo-color, #c0392b); }
.ayw-match-finish { font-family: 'Source Serif 4', serif; color: #777; font-style: italic; }

/* Star Ratings */
.ayw-match-rating-col {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 90px; flex-shrink: 0; padding: 10px 8px; gap: 6px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.ayw-match-stars { display: flex; gap: 1px; font-size: 14px; }
.ayw-star.full { color: #f1c40f; }
.ayw-star.half { color: #f1c40f; opacity: 0.5; }
.ayw-star.empty { color: #333; }
.ayw-must-watch-badge {
    font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; text-align: center;
    color: #111; background: #f1c40f; padding: 2px 6px; border-radius: 2px; line-height: 1.2;
}

/* Review Content */
.ayw-review-section { margin-bottom: 40px; }
.ayw-review-content { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; line-height: 1.75; color: #d0d0d0; }
.ayw-review-content p { margin-bottom: 1.2em; }
.ayw-review-content h2,
.ayw-review-content h3 { font-family: 'Bebas Neue', sans-serif; color: #fff; letter-spacing: 1px; }


/* ---------- Events Calendar / Listing Page ---------- */

.ayw-events-calendar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: 'Source Serif 4', Georgia, serif;
    color: #e0e0e0;
}

/* Top-level tabs: Upcoming | Results */
.ayw-top-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 3px solid rgba(255,255,255,0.08);
}

.ayw-top-tab {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 3px;
    padding: 12px 28px;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.ayw-top-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.ayw-top-tab:hover { color: #aaa; }
.ayw-top-tab.active { color: #fff; }
.ayw-top-tab.active::after { background: #c0392b; }

/* Top-level panels */
.ayw-top-panel { display: none; }
.ayw-top-panel.active { display: block; }

/* Results count */
.ayw-results-count {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #666;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

/* Year Filter */
.ayw-events-year-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ayw-year-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.ayw-year-select {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    appearance: auto;
}

.ayw-year-select:hover {
    border-color: rgba(255,255,255,0.25);
}

.ayw-year-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Loading State */
.ayw-events-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ayw-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #c0392b;
    border-radius: 50%;
    animation: ayw-spin 0.8s linear infinite;
}

@keyframes ayw-spin {
    to { transform: rotate(360deg); }
}

/* Tabs */
.ayw-events-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}

.ayw-tab {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.ayw-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.ayw-tab:hover {
    color: #ccc;
}

.ayw-tab.active {
    color: #fff;
}

.ayw-tab.active::after {
    background: var(--tab-color, #c0392b);
}

/* Tab Panels */
.ayw-tab-panel {
    display: none;
}

.ayw-tab-panel.active {
    display: block;
}

/* Section Titles */
.ayw-events-section {
    margin-bottom: 40px;
}

.ayw-events-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ayw-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ayw-section-dot.upcoming { background: #2ecc71; }
.ayw-section-dot.past { background: #c0392b; }

.ayw-count {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Event Cards Grid */
.ayw-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ayw-event-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ayw-event-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.ayw-card-thumb {
    width: 100%;
    height: 160px;
    background: #1a1a1a center/cover no-repeat;
    transition: opacity 0.3s ease;
}

.ayw-event-card:hover .ayw-card-thumb {
    opacity: 0.85;
}

.ayw-card-promo-bar {
    height: 3px;
    background: var(--card-promo-color, #c0392b);
}

.ayw-card-body {
    padding: 16px;
}

.ayw-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ayw-card-promo-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--card-promo-color, #c0392b);
}

.ayw-card-must-watch {
    color: #f1c40f;
    font-size: 16px;
}

.ayw-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

.ayw-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.ayw-card-date,
.ayw-card-venue {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

.ayw-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ayw-card-tier {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 2px;
}

.ayw-card-matches {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #777;
    letter-spacing: 0.5px;
}

.ayw-card-rating {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--card-promo-color, #c0392b);
    margin-left: auto;
}

/* Load More */
.ayw-load-more {
    display: block;
    margin: 24px auto 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 32px;
    background: transparent;
    border: 2px solid #c0392b;
    color: #c0392b;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ayw-load-more:hover {
    background: #c0392b;
    color: #fff;
}

.ayw-hidden-event {
    display: none;
}

.ayw-no-events {
    font-family: 'Oswald', sans-serif;
    color: #666;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .ayw-event-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ayw-event-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ayw-mobile-only { display: flex; }
}

@media (max-width: 768px) {
    .ayw-match { flex-wrap: wrap; }

    .ayw-match-rating-col {
        width: 100%;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 8px 16px;
        justify-content: flex-start;
    }

    .ayw-events-grid { grid-template-columns: 1fr; }
    .ayw-events-tabs { gap: 2px; }
    .ayw-tab { padding: 8px 12px; font-size: 12px; }
    .ayw-match-num-col { width: 36px; }

    .ayw-event-banner { height: 220px; margin-bottom: 16px; }
    .ayw-card-thumb { height: 140px; }

    .ayw-event-sidebar {
        grid-template-columns: 1fr;
    }
}
