/* live-events.css */

/* Hero Section */
.live-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Prevent padding from adding to 100% width and causing horizontal overflow */
    padding: 100px 20px;
    background: url('images/live-event.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.live-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.5), rgba(255, 140, 0, 0.7));
    z-index: 1;
}

.live-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    background: rgba(255, 246, 239, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.live-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #fff, #ffe6cc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.live-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Event Container */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 80px 20px;
}

.dynamic-section {
    display: none;
    margin-bottom: 60px;
}

.dynamic-section.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.2rem;
    color: #ff6600;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 102, 0, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.3);
}

/* Live Event specific */
.live-card {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 246, 239, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.live-card:hover {
    border: 2px solid rgba(255, 0, 0, 0.5);
}

.live-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    z-index: 10;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.event-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 800;
}

.event-time {
    font-size: 1.1rem;
    color: #ff6600;
    margin-bottom: 15px;
    font-weight: 600;
}

.event-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Upcoming / Past Event Grid */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.event-grid-card h3 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.event-grid-card .event-time {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ff6600;
}

.event-grid-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.timer {
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 15px;
    background: #fff6ef;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.view-details-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6600, #ff4500);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 102, 0, 0.3);
    background: #e05500;
}

/* Empty State */
.empty-state-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 30px;
}

.empty-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, #ccc, #999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.empty-state-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.empty-state-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .live-hero-title {
        font-size: 2.2rem;
    }

    .live-hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .live-badge {
        right: 50%;
        transform: translateX(50%);
        top: -15px;
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    .live-hero {
        padding: 60px 15px;
    }

    .glass-card {
        padding: 20px;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .upcoming-grid {
        grid-template-columns: 1fr;
        /* 1 column mobile */
    }
}

@media (max-width: 600px) {
    .live-hero-title {
        font-size: 1.8rem;
    }

    .live-hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 15px;
        border-radius: 12px;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .event-time {
        font-size: 0.95rem;
    }

    .timer {
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .video-container {
        border-radius: 8px;
    }

    .view-details-btn {
        display: block !important;
        width: 100%;
        margin-right: 0 !important;
        box-sizing: border-box;
        font-size: 0.95rem;
    }

    .upcoming-grid {
        gap: 15px;
    }
}