@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --surface-glass: rgba(15, 23, 42, 0.65);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Neon accents */
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-yellow: #eab308;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 999px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glassmorphism primitives */
.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--surface-border-hover);
}

/* Glowing animations & interactive states */
.glow-cyan:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

.glow-pink:hover {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
}

.glow-purple:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.glow-yellow:hover {
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dynamic sidebars and layout helpers */
.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Auto-Sizing iframe container for infographics */
.iframe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Quiz UI Custom styles */
.quiz-option {
    border: 1px solid var(--surface-border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-option:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.quiz-option.selected {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: #06b6d4 !important;
    color: #f8fafc !important;
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

.quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

/* Fade and Slide Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tab indicator highlight */
.tab-active {
    position: relative;
    color: var(--accent-cyan) !important;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
}

/* Locking indicator */
.week-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.week-locked:hover {
    transform: none !important;
    border-color: var(--surface-border) !important;
    box-shadow: none !important;
}
