/* css/styles.css */
html, body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; 
    overscroll-behavior-y: contain;
    transition: background-color 0.1s ease;
}

/* --- Fluid Font Scaling --- */
.font-scale-display { font-size: clamp(0.9375rem, 7.5vw, 4.5rem); }
.font-scale-header { font-size: clamp(0.85rem, 0.6rem + 2vw, 1.25rem); }
.font-scale-subheader { font-size: clamp(0.8rem, 0.2rem + 2.5vw, 1.25rem); }
.font-scale-body { font-size: clamp(0.8rem, 0.5rem + 1.5vw, 1rem); }
.font-scale-subtle { font-size: clamp(0.1rem, 0.5rem + 1vw, 0.9rem); }

.main-view, .detail-view, .archive-view, .museum-view { transition: opacity 0.3s ease-in-out; }
.event-card, .event-list-item { transition: opacity 0.3s ease-in-out; }

/* Default Past Event style (dimmed) */
.past-event { opacity: 0.4; filter: grayscale(80%); }

/* Force Full Color in Archive/Museum View */
#archive-container .past-event, #museum-container .past-event {
    opacity: 1 !important;
    filter: none !important;
}

.live-badge {
    background-color: #ef4444;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.detail-view, .archive-view, .museum-view { display: none; }

.on-air-badge { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 7px rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(239, 68, 68, 1); }
}

.tabular-nums { font-variant-numeric: tabular-nums; }

.font-scale-thankyou {
    font-size: clamp(0.8rem, 0.5rem + 2vw, 1.2rem); 
    color: #9ca3af;
    line-height: 1.4;
    font-weight: 600;
}

.thank-you-bar {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2.5rem;
}

/* Form elements for Archive Filter */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    appearance: none;
}

/* --- Toggle Video Visibility --- */
/* Only hide the preview box (iframe), keep the Watch button visible */
body.video-previews-off .video-preview {
    display: none !important;
}
