/* ============================================
   KINTSUGI INTERACTIVE COURSE ENGINE
   Premium mobile-first learning interface
   ============================================ */

:root {
    --primary: var(--gold-primary);
    --primary-light: var(--gold-light);
    --primary-dark: var(--gold-dark);
    --primary-rgb: 212, 175, 55;

    --bg-main: var(--bg-cream);
    --bg-card: #ffffff;
    --bg-dark: #1a1a1a;

    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted: #888888;

    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.1);

    --content-width: 600px;
    --header-height: 64px;
    --nav-height: 80px;
}

/* Base resets for interactive mode */
body {
    background: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    /* Prevent body scroll, handled by individual slides */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.course-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: relative;
    z-index: 100;
}

.header-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-container {
    width: 100px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Main Content */
.course-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.slides-container {
    width: 100%;
    max-width: var(--content-width);
    height: 80vh;
    position: relative;
}

/* Slide Styles */
.slide {
    display: none;
    height: 100%;
    width: 100%;
    animation: slideEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.active {
    display: flex;
    flex-direction: column;
}

@keyframes slideEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    padding: 2.5rem 2rem;
    height: 100%;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Scrollbar and Glassmorphism */
.slide-card::-webkit-scrollbar {
    width: 4px;
}

.slide-card::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

/* Interactive Elements */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-option {
    padding: 1.25rem;
    background: var(--bg-cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-option:hover {
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

.quiz-option.selected {
    background: white;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.quiz-option.correct {
    background: #f0fdf4;
    border-color: #22c55e;
}

.quiz-option.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
}

.reflection-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    margin-top: 1.5rem;
    resize: none;
    background: rgba(212, 175, 55, 0.03);
}

.reflection-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: white;
}

/* Navigation */
.course-nav {
    height: var(--nav-height);
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.nav-inner {
    width: 100%;
    max-width: var(--content-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .slide-card {
        padding: 2rem 1.5rem;
    }

    .slides-container {
        height: 75vh;
    }
}