/* ========================================= */
/* DRAWING COURSE STYLES */
/* ========================================= */

/* Course Header */
.course-header {
    border-bottom: 1px solid #2a2a2a;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.03) 0%, transparent 100%);
}

/* Course Content Container */
.course-content {
    position: relative;
}

/* Course Sections */
.course-section {
    padding: 4rem 0;
    border-bottom: 1px solid #2a2a2a;
}

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

/* Section Header */
.section-header {
    margin-bottom: 2rem;
}

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

.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f5f5f5;
    letter-spacing: -0.02em;
}

/* Prose Content */
.prose-content {
    max-width: 65ch;
}

.prose-content p {
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prose-content h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-content strong {
    color: #f5f5f5;
    font-weight: 600;
}

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

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

.prose-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

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

/* Callout Box */
.prose-content .callout {
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid var(--accent, #A78BFA);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.prose-content .callout strong {
    color: var(--accent, #A78BFA);
}

/* ========================================= */
/* INTERACTIVE TOOLS */
/* ========================================= */

.interactive-tool {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    margin: 2.5rem 0;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #0a0a0a;
    border-bottom: 1px solid #2a2a2a;
}

.tool-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent, #A78BFA);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tool-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f5f5f5;
}

.tool-body {
    padding: 1.5rem;
}

.tool-tip {
    padding: 1rem 1.5rem;
    background: rgba(167, 139, 250, 0.05);
    border-top: 1px solid #2a2a2a;
    font-size: 0.875rem;
    color: #a0a0a0;
}

.tip-label {
    color: var(--accent, #A78BFA);
    font-weight: 500;
    margin-right: 0.5rem;
}

/* ========================================= */
/* BLIND CONTOUR TIMER */
/* ========================================= */

.blind-contour-container {
    text-align: center;
    padding: 2rem;
}

.timer-display {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.timer-instruction {
    color: #a0a0a0;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-play-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent, #A78BFA);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-play-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.btn-play-small .pause-icon {
    display: none;
}

.btn-play-small.playing .play-icon {
    display: none;
}

.btn-play-small.playing .pause-icon {
    display: block;
}

.btn-secondary-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-small:hover {
    border-color: var(--accent, #A78BFA);
    color: var(--accent, #A78BFA);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent, #A78BFA) 0%, #8b5cf6 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

/* ========================================= */
/* LINE CONFIDENCE TRAINER */
/* ========================================= */

.line-trainer-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.line-canvas {
    width: 100%;
    height: 300px;
    background: #0a0a0a;
    border-radius: 12px;
    cursor: crosshair;
}

.line-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.line-exercise-info {
    font-size: 0.875rem;
    color: #a0a0a0;
}

.exercise-label {
    color: #6b7280;
    margin-right: 0.5rem;
}

#exercise-name {
    color: #f5f5f5;
    font-weight: 500;
}

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

/* ========================================= */
/* SHAPE BREAKDOWN VIEWER */
/* ========================================= */

.shape-breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shape-display {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
}

.shape-canvas {
    width: 100%;
    height: 280px;
}

.shape-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.object-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shape-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent, #A78BFA);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.shape-btn.active {
    background: var(--accent, #A78BFA);
    color: #0a0a0a;
}

.breakdown-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-slider label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.breakdown-slider input[type="range"] {
    width: 100%;
    accent-color: var(--accent, #A78BFA);
}

.breakdown-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================= */
/* PROPORTION TOOL */
/* ========================================= */

.proportion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proportion-display {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
}

.proportion-canvas {
    width: 100%;
    height: 300px;
}

.proportion-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proportion-info {
    display: flex;
    justify-content: center;
}

.ratio-display {
    background: #0a0a0a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.ratio-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.ratio-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent, #A78BFA);
    font-weight: 600;
}

.proportion-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.prop-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent, #A78BFA);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.prop-btn.active {
    background: var(--accent, #A78BFA);
    color: #0a0a0a;
}

.proportion-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

/* ========================================= */
/* SHADING SIMULATOR */
/* ========================================= */

.shading-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .shading-container {
        flex-direction: row;
    }
}

.shading-display {
    flex: 1;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
}

.shading-canvas {
    width: 100%;
    height: 300px;
}

.shading-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .shading-controls {
        width: 200px;
    }
}

.form-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-btn {
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.form-btn:hover {
    border-color: var(--accent, #A78BFA);
    color: var(--accent, #A78BFA);
}

.form-btn.active {
    background: var(--accent, #A78BFA);
    border-color: var(--accent, #A78BFA);
    color: #0a0a0a;
}

.light-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.light-controls label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.light-position-grid {
    width: 120px;
    height: 120px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.light-position-dot {
    width: 20px;
    height: 20px;
    background: var(--accent, #A78BFA);
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

.light-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================= */
/* EDGE COMPARISON */
/* ========================================= */

.edge-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edge-canvas {
    width: 100%;
    height: 280px;
    background: #0a0a0a;
    border-radius: 12px;
}

.edge-controls {
    display: flex;
    justify-content: center;
}

.edge-type-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.edge-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent, #A78BFA);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.edge-btn.active {
    background: var(--accent, #A78BFA);
    color: #0a0a0a;
}

/* ========================================= */
/* PERSPECTIVE TOOL */
/* ========================================= */

.perspective-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.perspective-canvas {
    width: 100%;
    height: 320px;
    background: #0a0a0a;
    border-radius: 12px;
}

.perspective-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .perspective-controls {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
    }
}

.vp-control {
    flex: 1;
    min-width: 150px;
}

.vp-control label {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.vp-control input[type="range"] {
    width: 100%;
    accent-color: var(--accent, #A78BFA);
}

.perspective-presets {
    display: flex;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent, #A78BFA);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ========================================= */
/* PROCESS VIEWER */
/* ========================================= */

.process-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-canvas {
    width: 100%;
    height: 300px;
    background: #0a0a0a;
    border-radius: 12px;
}

.process-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stage-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stage-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent, #A78BFA);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.stage-btn.active {
    background: var(--accent, #A78BFA);
    color: #0a0a0a;
}

.stage-info {
    text-align: center;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
}

.stage-info p {
    color: #a0a0a0;
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================= */
/* PATH SELECTOR */
/* ========================================= */

.path-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.path-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.path-card:hover {
    border-color: var(--accent, #A78BFA);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.path-card.active {
    border-color: var(--accent, #A78BFA);
    background: rgba(167, 139, 250, 0.1);
}

.path-icon {
    width: 48px;
    height: 48px;
    color: var(--accent, #A78BFA);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.path-card:hover .path-icon,
.path-card.active .path-icon {
    opacity: 1;
}

.path-icon svg {
    width: 100%;
    height: 100%;
}

.path-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f5f5f5;
    text-align: center;
}

.path-info {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 120px;
}

.path-prompt {
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.path-info h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f5f5f5;
    margin: 0 0 0.75rem;
}

.path-info p {
    color: #a0a0a0;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.path-info p:last-child {
    margin-bottom: 0;
}

.path-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent, #A78BFA);
}

/* ========================================= */
/* COURSE COMPLETION */
/* ========================================= */

.course-completion {
    text-align: center;
    padding: 3rem;
    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.2);
    border-radius: 20px;
    margin-top: 3rem;
}

.completion-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--accent, #A78BFA);
}

.completion-icon svg {
    width: 100%;
    height: 100%;
}

.course-completion h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f5;
    margin: 0 0 0.75rem;
}

.course-completion p {
    color: #a0a0a0;
    margin: 0;
}
