/* === Classes & Events Page Styles === */

.classes-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
}

/* === Hero Section === */
.classes-hero {
    background: linear-gradient(180deg, #0d1117 0%, #080b0f 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.classes-hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.16rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.classes-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === Embed Section === */
.embed-section {
    padding: 0 2rem;
}

/* ============================================
   Neon Glow Frame Style
   ============================================ */
.neon-embed-container {
    background: linear-gradient(180deg, #0d1117 0%, #080b0f 100%);
    border: 2px solid #32D011;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 
        0 0 30px rgba(50, 208, 17, 0.3),
        0 0 60px rgba(50, 208, 17, 0.15),
        inset 0 0 60px rgba(50, 208, 17, 0.05);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.neon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.neon-header h2 {
    font-size: 1.5rem;
    color: #32D011;
    text-shadow: 0 0 20px rgba(50, 208, 17, 0.8);
    letter-spacing: 0.1em;
    margin: 0;
}

.neon-icon {
    font-size: 1.5rem;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px #32D011; }
    50% { opacity: 0.7; text-shadow: 0 0 30px #32D011; }
}

/* === Neon Frame === */
.neon-frame {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

/* Wrapper to hide the scrollbar */
.iframe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.iframe-wrapper iframe {
    display: block;
    background: #0a0a0a;
    border-radius: var(--radius);
    width: calc(100% + 20px);
    margin-right: -20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe-wrapper iframe.loaded {
    opacity: 1;
}

/* === Neon Footer === */
.neon-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.neon-pulse {
    width: 8px;
    height: 8px;
    background: #32D011;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px #32D011; }
    50% { box-shadow: 0 0 20px #32D011, 0 0 40px #32D011; }
}

/* ============================================
   Past Events Section
   ============================================ */
.past-events-section {
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.event-links-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.past-events-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.past-events-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.luma-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(52%) sepia(95%) saturate(1000%) hue-rotate(85deg) brightness(95%) contrast(95%);
}

.past-events-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(52%) sepia(95%) saturate(1000%) hue-rotate(85deg) brightness(95%) contrast(95%);
}

.past-events-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.past-events-link:hover .past-events-arrow {
    transform: translateX(3px);
}

.external-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.past-events-link:hover .external-link-icon {
    transform: translate(2px, -2px);
}

/* ============================================
   Loading Shimmer
   ============================================ */
.embed-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    border-radius: var(--radius);
    padding: 1.5rem;
    z-index: 10;
}

.shimmer-line,
.shimmer-card {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.shimmer-title {
    height: 24px;
    width: 40%;
    margin-bottom: 0.75rem;
}

.shimmer-date {
    height: 16px;
    width: 25%;
    margin-bottom: 1.5rem;
}

.shimmer-card {
    height: 100px;
    width: 100%;
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .classes-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .classes-hero h1 {
        font-size: 1.44rem;
        line-height: 1.4;
    }
    
    .embed-section,
    .past-events-section {
        padding: 0 1rem;
    }
    
    .neon-embed-container {
        padding: 1rem;
    }
    
    .neon-header h2 {
        font-size: 1.1rem;
    }
    
    .iframe-wrapper iframe {
        height: 450px;
    }
    
    .past-events-link {
        min-height: 48px;
        font-size: 1rem;
    }
    
    .event-links-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
