/* sbom.study — documentation clean slate aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FFFFFF;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

/* ===== Hero Zone ===== */
.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #1E293B;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    background: #2563EB;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cta-btn:hover {
    background: #1d4ed8;
}

.progress-preview {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #475569;
}

/* ===== Section Headings ===== */
.section-heading {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1E293B;
    margin-bottom: 1.5rem;
}

/* ===== Course Curriculum ===== */
.curriculum {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.module-row {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.module-row:hover {
    background: #F0F5FF;
}

.module-row.expanded {
    background: #F0F5FF;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.module-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #2563EB;
    font-weight: 500;
}

.module-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1E293B;
    flex: 1;
    min-width: 200px;
}

.lesson-badge {
    font-size: 0.75rem;
    background: #DBEAFE;
    color: #2563EB;
    padding: 2px 8px;
    border-radius: 4px;
}

.module-time {
    font-size: 0.75rem;
    color: #475569;
}

.module-chevron {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.module-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.3s ease;
}

.module-row.expanded .module-chevron::after {
    transform: translate(-50%, -40%) rotate(-135deg);
}

.progress-bar {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563EB var(--progress), #DBEAFE var(--progress));
    margin-top: 0.75rem;
}

/* ===== Module Lessons (Accordion) ===== */
.module-lessons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-row.expanded .module-lessons {
    max-height: 400px;
}

.lesson-list {
    list-style: none;
    padding: 0.75rem 0 0 2rem;
}

.lesson-item {
    font-size: 0.9rem;
    color: #475569;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lesson-item.completed {
    color: #1E293B;
}

.lesson-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.lesson-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    color: #475569;
    font-size: 0.65rem;
    font-family: 'Fira Code', monospace;
    flex-shrink: 0;
}

/* ===== Key Concepts Panel ===== */
.concepts {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.concept-callout {
    border-left: 4px solid #2563EB;
    background: #F0F5FF;
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.callout-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.callout-body {
    font-size: 0.95rem;
    color: #475569;
}

.highlight-term {
    background: rgba(37, 99, 235, 0.08);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
    color: #1E293B;
}

/* ===== Practice Zone ===== */
.practice {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.practice-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.prompt-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.prompt-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1rem;
}

.code-block {
    background: #1E293B;
    color: #E6EDF3;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.5;
}

.json-key {
    color: #93C5FD;
}

.json-val {
    color: #86EFAC;
}

.answer-input {
    width: 100%;
    height: 120px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    resize: vertical;
    background: #FFFFFF;
    color: #1E293B;
    margin-bottom: 0.75rem;
}

.answer-input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.check-btn {
    font-weight: 600;
    font-size: 0.9rem;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.check-btn:hover {
    background: #059669;
}

.answer-feedback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.answer-feedback.correct {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
    padding: 0.75rem;
}

.answer-feedback.partial {
    background: rgba(37, 99, 235, 0.06);
    color: #2563EB;
    padding: 0.75rem;
}

.answer-feedback.empty {
    background: rgba(229, 231, 235, 0.5);
    color: #475569;
    padding: 0.75rem;
}

/* ===== Footer ===== */
.footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-rule {
    border-top: 1px solid #E5E7EB;
    margin-bottom: 1rem;
}

.footer-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.85rem;
    color: #2563EB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1d4ed8;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .practice-split {
        grid-template-columns: 1fr;
    }
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
