/* Waveform Free Crash Course Styles */

/* ========================================= */
/* COURSE HEADER */
/* ========================================= */

.course-header {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.05) 0%, transparent 100%);
}

/* ========================================= */
/* COURSE NAVIGATION */
/* ========================================= */

.course-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--color-light);
    background: rgba(167, 139, 250, 0.1);
}

.nav-link.active {
    color: var(--color-accent);
    background: rgba(167, 139, 250, 0.15);
}

/* ========================================= */
/* MODULES & LESSONS */
/* ========================================= */

.course-module {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--color-dark-border);
}

.course-module:last-of-type {
    border-bottom: none;
}

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

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

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

.module-description {
    color: var(--color-muted);
    font-size: 1.125rem;
}

/* Lessons */
.lesson {
    background: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.lesson-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-dark-border);
}

/* ========================================= */
/* PROSE STYLES */
/* ========================================= */

.prose-custom {
    color: var(--color-muted);
    line-height: 1.7;
}

.prose-custom p {
    margin-bottom: 1rem;
}

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

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

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

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

.prose-custom a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose-custom a:hover {
    color: var(--color-light);
}

.prose-custom kbd {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-family: monospace;
    font-size: 0.85em;
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 4px;
    color: var(--color-light);
}

.highlight-text {
    font-size: 1.125rem;
    color: var(--color-light);
    font-style: italic;
    padding: 1rem;
    background: rgba(167, 139, 250, 0.05);
    border-left: 3px solid var(--color-accent);
    margin: 1.5rem 0;
}

/* ========================================= */
/* BOXES */
/* ========================================= */

.steps-box {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.steps-box h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 0;
}

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

.steps-box li {
    margin-bottom: 0.5rem;
    color: var(--color-muted);
}

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

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.info-box p, .info-box ul {
    margin-bottom: 0.5rem;
}

.info-box p:last-child, .info-box ul:last-child {
    margin-bottom: 0;
}

.try-this {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.try-this h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.try-this p {
    margin-bottom: 0;
}

.pattern-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pattern-box h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.pattern-box ul {
    margin-bottom: 0;
}

/* ========================================= */
/* COMPLETION CHECK */
/* ========================================= */

.completion-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.completion-check svg {
    color: #4ade80;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.completion-check span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ========================================= */
/* STEP SEQUENCER DEMO */
/* ========================================= */

.step-sequencer-demo {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.sequencer-labels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sequencer-labels span {
    font-size: 0.75rem;
    color: var(--color-muted);
    height: 28px;
    display: flex;
    align-items: center;
}

.sequencer-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(3, 28px);
    gap: 4px;
    margin-bottom: 0.5rem;
}

.sequencer-cell {
    background: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.sequencer-cell:hover {
    border-color: var(--color-accent);
}

.sequencer-cell.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.sequencer-numbers {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 4px;
}

.sequencer-numbers span {
    font-size: 0.625rem;
    color: var(--color-muted);
    text-align: center;
    opacity: 0.6;
}

/* ========================================= */
/* TEMPO GUIDE */
/* ========================================= */

.tempo-guide {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tempo-guide h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 1rem;
    margin-top: 0;
}

.tempo-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tempo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-dark-border);
}

.tempo-item:last-child {
    border-bottom: none;
}

.tempo-bpm {
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    min-width: 80px;
}

.tempo-genre {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ========================================= */
/* STRUCTURE VISUAL */
/* ========================================= */

.structure-visual {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.structure-visual h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 1rem;
    margin-top: 0;
}

.structure-timeline {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.structure-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.structure-section.intro,
.structure-section.outro {
    background: rgba(167, 139, 250, 0.15);
    flex: 1;
}

.structure-section.main {
    background: rgba(34, 197, 94, 0.15);
    flex: 2;
}

.structure-section.breakdown {
    background: rgba(59, 130, 246, 0.15);
    flex: 1.5;
}

.structure-section.build {
    background: rgba(251, 146, 60, 0.15);
    flex: 1;
}

.section-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 0.25rem;
}

.section-bars {
    font-size: 0.625rem;
    color: var(--color-muted);
}

/* ========================================= */
/* PANNING GUIDE */
/* ========================================= */

.panning-guide {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.panning-guide h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 1rem;
    margin-top: 0;
}

.pan-visual {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.5rem;
}

.pan-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.pan-zone.left {
    background: rgba(167, 139, 250, 0.1);
}

.pan-zone.center {
    background: rgba(34, 197, 94, 0.1);
}

.pan-zone.right {
    background: rgba(167, 139, 250, 0.1);
}

.pan-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.pan-items {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ========================================= */
/* MIX CHECKS */
/* ========================================= */

.mix-checks {
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.mix-checks h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 1rem;
    margin-top: 0;
}

.check-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-dark-border);
}

.check-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.check-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-item strong {
    display: block;
    color: var(--color-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.check-item p {
    color: var(--color-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================= */
/* NEXT COURSES */
/* ========================================= */

.next-courses {
    margin: 2rem 0;
}

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

.next-course-grid {
    display: grid;
    gap: 1rem;
}

.next-course-card {
    display: block;
    padding: 1.25rem;
    background: var(--color-dark);
    border: 1px solid var(--color-dark-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.next-course-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.next-course-title {
    display: block;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 0.25rem;
}

.next-course-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ========================================= */
/* COURSE COMPLETE */
/* ========================================= */

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

.complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.complete-icon svg {
    color: var(--color-accent);
}

/* ========================================= */
/* SIDEBAR */
/* ========================================= */

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--color-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: var(--color-accent);
}

.sidebar-links svg {
    flex-shrink: 0;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 1024px) {
    .sidebar-content {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 640px) {
    .lesson {
        padding: 1.5rem;
    }

    .structure-timeline {
        flex-wrap: wrap;
    }

    .structure-section {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 0;
    }

    .pan-visual {
        grid-template-columns: 1fr;
    }
}
