/* ==========================================================================
   CreativeFolk Future Labs™ - Material + Duolingo + NASA-Inspired Dark/Light Theme
   ========================================================================== */

:root {
    --fl-bg-dark: #0B132B;
    --fl-card-bg: #1C2541;
    --fl-card-border: #3A506B;
    --fl-accent-gold: #F4B400;
    --fl-accent-blue: #0F4C81;
    --fl-accent-green: #1B8A5A;
    --fl-accent-purple: #7C3AED;
    --fl-text-main: #E0E6ED;
    --fl-text-muted: #8C9BAE;
    --fl-font-heading: 'Montserrat', sans-serif;
    --fl-font-body: 'Poppins', sans-serif;
}

body {
    background-color: var(--fl-bg-dark);
    color: var(--fl-text-main);
    font-family: var(--fl-font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fl-heading {
    font-family: var(--fl-font-heading);
    font-weight: 700;
}

/* Gamified Card Container (Duolingo Style) */
.fl-card {
    background: var(--fl-card-bg);
    border: 1px solid var(--fl-card-border);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Duolingo-style Interactive Option Buttons */
.fl-option-btn {
    background: #0F172A;
    border: 2px solid var(--fl-card-border);
    border-bottom: 5px solid var(--fl-card-border);
    border-radius: 14px;
    color: var(--fl-text-main);
    font-family: monospace;
    padding: 1rem 1.25rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fl-option-btn:hover {
    border-color: var(--fl-accent-gold);
    background: #1E293B;
    color: #ffffff;
}

.fl-option-btn:active, .fl-option-btn.selected {
    border-bottom-width: 2px;
    transform: translateY(3px);
    background: var(--fl-accent-blue);
    border-color: var(--fl-accent-gold);
    color: #ffffff;
}

/* Progress Bar */
.fl-progress-track {
    background: #1E293B;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.fl-progress-fill {
    background: linear-gradient(90deg, var(--fl-accent-gold) 0%, var(--fl-accent-green) 100%);
    height: 100%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Audio Player Floating Controller */
.fl-audio-pill {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--fl-card-border);
    border-radius: 30px;
    padding: 6px 16px;
}

/* Print Overrides for Discovery Cards */
@media print {
    body { background: #ffffff !important; color: #000000 !important; }
    .no-print { display: none !important; }
    .fl-card { background: #ffffff !important; border: 2px solid #000000 !important; color: #000000 !important; box-shadow: none !important; }
}