/* ============================================
   EVENT HERO - ARTWORK SHOWCASE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@500;600;700&display=swap');

.event-hero-section {
    margin: 2rem 0 3rem;
}

/* Hero Layout - Side-by-Side */
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ============================================
   ARTWORK PANEL - Primary Focus
   ============================================ */

.hero-artwork-panel {
    animation: artwork-reveal 1s ease-out;
}

@keyframes artwork-reveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.artwork-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.artwork-frame:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.2),
        0 12px 30px rgba(0, 0, 0, 0.15);
}

.hero-artwork-image {
    width: 100%;
    aspect-ratio: 390 / 261;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    cursor: pointer;
}

/* ============================================
   DETAILS PANEL - Broadcast Style
   ============================================ */

.hero-details-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: details-slide-in 1s ease-out 0.2s both;
}

@keyframes details-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header Badges */
.hero-header-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hero-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-league-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.hero-week-badge {
    background: var(--bs-primary, #007bff);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb, 0, 123, 255), 0.3);
}

/* Title */
.hero-event-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1.5px;
    color: #111827;
    margin: 0;
}

/* Event Meta */
.hero-event-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.3px;
}

.hero-meta-item i {
    font-size: 1.25rem;
    color: #9ca3af;
    width: 24px;
    text-align: center;
}

.hero-course-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Winning Faction Badge */
.hero-winning-faction {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #713f12;
    padding: 1rem 1.75rem;
    border-radius: 100px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
    align-self: flex-start;
}

.hero-winning-faction i {
    font-size: 1.5rem;
}

/* League Emblem - Inline */
.hero-league-emblem-inline {
    width: 150px;
    margin-top: auto;
}

.hero-emblem-image {
    width: 100%;
    aspect-ratio: 390 / 261;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-emblem-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ============================================
   BROADCAST STATS BAR
   ============================================ */

.event-stats-broadcast {
    margin: 0 0 3rem;
}

.stats-broadcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-broadcast-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: card-pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stat-broadcast-card:nth-child(1) { animation-delay: 0.1s; }
.stat-broadcast-card:nth-child(2) { animation-delay: 0.2s; }
.stat-broadcast-card:nth-child(3) { animation-delay: 0.3s; }
.stat-broadcast-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes card-pop-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-broadcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.stat-broadcast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
        rgba(var(--bs-primary-rgb, 0, 123, 255), 0.12) 0%,
        rgba(var(--bs-primary-rgb, 0, 123, 255), 0.06) 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-broadcast-icon i {
    font-size: 1.75rem;
    color: var(--bs-primary, #007bff);
}

.stat-broadcast-content {
    flex: 1;
    min-width: 0;
}

.stat-broadcast-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-broadcast-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.stat-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.stat-link:hover {
    color: var(--bs-primary, #007bff);
}

.stat-link i {
    opacity: 0.6;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: opacity 0.2s ease;
}

.stat-link:hover i {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-artwork-panel {
        order: 1;
    }

    .hero-details-panel {
        order: 2;
    }

    .hero-event-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .event-hero-section {
        margin: 1.5rem 0 2rem;
    }

    .hero-layout {
        gap: 1.5rem;
    }

    .artwork-frame {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .hero-artwork-image {
        border-radius: 10px;
    }

    .hero-details-panel {
        gap: 1.5rem;
    }

    .hero-header-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-event-title {
        font-size: 2rem;
    }

    .hero-winning-faction {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .stats-broadcast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-broadcast-card {
        padding: 1.25rem;
    }

    .stat-broadcast-icon {
        width: 48px;
        height: 48px;
    }

    .stat-broadcast-icon i {
        font-size: 1.5rem;
    }

    .stat-broadcast-value {
        font-size: 1.75rem;
    }

    .stat-broadcast-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-event-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-meta-item {
        font-size: 0.9rem;
    }

    .stats-broadcast-grid {
        grid-template-columns: 1fr;
    }

    .hero-league-emblem-inline {
        width: 120px;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-bs-theme="dark"] .artwork-frame {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .hero-league-badge {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .hero-week-badge {
    background: var(--bs-info, #34d399);
    box-shadow: 0 4px 16px rgba(var(--bs-info-rgb, 52, 211, 153), 0.3);
}

[data-bs-theme="dark"] .hero-event-title {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .hero-meta-item {
    color: #d1d5db;
}

[data-bs-theme="dark"] .hero-meta-item i {
    color: #6b7280;
}

[data-bs-theme="dark"] .hero-course-avatar {
    border-color: #374151;
}

[data-bs-theme="dark"] .hero-emblem-image {
    border-color: #374151;
}

[data-bs-theme="dark"] .stat-broadcast-card {
    background: #1f2937;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .stat-broadcast-icon {
    background: linear-gradient(135deg,
        rgba(var(--bs-info-rgb, 52, 211, 153), 0.15) 0%,
        rgba(var(--bs-info-rgb, 52, 211, 153), 0.08) 100%);
}

[data-bs-theme="dark"] .stat-broadcast-icon i {
    color: var(--bs-info, #34d399);
}

[data-bs-theme="dark"] .stat-broadcast-value {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .stat-broadcast-label {
    color: #9ca3af;
}

[data-bs-theme="dark"] .stat-link:hover {
    color: var(--bs-info, #34d399);
}
