/* ==================== VITAL SYNTH CRASH COURSE STYLES ==================== */

/* Course Container */
.course-container {
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Course Header */
.course-header {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--dark-border);
    padding: 2rem 0 3rem;
}

.course-header-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-category {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .course-title {
        font-size: 3rem;
    }
}

.course-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 40rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.course-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.course-features .feature svg {
    color: var(--accent);
    opacity: 0.8;
}

/* Course Navigation */
.course-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border);
}

.course-nav-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.course-nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-section {
    padding: 1rem 1rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-section:hover {
    color: var(--light);
}

.nav-section.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Course Content */
.course-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Styles */
.course-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--dark-border);
}

.course-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 3rem;
}

.section-number {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.6;
}

/* Lesson Styles */
.lesson {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lesson-header {
    margin-bottom: 2rem;
}

.lesson-number {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.lesson-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

/* Prose Content */
.prose-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--muted);
}

.prose-content p {
    margin-bottom: 1.25rem;
}

.prose-content h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose-content strong {
    color: var(--light);
    font-weight: 600;
}

.prose-content em {
    font-style: italic;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose-content li {
    margin-bottom: 0.5rem;
}

.prose-content ul li {
    list-style-type: disc;
}

.prose-content ol li {
    list-style-type: decimal;
}

/* Key Concept Box */
.key-concept {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.key-concept h4 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.key-concept p:last-child {
    margin-bottom: 0;
}

/* Media Figures */
.media-figure {
    margin: 2rem 0;
}

.media-figure.inline {
    margin: 1rem 0;
}

.media-figure figcaption {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.75rem;
    text-align: center;
}

.media-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.media-placeholder.animation {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.2);
}

.placeholder-label {
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.media-grid .media-figure {
    margin: 0;
}

.media-grid .media-placeholder {
    min-height: 120px;
    padding: 1.5rem 1rem;
}

/* A/B Audio Comparison Component */
.ab-comparison {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.ab-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ab-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.ab-description {
    font-size: 0.9375rem;
    color: var(--light);
}

.ab-buttons {
    display: flex;
    gap: 0.75rem;
}

.ab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.ab-btn.active {
    background: rgba(167, 139, 250, 0.15);
    border-color: var(--accent);
}

.ab-btn.playing {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--accent);
}

.ab-letter {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--light);
}

.ab-btn.active .ab-letter,
.ab-btn.playing .ab-letter {
    background: var(--accent);
    color: #000;
}

.ab-track-label {
    font-size: 0.875rem;
    color: var(--muted);
}

.ab-btn.active .ab-track-label,
.ab-btn.playing .ab-track-label {
    color: var(--light);
}

/* Audio Demo Button */
.audio-demo {
    margin: 1.5rem 0;
}

.demo-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-play-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--accent);
}

.demo-play-btn.playing {
    background: var(--accent);
    color: #000;
}

.demo-play-btn svg {
    width: 18px;
    height: 18px;
}

/* Your Turn Section */
.your-turn {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 3rem;
}

.your-turn h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.exercise {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.exercise:last-child {
    margin-bottom: 0;
}

.exercise h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.exercise ol {
    padding-left: 1.25rem;
    margin: 0;
}

.exercise li {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.exercise-note {
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

.your-turn > .exercise-note {
    margin-top: 1.5rem;
}

/* Project Styles */
.project {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-number {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.project-skills {
    font-size: 0.875rem;
    color: var(--muted);
}

.project-steps {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-steps ol {
    padding-left: 1.25rem;
    margin: 0;
}

.project-steps li {
    margin-bottom: 0.625rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.project-steps li:last-child {
    margin-bottom: 0;
}

.project-note {
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Cheatsheet Grid */
.cheatsheet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .cheatsheet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cheatsheet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cheatsheet {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.cheatsheet-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.cheatsheet-image {
    min-height: 180px;
}

/* Skill Levels */
.skill-level {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.skill-level h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.skill-level p {
    margin-bottom: 0.5rem;
}

.skill-level p:last-child {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Practice Ideas */
.practice-idea {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.practice-idea h4 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.practice-idea p {
    margin-bottom: 0;
}

/* Course Complete */
.course-complete {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.course-complete h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.course-complete p {
    color: var(--muted);
    font-size: 1.0625rem;
    max-width: 32rem;
    margin: 0 auto 1rem;
}

.course-complete p:last-child {
    color: var(--light);
    font-weight: 500;
    margin-bottom: 0;
}

/* Course Footer */
.course-footer {
    border-top: 1px solid var(--dark-border);
    padding: 3rem 0;
    margin-top: 2rem;
}

.course-footer-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

/* Image handling when assets are present */
.media-figure img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

/* Hide placeholder when image loads */
.media-placeholder:has(img) {
    padding: 0;
    border: none;
    background: transparent;
    min-height: auto;
}

/* GIF/Animation styling */
.media-placeholder.animation img {
    border: 1px solid rgba(167, 139, 250, 0.2);
}
