/* Greek Listening App Custom Aesthetics */
:root {
    --greek-blue: #0F4C81;
    --aegean-deep: #0A2E50;
    --santorini-sky: #0288D1;
    --terracotta: #E06D53;
    --greek-sun: #F5A623;
    --olive-green: #4A7C59;
}

html, body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    -webkit-font-smoothing: antialiased;
}

.greek-font {
    font-family: 'Outfit', 'Playfair Display', Georgia, serif;
}

/* Initial loader styling */
.initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A2E50 0%, #0F4C81 50%, #0288D1 100%);
    color: #ffffff;
}

.greek-symbol {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    animation: pulseSymbol 2.5s infinite ease-in-out;
}

@keyframes pulseSymbol {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; text-shadow: 0 0 35px rgba(245, 166, 35, 0.7); }
}

.loader-spinner {
    width: 48px;
    height: 48px;
    margin: 20px 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.loader-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

/* Glassmorphism card effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.mud-theme-dark .glass-card {
    background: rgba(18, 24, 38, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px 0 rgba(15, 76, 129, 0.16) !important;
    border-color: rgba(2, 136, 209, 0.4) !important;
}

.mud-theme-dark .glass-card-hover:hover {
    box-shadow: 0 14px 38px 0 rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(2, 136, 209, 0.4) !important;
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0F4C81 0%, #082F54 70%, #031B33 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-gradient::before {
    content: 'Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω';
    position: absolute;
    top: 5%;
    left: 0;
    right: 0;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* Greek text highlights & transcript */
.greek-transcript {
    font-size: 1.15rem;
    line-height: 2.0;
    letter-spacing: 0.2px;
    color: var(--mud-palette-text-primary);
}

.greek-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

/* Audio Player styling */
.custom-audio-player {
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.04), rgba(2, 136, 209, 0.08));
    border: 1px solid rgba(2, 136, 209, 0.2);
}

.mud-theme-dark .custom-audio-player {
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.15), rgba(2, 136, 209, 0.1));
    border: 1px solid rgba(2, 136, 209, 0.3);
}

/* Pulse animation for active audio indicator */
.audio-pulse {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}

.audio-pulse span {
    width: 3px;
    background-color: var(--mud-palette-primary);
    border-radius: 3px;
    animation: wave 1.2s infinite ease-in-out;
}

.audio-pulse span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-pulse span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.audio-pulse span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.audio-pulse span:nth-child(4) { height: 14px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Quiz questions styling */
.quiz-card {
    border-radius: 18px;
    transition: all 0.25s ease;
}

.quiz-option-btn {
    height: 60px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.quiz-option-btn:hover {
    transform: scale(1.02);
}

.quiz-option-btn:active {
    transform: scale(0.98);
}

/* Level badge custom gradients */
.level-badge-a1 { background-color: #2E7D32 !important; color: white !important; }
.level-badge-a2 { background-color: #00897B !important; color: white !important; }
.level-badge-b1 { background-color: #0288D1 !important; color: white !important; }
.level-badge-b2 { background-color: #7B1FA2 !important; color: white !important; }
.level-badge-c1 { background-color: #E65100 !important; color: white !important; }
.level-badge-c2 { background-color: #C2185B !important; color: white !important; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 76, 129, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 76, 129, 0.6);
}