/* ===========================================
   Watch Party Page Styles
   Synced with Schedule Page design
   =========================================== */

/* Biến bổ sung cho watch-party */
:root {
    --bg-dark: #0a0a0f;
    --bg-medium: #12121a;
    --bg-light: #1a1a24;
    --accent-red: #ff2222;
    --accent-gold: #ffd700;
    --accent-cyan: #a461ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Lucide Icons Styling */
[data-lucide] {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    stroke-width: 2;
}

.round-badge [data-lucide],
.section-label [data-lucide] {
    color: #c75af6;
}

.event-date [data-lucide],
.event-meta [data-lucide] {
    color: #c75af6;
    margin-right: 0.25rem;
}

.cta-btn [data-lucide] {
    margin-left: 0.5rem;
}

.placeholder [data-lucide] {
    width: 4rem;
    height: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Watch Party Section (giống schedule page) */
.watch-party-section {
    padding: 80px 5vw 120px;
    background: #1a0d2e;
    position: relative;
    min-height: 100vh;
}

.watch-party-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header (giống các trang khác) */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.section-description {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Next Event Section */
.next-event {
    padding: 2rem 0 3rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(122, 80, 154, 0.2);
    color: #c75af6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c75af6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* LIVE Event Styles */
.live-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff2222;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: liveGlow 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 34, 34, 0.5);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes liveGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 34, 34, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(255, 34, 34, 0.8);
    }
}

.live-event {
    border-color: #ff2222 !important;
    animation: liveCardGlow 2s ease-in-out infinite;
}

.live-event:hover {
    border-color: #ff4444 !important;
}

@keyframes liveCardGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 34, 34, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 34, 34, 0.5);
    }
}

.live-event .section-label,
.section-label.live-label {
    background: rgba(255, 34, 34, 0.2);
    color: #ff4444;
}

.live-event .section-label::before,
.section-label.live-label::before {
    background: #ff2222;
}

/* Next Event Card (giống next-race-card) */
.next-event-card {
    background: var(--bg-medium);
    border: 2px solid #7a509a;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1000px; /* Limit width */
    min-height: 350px; /* Ensure a decent height even with little text */
    margin: 0 auto;    /* Center the card */
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 80, 154, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.next-event-card:hover {
    border-color: #c75af6;
    filter: brightness(1.1);
    box-shadow: 0 20px 60px rgba(122, 80, 154, 0.3);
}

.next-event-card .event-image {
    background: linear-gradient(135deg, #24132f, #1a0d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%; /* Stretch to fill full height of the card */
    border-right: 1px solid rgba(122, 80, 154, 0.3);
}

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

.next-event-card .event-image .placeholder {
    font-size: 6rem;
    opacity: 0.2;
}

.next-event-card .event-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.next-event-card .round-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(122, 80, 154, 0.2);
    color: #c75af6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.next-event-card .country-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.next-event-card .country-info img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border-color);
}

.next-event-card .country-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.next-event-card .event-name {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
}

.next-event-card .event-date {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.next-event-card .cta-btn {
    display: inline-block;
    background: #7a509a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    transition: all 0.3s ease;
}

.next-event-card .cta-btn:hover {
    background: #c75af6;
    box-shadow: 0 8px 24px rgba(199, 90, 246, 0.4);
}

/* Section Title */
.section-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Event Card (giống race-card) */
.event-card {
    background: var(--bg-medium);
    border: 1px solid rgba(122, 80, 154, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    border-color: #c75af6;
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(122, 80, 154, 0.3);
}

.event-card .card-image {
    aspect-ratio: 16 / 9; /* Enforce 16:9 ratio */
    background: linear-gradient(135deg, #24132f, #1a0d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.event-card .card-image .placeholder {
    font-size: 4rem;
    opacity: 0.2;
}

.event-card .round-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-card .card-content {
    padding: 1.5rem;
}

.event-card .country-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.event-card .country-row img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.event-card .country-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.event-card .event-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.event-card .event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-card .event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c75af6;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Upcoming & Past Sections */
.upcoming-section,
.past-section {
    margin-top: 3rem;
}

/* Past Events */
.past-section .event-card {
    opacity: 0.6;
}

.past-section .event-card:hover {
    opacity: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .watch-party-section {
        padding: 120px 4vw 100px;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .next-event-card {
        grid-template-columns: 1fr;
    }

    .next-event-card .event-image {
        aspect-ratio: 16 / 9;
    }
}

/* Responsive - Tablet nhỏ */
@media (max-width: 768px) {
    .watch-party-section {
        padding: 100px 4vw 80px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .next-event-card .event-info {
        padding: 1.5rem;
    }

    .next-event-card .country-name {
        font-size: 1.5rem;
    }

    .next-event-card .event-date {
        flex-direction: column;
        gap: 0.5rem;
    }

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

/* Responsive - Mobile */
@media (max-width: 576px) {
    .watch-party-section {
        padding: 90px 3vw 60px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header .eyebrow {
        font-size: 0.75rem;
    }

    .next-event-card .event-image {
        aspect-ratio: 16 / 9;
    }

    .next-event-card .event-info {
        padding: 1rem;
    }

    .next-event-card .country-name {
        font-size: 1.25rem;
    }

    .next-event-card .event-name {
        font-size: 1rem;
    }

    .event-card .card-image {
        aspect-ratio: 16 / 9;
    }
}

/* Responsive - Mobile nhỏ */
@media (max-width: 375px) {
    .watch-party-section {
        padding: 80px 2vw 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.875rem;
    }
}