﻿/* 
   UPDATED "league event history" CSS
   Now using variables from your existing dark theme 
   (instead of non-existent --background-dark, etc.).
*/

/* PDGA Button Fix - Ensure proper hover behavior */
.pdga-button.btn-outline-primary,
.pdga-link.btn-outline-primary,
a.btn-outline-primary[href*="pdga"] {
    background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%) !important;
    border-color: #4169e1 !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.pdga-button.btn-outline-primary:hover,
.pdga-link.btn-outline-primary:hover,
a.btn-outline-primary[href*="pdga"]:hover {
    background: linear-gradient(135deg, #5179f1 0%, #2e4a9a 100%) !important;
    border-color: #5179f1 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4) !important;
}

.pdga-button.btn-outline-primary img,
.pdga-link.btn-outline-primary img,
a.btn-outline-primary[href*="pdga"] img {
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease !important;
}

.pdga-button.btn-outline-primary:hover img,
.pdga-link.btn-outline-primary:hover img,
a.btn-outline-primary[href*="pdga"]:hover img {
    transform: scale(1.1) !important;
}

[data-bs-theme="dark"] .league-event-history-page .pdga-icon,
[data-bs-theme="dark"] .league-event-history-page img[src$="PDGA_1Logo_RGB_Blue.svg"] {
    filter: brightness(0) invert(1);
}

/* Upscale background pattern so graphics feel less busy on this page */
.league-background {
    background-size: 900px !important;
}

/* Theme Variables - Building on existing core variables */
:root {
    /* Rating Colors - Light Mode */
    --rating-great-bg: #059669;
    --rating-great-text: #ffffff;
    --rating-better-bg: #0891b2;
    --rating-better-text: #ffffff;
    --rating-good-bg: #0284c7;
    --rating-good-text: #ffffff;
    --rating-neutral-bg: #e2e8f0;
    --rating-neutral-text: #1e293b;
    --rating-below-bg: #fed7d7;
    --rating-below-text: #c53030;
    --rating-worse-bg: #fc8181;
    --rating-worse-text: #fff5f5;
    --rating-poor-bg: #e53e3e;
    --rating-poor-text: #fff5f5;
}

[data-bs-theme="dark"] {
    :root {
        /* Rating Colors - Dark Mode */
        --rating-great-bg: #059669;
        --rating-great-text: #ffffff;
        --rating-better-bg: #0891b2;
        --rating-better-text: #ffffff;
        --rating-good-bg: #0284c7;
        --rating-good-text: #ffffff;
        --rating-neutral-bg: #475569; /* changed to darker neutral */
        --rating-neutral-text: #f1f5f9;
        --rating-below-bg: #7f1d1d;
        --rating-below-text: #fecaca;
        --rating-worse-bg: #991b1b;
        --rating-worse-text: #fecaca;
        --rating-poor-bg: #b91c1c;
        --rating-poor-text: #fecaca;
    }
}

/* Enhanced Hero Section */
.event-hero-container {
    margin-bottom: 3rem;
    position: relative;
}

.event-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--surface-1);
    --league-color: #3498db;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
    mix-blend-mode: overlay;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 2;
}

.event-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--league-color), transparent);
    opacity: 0.3;
    z-index: 1;
}

.event-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease-out;
    filter: brightness(0.8) contrast(1.1);
}

.event-hero:hover .event-hero__image {
    transform: scale(1.05);
}

.event-hero__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
    background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.1) 100%
    );
    color: #fff;
}

.event-hero__badge {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.week-number {
    background-color: var(--league-color);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.event-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 80%;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Removed conflicting .winning-faction-badge - now handled in event-summary-card.css */

.event-hero__stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-stat {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-stat:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Nav tabs - Scoped to this page only */
.league-event-history-page .nav-tabs {
    border-bottom: 2px solid var(--theme-border-color, #dee2e6);
}

.league-event-history-page .nav-tabs .nav-link {
    margin-bottom: -2px;
    border: none;
    color: var(--theme-text-secondary, #6c757d);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease-in-out;
    background: transparent;
}

.league-event-history-page .nav-tabs .nav-link:hover {
    border: none;
    color: var(--theme-text-primary, #495057);
    isolation: isolate;
}

.league-event-history-page .nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid var(--theme-info, #0d6efd);
    color: var(--theme-info, #0d6efd);
    font-weight: 600;
    background: transparent;
}

/* Dark mode overrides */
[data-bs-theme="dark"] {
    .league-event-history-page .nav-tabs {
        border-bottom-color: var(--theme-border-color);
    }

    .league-event-history-page .nav-tabs .nav-link {
        color: var(--theme-text-secondary);
    }

    .league-event-history-page .nav-tabs .nav-link:hover {
        color: var(--theme-text-primary);
        border-color: transparent;
    }

    .league-event-history-page .nav-tabs .nav-link.active {
        color: white;
        background-color: transparent;
        border-bottom-color: var(--theme-info);
    }
}

/* Tab Content Transitions */
.league-event-history-page .tab-content > .tab-pane {
    transition: all 0.2s ease-in-out;
}

.league-event-history-page .tab-content > .active {
    animation: fadeIn 0.3s ease-in;
}

/* Content Spacing */
.league-event-history-page .tab-pane {
    padding: 1.5rem 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.bag-tag-showcase {
    width: 100%;
    max-width: 320px;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    .event-hero {
        background-color: var(--surface-2);
    }

    .texture-overlay {
        opacity: 0.6;
    }

    .event-hero__content {
        background: linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.8) 30%,
                rgba(0, 0, 0, 0.5) 60%,
                rgba(0, 0, 0, 0.2) 100%
        );
    }

    .hero-stat {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .event-hero {
        height: 450px;
    }

    .event-hero__title {
        font-size: 2.75rem;
        max-width: 100%;
    }

    .event-hero__stats {
        gap: 1rem;
    }

    .hero-stat {
        padding: 0.5rem 1rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .event-hero {
        height: 400px;
    }

    .event-hero__title {
        font-size: 2rem;
    }

    .event-hero__subtitle {
        font-size: 1rem;
    }

    .event-hero__content {
        padding-bottom: 2rem;
    }

    .event-hero__stats {
        flex-wrap: wrap;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 1rem);
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .event-hero {
        height: auto;
        min-height: 350px;
    }

    .event-hero__title {
        font-size: 1.5rem;
    }

    .hero-stat-value {
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .event-hero__image {
        transition: none;
    }

    .hero-stat {
        transition: none;
    }
}

/* Fix for featured-champion card conflict with bard.css */
.featured-character {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    background: transparent !important;
    border-radius: 0.5rem !important;
}

/* Story Section Dark Mode */
[data-bs-theme="dark"] {
    .story-section {
        /* replaced var(--text-dark) with var(--text-primary) or var(--text-secondary) */
        color: var(--text-primary);
    }

    /* replaced var(--card-bg-dark) with var(--surface-2) and var(--shadow-dark) with var(--shadow) */

    .story-content {
        background: var(--surface-2);
        box-shadow: 0 4px 6px var(--shadow);
    }

    /* Division Headers */

    .division-title {
        /* replaced var(--text-dark) with var(--text-primary) */
        color: var(--text-primary);
        /* replaced var(--border-dark) with var(--border-color) */
        border-bottom-color: var(--border-color);
    }

    /* Accordion Styles */

    .accordion-item {
        /* replaced var(--card-bg-dark) with var(--surface-2) */
        background-color: var(--surface-2);
        border-color: var(--border-color);
    }

    .accordion-button {
        background-color: var(--surface-2);
        color: var(--text-primary);
    }

    .accordion-button:not(.collapsed) {
        /* replaced var(--background-dark) with var(--surface-3) */
        background-color: var(--surface-3);
        color: var(--text-primary);
    }

    .accordion-button::after {
        filter: invert(1);
    }

    .accordion-body {
        /* replaced var(--background-dark) with var(--surface-2) */
        background-color: var(--surface-2);
        /* replaced var(--border-dark) with var(--border-color) */
        border-top: 1px solid var(--border-color);
    }

    /* Player Info Dark Mode */

    .player-name {
        /* replaced var(--text-dark) with var(--text-primary) */
        color: var(--text-primary);
    }

    .player-place {
        /* replaced var(--text-secondary-dark) with var(--text-secondary) */
        color: var(--text-secondary);
    }

    .stat-label {
        /* replaced var(--text-secondary-dark) with var(--text-secondary) */
        color: var(--text-secondary);
    }

    .stat-value {
        /* replaced var(--text-dark) with var(--text-primary) */
        color: var(--text-primary);
    }

    /* Tables Dark Mode */

    .table {
        /* replaced var(--text-dark) with var(--text-primary) */
        color: var(--text-primary);
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Links Dark Mode */

    .player-link {
        /* replaced var(--text-dark) with var(--text-primary)
           and var(--league-primary) with var(--info) */
        color: var(--text-primary);
        border-bottom-color: var(--info);
    }

    .player-link:hover {
        /* replaced var(--league-primary) with var(--info) */
        color: var(--info);
    }
}

.ctp-shot-image {
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.2s ease;
}

.ctp-shot-image:hover {
    transform: scale(1.02);
}

.ctp-shot-details blockquote {
    border-left: 4px solid var(--info);
    padding-left: 1rem;
}

.blockquote-footer {
    color: var(--text-secondary);
}

.ctp-prize {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
}

.ctp-prize .h3 {
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

/* Animation for prize amount */
@keyframes prize-highlight {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ctp-prize .h3 {
    animation: prize-highlight 0.5s ease-out;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    .ctp-prize .text-success {
        color: #4ade80 !important; /* Brighter green for dark mode */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ctp-prize .h3 {
        animation: none;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    .ctp-shot-details blockquote {
        border-left-color: var(--info);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ctp-shot-image {
        transition: none;
    }
}

/* Rating Display Classes with Dark Mode Support */
.rating-display {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.rating-great {
    background: var(--rating-great-bg);
    color: var(--rating-great-text);
}

.rating-better {
    background: var(--rating-better-bg);
    color: var(--rating-better-text);
}

.rating-good {
    background: var(--rating-good-bg);
    color: var(--rating-good-text);
}

.rating-neutral {
    background: var(--rating-neutral-bg);
    color: var(--rating-neutral-text);
}

.rating-below {
    background: var(--rating-below-bg);
    color: var(--rating-below-text);
}

.rating-worse {
    background: var(--rating-worse-bg);
    color: var(--rating-worse-text);
}

.rating-poor {
    background: var(--rating-poor-bg);
    color: var(--rating-poor-text);
}

/* Enhanced Hover Effects */
@media (hover: hover) {
    .accordion-item:hover {
        transform: translateX(4px);
        transition: transform 0.2s ease;
    }

    .rating-display:hover {
        transform: translateY(-2px);
        /* replaced var(--shadow-dark) with var(--shadow) */
        box-shadow: 0 2px 4px var(--shadow);
    }

    .player-link:hover {
        text-decoration: none;
        opacity: 0.9;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .accordion-item,
    .rating-display,
    .player-link {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .rating-display {
        border: 1px solid CanvasText;
    }

    .accordion-button::after {
        forced-color-adjust: none;
    }
}

/* Event Details Grid */
.event-details-grid {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Enhanced Event Stats Module - Premium Design */
.event-stats-module {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--theme-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

.event-stats-module:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-2px);
}

.metrics-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-title i {
    color: var(--theme-info);
    font-size: 1.125rem;
}

.metric-group {
    background: linear-gradient(
            to right,
            rgba(var(--bs-primary-rgb), 0.05),
            transparent
    );
    border-radius: 0.75rem;
    padding: 1rem;
}

.metric-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--theme-info), #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-item:hover::before {
    opacity: 1;
}

.metric-item.align-items-start {
    align-items: flex-start;
}

.metric-item.justify-content-center {
    justify-content: center;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-item:hover {
    transform: translateX(6px);
    box-shadow: var(--theme-shadow-sm);
    border-color: rgba(52, 152, 219, 0.3);
}

.metric-item i {
    color: var(--theme-info);
    width: 24px;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.metric-item:hover i {
    transform: scale(1.15);
}

.metric-label {
    flex: 1;
    color: var(--theme-text-secondary);
    margin-right: 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.metric-value {
    font-weight: 700;
    color: var(--theme-text-primary);
    font-size: 1rem;
}

/* PDGA metric styling */
.metric-item .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.metric-item .pdga-button {
    padding: 0.5rem 1rem;
    min-width: 160px;
}

.metric-item .pdga-button span {
    font-size: 0.8125rem;
}

.metric-item .d-flex.flex-column {
    gap: 0.25rem;
}

/* Event Images Section */
.event-images-section {
    margin-bottom: 2rem;
}

.event-images-section img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-images-section img:hover {
    transform: scale(1.02);
}

/* Single image takes full width */
.event-images-section .col-md-6:only-child {
    max-width: 800px;
    margin: 0 auto;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    .event-images-section img {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.event-image-section img {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

/* Division highlight effect */
.highlight-division {
    position: relative;
    animation: division-highlight 2s ease;
}

@keyframes division-highlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(var(--bs-primary-rgb), 0.15);
    }
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .event-stats-module {
        margin-bottom: 1.5rem;
    }

    .metric-item {
        padding: 0.5rem;
    }

    .metrics-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Dark Mode */
[data-bs-theme="dark"] {
    .metric-group {
        background: linear-gradient(
                to right,
                rgba(255, 255, 255, 0.05),
                transparent
        );
    }

    .metric-item {
        background: rgba(255, 255, 255, 0.03);
    }

    .metric-item i {
        color: var(--bs-info);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .metric-item {
        transition: none;
    }
}

/* Faction Styles */
.faction-summary {
    border-radius: 0.75rem;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    --faction-primary: #3498db;
    border-top: 4px solid var(--faction-primary);
    border-left: none;
}

.faction-divisions {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.division-link {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.division-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.division-link:hover::after {
    content: '↓';
    position: absolute;
    right: 10px;
    font-weight: bold;
    color: var(--bs-primary);
}

.top-contributor .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faction-summary h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.faction-image-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--faction-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.large-faction-image {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.large-faction-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.faction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faction-image-wrapper:hover .faction-image {
    transform: scale(1.1);
}

.faction-score-btn {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.faction-score-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faction-score-btn:active {
    transform: translateY(0);
}

.faction-score-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 6px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: currentColor;
    opacity: 0.6;
}

.winning-score {
    background-color: rgba(255, 215, 0, 0.15);
    font-weight: 500;
}

/* Score Breakdown Modal Styles */
.large-faction-image {
    width: 64px;
    height: 64px;
}

.faction-modal-header {
    border-left: 4px solid var(--faction-primary);
    transition: all 0.3s ease;
}

.score-explanation {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.component-header h6 {
    margin-bottom: 0;
    font-weight: 600;
}

.component-header small {
    font-weight: normal;
    opacity: 0.7;
}

.score-component {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.score-component p {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    margin-bottom: 0.5rem;
}

.component-score {
    font-weight: 600;
    font-size: 1.1rem;
}

.progress {
    height: 0.5rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
    .faction-score-btn {
        background-color: rgba(255, 255, 255, 0.07);
        color: var(--theme-text-primary);
    }

    .faction-score-btn:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .winning-score {
        background-color: rgba(255, 215, 0, 0.2);
    }

    .faction-image-wrapper {
        border-color: var(--faction-primary);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    }

    .faction-divisions {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .division-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .top-contributor .badge {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .score-component {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .progress {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .modal-content {
        background-color: var(--surface-2);
        color: var(--text-primary);
    }

    .modal-header, .modal-footer {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .score-component p,
    .score-explanation {
        color: var(--text-secondary);
    }

    .large-faction-image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .large-faction-image:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }
}

.winning-faction {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    background-color: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-top-width: 4px;
}

/* Faction Battle Section */
.faction-battle-module {
    overflow: hidden;
}

/* Compact Winner Summary */
.faction-battle-summary {
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.winning-faction-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faction-image-compact {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.winner-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 150px;
}

.winner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.winner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.winner-score {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.winner-mvp {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.faction-details-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.faction-details-toggle .btn-icon {
    transition: transform 0.2s ease;
}

.faction-details-toggle[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

.faction-details-toggle .collapsed-label {
    display: inline;
}

.faction-details-toggle .expanded-label {
    display: none;
}

.faction-details-toggle[aria-expanded="true"] .collapsed-label {
    display: none;
}

.faction-details-toggle[aria-expanded="true"] .expanded-label {
    display: inline;
}

/* Dark mode adjustments for faction battle summary */
[data-bs-theme="dark"] .faction-battle-summary {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.15);
}

.faction-comparison {
    margin: 0 -0.5rem;
}

.battle-result {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-block;
}

.winning-faction h5::after {
    content: ' 🏆';
    margin-left: 6px;
    font-size: 1.2rem;
    display: inline-block;
    vertical-align: middle;
}

[data-bs-theme="dark"] {
    .faction-summary {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .winning-faction {
        background-color: rgba(255, 215, 0, 0.15);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .faction-summary {
        transition: none;
    }
}

/* New Card Styles - Scoped to this page */
.league-event-history-page .card-modern {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.league-event-history-page .card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.league-event-history-page .card-modern .card-header {
    background: linear-gradient(135deg, var(--bs-primary), #4a90e2);
    color: white;
    font-weight: 600;
    padding: 1.25rem;
    border: none;
}

.league-event-history-page .card-modern .card-body {
    padding: 1.5rem;
}

.league-event-history-page .card-modern .card-footer {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Division Design */
.division-title {
    position: relative;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
    display: flex;
    align-items: center;
}

.division-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
}

.division-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--bs-primary);
}

/* Enhanced Accordion */
.accordion-modern .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.accordion-modern .accordion-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.accordion-modern .accordion-item.top-performer {
    border: 2px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.accordion-modern .accordion-item.top-performer:hover {
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}

.accordion-modern .accordion-button {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: white;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: linear-gradient(to right, rgba(var(--bs-primary-rgb), 0.05), transparent);
    color: var(--bs-primary);
    font-weight: 600;
    box-shadow: none;
}

.accordion-modern .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.accordion-modern .accordion-body {
    padding: 1.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.02);
}

/* Player Cards Styling */
.player-avatar {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.player-info {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content width */
    overflow: hidden;
}

.player-details {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content width */
    overflow: hidden;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-meta {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-place {
    font-size: 0.75rem;
    font-weight: 600;
}

.player-pdga {
    font-size: 0.75rem;
    font-weight: normal;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile specific fixes for PDGA badge */
@media (max-width: 576px) {
    .player-pdga.badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        max-width: 120px; /* Constrain width on mobile */
    }

    .player-pdga .pdga-icon {
        height: 0.8em !important;
    }

    .player-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .player-name {
        font-size: 1rem;
    }

    .player-stats {
        gap: 0.5rem !important;
    }

    .stat-card {
        min-width: 60px;
        padding: 0.4rem 0.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}

.stat-card {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    text-align: center;
    min-width: 80px;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    color: var(--bs-secondary);
}

.stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Prize Pool Summary Cards */
.prize-pool-summary .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--theme-bg-surface, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prize-pool-summary .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prize-pool-summary .stat-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: white;
    border-radius: 10px;
    font-size: 1.25rem;
}

.prize-pool-summary .stat-card-content {
    flex: 1;
}

.prize-pool-summary .stat-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-text-primary, #212529);
    line-height: 1.2;
}

.prize-pool-summary .stat-card-label {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #6c757d);
    text-transform: none;
    margin-top: 0.25rem;
}

.score-bubble {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    display: inline-block;
}

.stat-card.winnings .stat-value {
    color: #2ecc71;
    font-weight: 700;
}

/* Featured Player Card */
.featured-player-card {
    padding: 1rem;
    background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-subtle);
}

.featured-player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-warning);
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.featured-player-stats {
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border-subtle);
}

.featured-player-stats .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted);
    margin-bottom: 0.25rem;
}

.featured-player-stats .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

/* Division Featured Players */
.metric-item-extended {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--theme-surface-1, rgba(0, 0, 0, 0.02));
    margin-bottom: 0.5rem;
}

.metric-item-extended:hover {
    background: var(--theme-surface-hover, rgba(0, 0, 0, 0.05));
}

.division-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.division-featured-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0 1.5rem;
    border-top: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
    margin-top: 0.5rem;
}

.division-featured-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.division-featured-info {
    flex: 1;
    min-width: 0;
}

.player-name-small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdga-link-small {
    color: var(--theme-text-secondary, #6c757d);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: normal;
    transition: color 0.2s;
}

.pdga-link-small:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.player-rating-small {
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.player-rating-small i {
    font-size: 0.65rem;
}

/* Enhanced Episode Recap */
.episode-recap {
    position: relative;
    padding: 3rem 2.5rem;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    margin: 4rem 0;
    overflow: visible; /* Changed from 'hidden' to make the icon fully visible */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.episode-recap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20%;
    background: linear-gradient(to right, transparent, rgba(var(--bs-primary-rgb), 0.05));
    z-index: 1;
}

.recap-icon {
    position: absolute;
    left: 1rem;
    background: linear-gradient(45deg, var(--bs-primary), #4a90e2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: -1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.league-event-history-page .episode-recap h3 {
    color: var(--bs-primary);
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    position: relative;
    display: inline-block;
}

.league-event-history-page .episode-recap h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50%;
    height: 2px;
    background-color: var(--bs-primary);
}

.recap-content {
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.recap-content p {
    margin-bottom: 1.5rem;
}

.recap-content p:has(> img) {
    max-width: 340px;
    margin: 1.5rem auto;
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recap-content p:has(> img):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.recap-content p:has(> img) > img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}

.recap-content a {
    position: relative;
    padding-bottom: 2px;
    text-decoration: none;
    color: var(--bs-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.recap-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.recap-content a:hover::after {
    transform: scaleX(1);
}

/* ============================================
   PROGRESSIVE DISCLOSURE - Editorial Style
   ============================================ */

.recap-content-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.recap-content-wrapper[data-recap-state="expanded"] {
    max-height: 10000px;
}

/* Fade overlay when collapsed - creates page edge effect */
.recap-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.9) 70%,
        white 100%
    );
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.recap-content-wrapper[data-recap-state="expanded"] .recap-fade-overlay {
    opacity: 0;
    transform: translateY(20px);
}

/* Expand/Collapse Button - Book Page Aesthetic */
.recap-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg,
        rgba(var(--bs-primary-rgb), 0.08) 0%,
        rgba(var(--bs-primary-rgb), 0.04) 100%);
    border: 2px solid rgba(var(--bs-primary-rgb), 0.15);
    border-radius: 0.75rem;
    color: var(--bs-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recap-expand-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--bs-primary-rgb), 0.1) 50%,
        transparent 100%);
    transition: left 0.6s ease;
}

.recap-expand-btn:hover::before {
    left: 100%;
}

.recap-expand-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.15);
}

.recap-expand-btn:active {
    transform: translateY(0);
}

/* Button Icon */
.recap-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recap-content-wrapper[data-recap-state="expanded"] ~ .recap-expand-btn .recap-expand-icon {
    transform: rotate(180deg);
}

/* Button Text States */
.recap-expand-text {
    display: inline;
}

.recap-collapse-text {
    display: none;
}

.recap-content-wrapper[data-recap-state="expanded"] ~ .recap-expand-btn .recap-expand-text {
    display: none;
}

.recap-content-wrapper[data-recap-state="expanded"] ~ .recap-expand-btn .recap-collapse-text {
    display: inline;
}

/* Decorative element */
.recap-expand-decoration {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: rgba(var(--bs-primary-rgb), 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.recap-expand-btn:hover .recap-expand-decoration {
    opacity: 1;
    width: 60px;
}

.recap-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: right;
}

.recap-stamp {
    display: inline-flex;
    align-items: center;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
}

.stamp-icon {
    margin-right: 0.75rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-text {
    font-size: 0.9rem;
    color: var(--bs-secondary);
}

.stamp-text strong {
    color: var(--bs-primary);
}

/* Flippy Narrator Section */
.flippy-narrator-section {
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.flippy-narrator-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-info-rgb), 0.05));
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
}

.flippy-narrator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flippy-narrator-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.flippy-narrator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary);
    font-weight: 600;
}

.flippy-narrator-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.flippy-narrator-title {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    font-style: italic;
}

/* Enhanced CTP Card */
.ctp-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    background-color: white;
}

.ctp-card .card-header {
    background: linear-gradient(135deg, #0284c7, #4ca1af);
    padding: 1.25rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.ctp-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm-2.829 2.828l1.414-1.414 1.415 1.414-1.415 1.414-1.414-1.414zM42.728 14.97l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm-2.828 2.83l1.414-1.416 1.414 1.415-1.414 1.414-1.414-1.414zM30 4.686l1.415-1.415 1.414 1.415-1.414 1.414L30 4.686zm2.828-2.83l1.414-1.413L35.656.445l-1.414 1.414-1.414-1.414zM32.827 0l1.414 1.414L33.414 2.83l-1.414-1.416L32.827 0zM30 7.515l1.415-1.414 1.414 1.414-1.414 1.414L30 7.514zM37.656 0l-1.42 1.414 1.42 1.414L39.07 1.414 37.657 0zM35.657 14.97l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm-2.83 2.83l1.415-1.415 1.414 1.414-1.414 1.414-1.414-1.414zm-2.827 2.827l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zM30 9.93l1.415-1.416 1.414 1.415-1.414 1.414L30 9.929zm-2.828 2.83L28.586 11.4l1.414 1.413-1.414 1.414-1.414-1.414zm-2.83 2.827l1.415-1.414 1.414 1.414-1.414 1.414-1.414-1.414zM21.516 0l1.414 1.414-1.414 1.414L20.1 1.414 21.517 0zM19.102 4.7l1.414-1.415 1.414 1.414-1.414 1.414-1.414-1.414zm-2.83 2.83l1.415-1.416 1.414 1.415-1.414 1.414-1.414-1.414zm-2.827 2.827l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm7.07-7.07l1.415-1.414 1.414 1.414-1.414 1.414-1.414-1.414zM11.232 7.514l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm2.83-2.83l1.414-1.414 1.414 1.415-1.414 1.414-1.414-1.414zm2.828-2.827l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zM19.1 9.93l1.415-1.416 1.414 1.415-1.414 1.414-1.414-1.414zm-2.827 2.83l1.414-1.415 1.414 1.414-1.414 1.414-1.414-1.414zm-2.83 2.827l1.414-1.414 1.415 1.414-1.415 1.414-1.414-1.414zM8.402 12.757l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm2.83-2.83l1.413-1.413 1.414 1.414-1.414 1.414-1.414-1.414zm2.827-2.827l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zM30 14.97l1.415-1.414 1.414 1.414-1.414 1.414L30 14.97zm2.828-2.828l1.414-1.414 1.415 1.414-1.415 1.414-1.414-1.414zm-2.83 2.828l1.416-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm-2.827 2.83l1.414-1.416 1.414 1.415-1.414 1.414-1.414-1.414zM11.232 12.757l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414zm2.83-2.83l1.414-1.413 1.414 1.414-1.414 1.414-1.414-1.414zm2.828-2.827l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414z' fill='rgba(255,255,255,.025)' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 1;
}

.ctp-card .card-header h2 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.ctp-card .card-body {
    padding: 2rem;
}

.ctp-winner-profile {
    background-color: rgba(var(--bs-primary-rgb), 0.03);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ctp-winner-avatar {
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.champion-ribbon {
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-color: #ffc107;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.winner-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background-color: #2ecc71;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.ctp-winner-info h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.pdga-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 0.5rem;
}

.prize-ribbon {
    position: relative;
    display: inline-block;
    background-color: #28a745;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: white;
    font-weight: 700;
    transform: perspective(500px) rotateX(5deg);
}

.prize-ribbon::before, .prize-ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    border-style: solid;
    border-width: 8px 8px 0 8px;
}

.prize-ribbon::before {
    left: 5px;
    border-color: #28a745 transparent transparent transparent;
}

.prize-ribbon::after {
    right: 5px;
    border-color: #28a745 transparent transparent transparent;
}

.prize-amount {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ctp-shot-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.image-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.ctp-shot-image {
    width: 100%;
    border-radius: 0;
    transition: transform 0.5s ease;
    display: block;
}

.ctp-shot-image:hover {
    transform: scale(1.03);
}

.ctp-shot-quote {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    font-style: italic;
    line-height: 1.7;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shot-time {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Alert modern styles */
.alert-modern {
    display: flex;
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    border-radius: 0.5rem;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.alert-modern .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffb300;
    color: white;
    font-size: 1.5rem;
    padding: 0 1.5rem;
}

.alert-modern .alert-content {
    padding: 1.5rem;
    flex: 1;
}

.alert-modern .alert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffb300;
}

.alert-modern p:last-child {
    margin-bottom: 0;
}

[data-bs-theme="dark"] {
    .card-modern {
        background-color: var(--surface-2);
    }

    .card-modern .card-header {
        background: linear-gradient(135deg, var(--bs-primary), #2c3e50);
    }

    .card-modern .card-footer {
        background-color: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .division-title {
        color: var(--text-primary);
    }

    .accordion-modern .accordion-item {
        background-color: var(--surface-2);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .accordion-modern .accordion-item.top-performer {
        border: 2px solid rgba(255, 193, 7, 0.3);
        background-color: rgba(255, 255, 255, 0.03);
    }

    .accordion-modern .accordion-button {
        background-color: var(--surface-2);
        color: var(--text-primary);
    }

    .accordion-modern .accordion-button:not(.collapsed) {
        background: linear-gradient(to right, rgba(var(--bs-primary-rgb), 0.15), rgba(0, 0, 0, 0.2));
    }

    .accordion-modern .accordion-body {
        background-color: rgba(0, 0, 0, 0.2);
    }

    .player-avatar {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }

    .player-name {
        color: var(--text-primary);
    }

    .stat-card {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .score-bubble {
        background-color: rgba(var(--bs-primary-rgb), 0.2);
    }

    .episode-recap {
        background-color: var(--surface-2);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .episode-recap::before {
        background: linear-gradient(to right, transparent, rgba(var(--bs-primary-rgb), 0.1));
    }

    .episode-recap h3 {
        color: var(--bs-info);
    }

    .league-event-history-page .episode-recap h3::after {
        background-color: var(--bs-info);
    }

    .recap-content a {
        color: var(--bs-info);
    }

    .recap-content a::after {
        background-color: var(--bs-info);
    }

    /* Progressive disclosure dark mode */
    .recap-fade-overlay {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(var(--surface-2-rgb, 26, 30, 38), 0.3) 30%,
            rgba(var(--surface-2-rgb, 26, 30, 38), 0.9) 70%,
            var(--surface-2) 100%
        );
    }

    .recap-expand-btn {
        background: linear-gradient(135deg,
            rgba(var(--bs-info-rgb), 0.12) 0%,
            rgba(var(--bs-info-rgb), 0.06) 100%);
        border-color: rgba(var(--bs-info-rgb), 0.25);
        color: var(--bs-info);
    }

    .recap-expand-btn:hover {
        border-color: rgba(var(--bs-info-rgb), 0.4);
        box-shadow: 0 8px 20px rgba(var(--bs-info-rgb), 0.2);
    }

    .recap-expand-btn::before {
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(var(--bs-info-rgb), 0.15) 50%,
            transparent 100%);
    }

    .recap-expand-icon {
        background: var(--bs-info);
    }

    .flippy-narrator-card {
        background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-info-rgb), 0.1));
        border-color: rgba(255, 255, 255, 0.1);
    }

    .flippy-narrator-avatar {
        border-color: var(--bs-info);
    }

    .flippy-narrator-label {
        color: var(--text-secondary);
    }

    .flippy-narrator-name {
        color: var(--bs-info);
    }

    .flippy-narrator-title {
        color: var(--text-secondary);
    }

    .recap-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .recap-stamp {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
    }

    .stamp-icon {
        background-color: var(--bs-info);
    }

    .stamp-text {
        color: var(--text-secondary);
    }

    .stamp-text strong {
        color: var(--bs-info);
    }

    .ctp-card {
        background-color: var(--surface-2);
    }

    .ctp-card .card-header {
        background: linear-gradient(135deg, #0d6efd, #1e3a8a);
    }

    .ctp-winner-profile {
        background-color: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ctp-winner-avatar {
        border-color: rgba(0, 0, 0, 0.5);
    }

    .pdga-badge {
        background-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
    }

    .ctp-shot-quote {
        background-color: rgba(0, 0, 0, 0.25);
        color: var(--text-primary);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .shot-time {
        background-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
    }

    .alert-modern {
        background-color: rgba(255, 255, 255, 0.03);
        border-left-color: #ffb300;
    }

    .alert-modern .alert-content {
        color: var(--text-primary);
    }
}

/* Print Styles */
@media print {
    .event-hero {
        height: auto;
        margin-bottom: 1rem;
    }

    .event-hero__image {
        max-height: 200px;
    }

    .event-hero__content {
        position: relative;
        background: none;
        padding: 1rem 0;
    }

    .event-hero__title,
    .event-hero__subtitle {
        color: #000;
        text-shadow: none;
    }
}

/* Narrator Profile Controls */
.narrator-profile-section {
    margin-top: 1.5rem;
}

.narrator-preview-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.narrator-preview-media {
    flex-shrink: 0;
    position: relative;
}

.narrator-preview-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(var(--bs-primary-rgb), 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.narrator-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.narrator-preview-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.narrator-preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.narrator-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.narrator-preview-summary {
    margin: 0.35rem 0 0.5rem;
    color: var(--text-primary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.narrator-preview-summary.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.narrator-bio-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--theme-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: opacity 0.2s ease;
}

.narrator-bio-toggle:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.narrator-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.narrator-profile-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.narrator-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease;
}

.narrator-toggle-button .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.narrator-toggle-button .expanded-label {
    display: none;
}

.narrator-toggle-button[aria-expanded="true"] .expanded-label {
    display: inline;
}

.narrator-toggle-button[aria-expanded="true"] .collapsed-label {
    display: none;
}

.narrator-toggle-button .btn-icon i {
    transition: transform 0.2s ease;
}

.narrator-toggle-button[aria-expanded="true"] .btn-icon i {
    transform: rotate(180deg);
}

.narrator-profile-collapse {
    margin-top: 1.25rem;
}

.narrator-profile-section + .recap-content {
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .narrator-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .narrator-preview-media {
        align-self: center;
    }

    .narrator-preview-avatar {
        width: 72px;
        height: 72px;
    }

    .narrator-profile-toggle {
        justify-content: flex-start;
    }
}

[data-bs-theme="dark"] .narrator-preview-card {
    background: rgba(var(--bs-info-rgb, 13, 202, 240), 0.12);
    border-color: rgba(var(--bs-info-rgb, 13, 202, 240), 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .narrator-preview-name {
    color: var(--bs-info);
}

[data-bs-theme="dark"] .narrator-preview-summary {
    color: var(--bs-body-color);
}

/* Narrator Profile Card */
.narrator-profile-card {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(var(--bs-primary-rgb), 0.05));
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--bs-primary);
}

.narrator-profile-card--flippy {
    background: linear-gradient(140deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.1));
    border-left-color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.18);
}

.narrator-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.narrator-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to left, rgba(var(--bs-primary-rgb), 0.1), transparent);
    z-index: 1;
}

.narrator-archetype-banner {
    background: linear-gradient(90deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.8));
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.narrator-profile-card--flippy .narrator-archetype-banner {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    color: #f8fafc;
}

.narrator-archetype-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.1)' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.narrator-archetype-banner i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.narrator-archetype-banner span {
    position: relative;
    z-index: 2;
}

.narrator-profile-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.narrator-avatar-wrapper {
    position: relative;
    margin-right: 1.5rem;
}

.narrator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.narrator-profile-card--flippy .narrator-avatar {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.25);
}

.narrator-profile-card:hover .narrator-avatar {
    transform: scale(1.05);
}

.narrator-avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.narrator-profile-card--flippy .narrator-avatar-glow {
    border-color: rgba(56, 189, 248, 0.6);
}

.narrator-profile-card:hover .narrator-avatar-glow {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    opacity: 0.5;
}

.narrator-details {
    flex: 1;
}

.narrator-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
}

.narrator-profile-card--flippy .narrator-meta {
    color: rgba(15, 118, 110, 0.8);
}

.narrator-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--bs-primary), #4a90e2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.narrator-profile-card--flippy .narrator-name {
    background: none;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.narrator-archetype {
    display: inline-block;
}

.archetype-label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    transition: all 0.2s ease;
}

.narrator-profile-card--flippy .archetype-label {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.28);
    color: #0369a1;
    backdrop-filter: blur(6px);
}

.narrator-profile-card:hover .archetype-label {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    transform: translateY(-2px);
}

.narrator-tone-preview {
    font-style: italic;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
    max-width: 100%;
}

.narrator-profile-card--flippy .narrator-tone-preview {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.1));
    border-radius: 0.75rem;
    padding: 0.9rem 1.1rem 0.9rem 1.6rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #0f172a;
}

.tone-quote-icon {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1rem;
    color: var(--bs-primary);
    opacity: 0.6;
}

.narrator-profile-card--flippy .tone-quote-icon {
    color: #38bdf8;
    opacity: 0.7;
}

.narrator-profile-content {
    padding: 1.5rem;
}

.narrator-discover {
    margin-left: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.narrator-profile-card:hover .narrator-discover {
    opacity: 1;
}

.discover-button {
    display: flex;
    align-items: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--bs-primary);
    transition: all 0.2s ease;
}

.narrator-profile-card--flippy .discover-button {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.28);
    color: #0284c7;
}

.narrator-profile-card:hover .discover-button {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.3);
}

.narrator-profile-card--flippy:hover .discover-button {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: #f8fafc;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.discover-button i {
    margin-right: 0.5rem;
}

/* Dark Mode */
[data-bs-theme="dark"] {
    .narrator-profile-card {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.03), rgba(var(--bs-primary-rgb), 0.1));
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-left-color: var(--bs-info);
    }

    .narrator-profile-card--flippy {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.85));
        border-color: rgba(56, 189, 248, 0.4);
        border-left-color: #38bdf8;
        box-shadow: 0 25px 55px rgba(2, 132, 199, 0.25);
    }

    .narrator-profile-card::before {
        background: linear-gradient(to left, rgba(var(--bs-primary-rgb), 0.15), transparent);
    }

    .narrator-archetype-banner {
        background: linear-gradient(90deg, var(--bs-info), rgba(var(--bs-info-rgb), 0.8));
    }

    .narrator-profile-card--flippy .narrator-archetype-banner {
        background: linear-gradient(90deg, #0ea5e9, #2563eb);
    }

    .narrator-avatar {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .narrator-profile-card--flippy .narrator-avatar {
        border-color: rgba(148, 163, 184, 0.5);
        box-shadow: 0 18px 36px rgba(2, 132, 199, 0.35);
    }

    .narrator-avatar-glow {
        border-color: var(--bs-info);
    }

    .narrator-profile-card--flippy .narrator-avatar-glow {
        border-color: rgba(56, 189, 248, 0.7);
    }

    .narrator-name {
        background: linear-gradient(45deg, var(--bs-info), #4a90e2);
        -webkit-background-clip: text;
        background-clip: text;
    }

    .narrator-profile-card--flippy .narrator-name {
        background: none;
        color: #e0f2fe;
        -webkit-text-fill-color: #e0f2fe;
    }

    .narrator-meta {
        color: var(--text-secondary);
    }

    .narrator-profile-card--flippy .narrator-meta {
        color: rgba(203, 213, 225, 0.85);
    }

    .narrator-tone-preview {
        color: var(--text-secondary);
    }

    .narrator-profile-card--flippy .narrator-tone-preview {
        background: linear-gradient(135deg, rgba(8, 47, 73, 0.7), rgba(30, 64, 175, 0.6));
        border-color: rgba(56, 189, 248, 0.35);
        color: rgba(226, 232, 240, 0.92);
    }

    .tone-quote-icon {
        color: var(--bs-info);
    }

    .narrator-profile-card--flippy .tone-quote-icon {
        color: #38bdf8;
    }

    .archetype-label {
        background-color: rgba(var(--bs-info-rgb), 0.2);
        color: #bae6fd; /* Light blue for dark mode contrast */
        border-color: rgba(var(--bs-info-rgb), 0.3);
    }

    .narrator-profile-card--flippy .archetype-label {
        background: rgba(56, 189, 248, 0.22);
        color: #bae6fd;
        border-color: rgba(56, 189, 248, 0.4);
    }

    .narrator-profile-card:hover .archetype-label {
        background-color: rgba(var(--bs-info-rgb), 0.25);
    }

    .discover-button {
        background-color: rgba(var(--bs-info-rgb), 0.2);
        border-color: rgba(var(--bs-info-rgb), 0.3);
        color: var(--bs-info);
    }

    .narrator-profile-card--flippy .discover-button {
        background: rgba(56, 189, 248, 0.22);
        border-color: rgba(56, 189, 248, 0.4);
        color: #bae6fd;
    }

    .narrator-profile-card:hover .discover-button {
        background-color: var(--bs-info);
        color: var(--surface-3);
    }
}

/* Narrator Profile Card Mobile Styles */
@media (max-width: 768px) {
    .narrator-profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .narrator-avatar-wrapper {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .narrator-details {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .narrator-discover {
        margin-left: 0;
    }

    .discover-button {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .narrator-profile-card,
    .narrator-avatar,
    .narrator-avatar-glow,
    .archetype-label,
    .narrator-discover,
    .discover-button {
        transition: none;
    }

    .narrator-profile-card:hover {
        transform: none;
    }

    .narrator-profile-card:hover .narrator-avatar {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .event-hero__content {
        background: Canvas;
        -ms-high-contrast-adjust: none;
    }

    .event-hero__title,
    .event-hero__subtitle {
        color: CanvasText;
    }

    .narrator-profile-card {
        border: 1px solid CanvasText;
    }

    .narrator-avatar {
        border: 2px solid CanvasText;
    }

    .archetype-label,
    .discover-button {
        border: 1px solid CanvasText;
    }
}

/* Narrator Role Badges Styling */
.narrator-role-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.narrator-archetype-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    margin-bottom: 0.5rem;
}

.narrator-title-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgba(var(--bs-success-rgb), 0.1);
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bs-success);
    border: 1px solid rgba(var(--bs-success-rgb), 0.2);
    margin-bottom: 0.5rem;
}

/* Dark Mode for new narrator badges */
[data-bs-theme="dark"] {
    .narrator-archetype-badge {
        background-color: rgba(var(--bs-info-rgb), 0.2);
        color: #bae6fd; /* Light blue for dark mode contrast */
        border-color: rgba(var(--bs-info-rgb), 0.3);
    }

    .narrator-title-badge {
        background-color: rgba(var(--bs-success-rgb), 0.2);
        color: #86efac; /* Light green for dark mode contrast */
        border-color: rgba(var(--bs-success-rgb), 0.3);
    }

    /* Prize Pool Summary Cards - Dark Mode */

    .prize-pool-summary .stat-card {
        background: var(--surface-2, rgba(255, 255, 255, 0.05));
        border-color: rgba(255, 255, 255, 0.1);
    }

    .prize-pool-summary .stat-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .prize-pool-summary .stat-card-icon {
        background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.8), rgba(var(--bs-info-rgb), 0.8));
    }
}

/* Enhanced Empty State Styling */
.empty-state-icon {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.empty-state-icon i {
    color: var(--theme-text-muted);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.super-ace-section .card-body.text-center {
    background: linear-gradient(135deg,
    rgba(52, 152, 219, 0.03) 0%,
    rgba(102, 126, 234, 0.03) 100%);
    border-radius: 1rem;
    padding: 3rem 2rem !important;
    position: relative;
    overflow: hidden;
}

.super-ace-section .card-body.text-center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
    rgba(52, 152, 219, 0.1) 0%,
    transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.super-ace-section .card-body h3 {
    color: var(--theme-text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.super-ace-section .card-body p {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.super-ace-section .btn-primary {
    position: relative;
    z-index: 1;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.super-ace-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.super-ace-section .btn-primary i {
    transition: transform 0.3s ease;
}

.super-ace-section .btn-primary:hover i {
    transform: translateY(-2px);
}

/* ==========================================================================
   Throw Stats Summary (Competitor Accordion)
   ========================================================================== */

.throw-stats-summary {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--theme-bg-tertiary, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--theme-border-color, #e2e8f0);
}

.throw-stats-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.throw-stats-summary-header i {
    color: var(--theme-primary, #2563eb);
    font-size: 0.8125rem;
}

.throw-stats-summary-header .badge {
    font-size: 0.625rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
}

.throw-stats-summary-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.throw-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--theme-bg-primary, white);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 20px;
    font-size: 0.8125rem;
}

.throw-stat-pill .stat-name {
    color: var(--theme-text-secondary, #64748b);
    font-weight: 500;
}

.throw-stat-pill .stat-value {
    color: var(--theme-text-primary, #1e293b);
    font-weight: 600;
}

.throw-stat-pill .stat-delta {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.125rem;
}

.throw-stat-pill .stat-delta.delta--up {
    color: #16a34a;
}

.throw-stat-pill .stat-delta.delta--down {
    color: #dc2626;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .throw-stats-summary {
        padding: 0.75rem;
    }

    .throw-stats-summary-row {
        gap: 0.5rem;
    }

    .throw-stat-pill {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Dark mode */
[data-bs-theme="dark"] .throw-stats-summary {
    background: var(--theme-bg-tertiary, #1e293b);
    border-color: var(--theme-border-color, #334155);
}

[data-bs-theme="dark"] .throw-stats-summary-header {
    color: var(--theme-text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .throw-stat-pill {
    background: var(--theme-bg-secondary, #0f172a);
    border-color: var(--theme-border-color, #334155);
}

[data-bs-theme="dark"] .throw-stat-pill .stat-name {
    color: var(--theme-text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .throw-stat-pill .stat-value {
    color: var(--theme-text-primary, #f1f5f9);
}

[data-bs-theme="dark"] .throw-stat-pill .stat-delta.delta--up {
    color: #4ade80;
}

[data-bs-theme="dark"] .throw-stat-pill .stat-delta.delta--down {
    color: #f87171;
}
