
/* ==================================================
   NOVAOPS ENGINEERING ACADEMY
   Creative Technology / Neo-Brutalist Edition

   Art Direction & Development:
   BraxMOV Learning Studio
   ================================================== */

/* 01. DESIGN SYSTEM */

:root {
    --canvas: #f5f3ea;
    --white: #ffffff;
    --ink: #171717;
    --muted: #55534f;

    --lime: #c8fa60;
    --purple: #5334d4;
    --pink: #ff9cca;
    --orange: #ffb66e;
    --blue: #a8d8ff;
    --yellow: #ffe66d;

    --success: #196b38;
    --error: #a51d32;

    --border: 2px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-large: 8px 8px 0 var(--ink);

    --radius: 12px;

    --font-main: Arial, Helvetica, sans-serif;
    --font-display: "Arial Black", Arial, Helvetica, sans-serif;
    --font-code: "SFMono-Regular", Consolas, monospace;
}

/* 02. GLOBAL RESET */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--canvas);

    background-image:
        radial-gradient(
            rgba(23, 23, 23, 0.12) 1px,
            transparent 1px
        );

    background-size: 24px 24px;

    color: var(--ink);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
}

::selection {
    background: var(--lime);
    color: var(--ink);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.12;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -1.5px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

p {
    color: var(--muted);
}

code,
pre {
    font-family: var(--font-code);
}

code {
    color: var(--purple);
    font-weight: 600;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* 03. ACCESSIBILITY */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    padding: 14px 22px;

    background: var(--lime);
    color: var(--ink);
    border: var(--border);
    box-shadow: var(--shadow);

    font-weight: 800;
}

.skip-link:focus {
    top: 15px;
}

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px var(--white);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* 04. HEADER */

.topbar {
    min-height: 90px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 18px 4%;

    background: var(--lime);
    border-bottom: 3px solid var(--ink);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-symbol,
.brand-logo {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;
    flex-shrink: 0;

    background: var(--ink);
    color: var(--lime);

    border: var(--border);
    border-radius: 10px;

    font-family: var(--font-code);
    font-size: 25px;
    font-weight: 900;

    transform: rotate(-5deg);
}

.brand-name {
    display: block;

    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -2px;

    color: var(--ink);
}

.brand-label {
    display: block;

    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.system-status,
.header-label {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    background: var(--white);
    border: var(--border);
    box-shadow: 3px 3px 0 var(--ink);
    border-radius: 6px;

    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;

    background: var(--success);
    border-radius: 50%;
}

/* 05. REIMAGINED COURSE LAYOUT */

/*
   Unlike Maison Belle, NovaOps uses a
   horizontal mission-navigation system.
*/

.course-layout {
    display: flex;
    flex-direction: column;

    max-width: 1550px;
    min-height: 80vh;

    margin: 0 auto;
    padding: 28px clamp(16px, 4vw, 55px);
}

/* 06. MISSION NAVIGATION */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 25px;
    margin-bottom: 30px;

    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-heading h2 {
    font-size: 25px;
    margin: 6px 0;
}

.sidebar-heading p {
    font-family: var(--font-code);
    font-size: 12px;
    margin-bottom: 0;
}

.eyebrow {
    display: block;

    color: var(--purple);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;

    margin-bottom: 12px;
}

.lesson-list {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 10px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-list li {
    min-width: 0;
}

.lesson-link {
    width: 100%;
    height: 100%;
    min-height: 85px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;

    background: var(--canvas);
    color: var(--ink);

    padding: 14px;
    border: var(--border);
    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.lesson-link > span:first-child {
    font-family: var(--font-code);
    font-size: 19px;
    font-weight: 900;
    color: var(--purple);
}

.lesson-link:hover {
    background: var(--blue);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--ink);
}

.lesson-link.active {
    background: var(--ink);
    color: var(--white);
    box-shadow: 4px 4px 0 var(--purple);
}

.lesson-link.active > span:first-child {
    color: var(--lime);
}

.lesson-link.completed:not(.active) {
    background: var(--lime);
}

.completion-mark {
    font-size: 17px;
    font-weight: 900;
    color: inherit;
}

.lesson-link[aria-disabled="true"] {
    opacity: 0.65;
    cursor: not-allowed;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    font-size: 11px;
    color: var(--muted);

    border-top: 1px dashed var(--ink);
    padding-top: 15px;
}

.sidebar-footer strong {
    color: var(--ink);
}

.sidebar-footer button {
    margin-left: auto;
    font-size: 11px;
    min-height: 36px;
    padding: 7px 14px;
}

/* 07. PROGRESS BAR */

.progress-container {
    margin: 0;
}

.progress-details {
    display: flex;
    justify-content: space-between;

    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 700;

    margin-bottom: 8px;
}

.progress-details strong {
    color: var(--purple);
}

progress {
    display: block;

    width: 100%;
    height: 15px;

    border: var(--border);
    border-radius: 4px;
    overflow: hidden;

    background: var(--canvas);
    accent-color: var(--purple);
}

progress::-webkit-progress-bar {
    background: var(--canvas);
}

progress::-webkit-progress-value {
    background: repeating-linear-gradient(
        -45deg,
        var(--purple),
        var(--purple) 12px,
        #7358eb 12px,
        #7358eb 24px
    );
}

progress::-moz-progress-bar {
    background: var(--purple);
}

/* 08. MAIN CONTENT */

main {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.lesson-panel {
    max-width: 1300px;
    margin: 0 auto;

    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 09. HERO / MISSION BRIEFING */

.hero {
    position: relative;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;

    background: var(--purple);

    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-large);

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;

    padding: clamp(30px, 6vw, 80px);
}

.hero .eyebrow {
    display: inline-block;

    padding: 8px 12px;

    background: var(--lime);
    color: var(--ink);

    border: var(--border);
    border-radius: 4px;

    transform: rotate(-2deg);
}

.hero h1 {
    color: var(--white);
    font-family: var(--font-display);

    font-size: clamp(3rem, 6.5vw, 6rem);
    line-height: 0.99;
    letter-spacing: -3px;
    text-transform: uppercase;

    margin: 24px 0;
}

.hero h1 span {
    display: block;
    color: var(--lime);
}

.hero-description {
    max-width: 600px;

    color: var(--white);
    font-size: 17px;
    line-height: 1.7;

    margin-bottom: 30px;
}

.hero .primary-button {
    background: var(--lime);
    color: var(--ink);
}

.hero .primary-button:hover {
    background: var(--yellow);
}

/* 10. CSS-GENERATED GRAPHIC ART */

.hero-art {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 420px;

    background-image:
        radial-gradient(
            circle at 40% 50%,
            var(--orange) 0%,
            var(--orange) 31%,
            transparent 31.5%
        ),
        radial-gradient(
            rgba(255,255,255,0.35) 1px,
            transparent 1px
        );

    background-size: auto, 18px 18px;
}

/* Retro computer graphic */

.hero-art::before {
    content: "</>";

    display: grid;
    place-items: center;

    position: relative;
    z-index: 2;

    width: clamp(150px, 18vw, 230px);
    height: clamp(130px, 15vw, 190px);

    background: var(--lime);
    color: var(--ink);

    border: 12px solid var(--ink);
    border-radius: 16px;

    font-family: var(--font-code);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;

    box-shadow: 12px 12px 0 var(--pink);

    transform: rotate(-10deg);
}

/* Decorative star */

.hero-art::after {
    content: "✳";

    position: absolute;
    top: 8%;
    right: 10%;

    color: var(--lime);
    font-size: clamp(55px, 8vw, 100px);

    line-height: 1;
    transform: rotate(15deg);

    text-shadow: 3px 3px 0 var(--ink);
}

.art-caption {
    position: relative;
    z-index: 3;

    background: var(--pink);
    color: var(--ink);

    padding: 8px 13px;
    margin-top: 35px;

    border: var(--border);
    box-shadow: 3px 3px 0 var(--ink);

    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;

    transform: rotate(4deg);
}

/* 11. COURSE STATISTICS */

.course-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin: 32px 0;
}

.meta-item {
    padding: 25px 20px;

    background: var(--lime);
    border: var(--border);
    border-radius: 9px;

    box-shadow: var(--shadow);
}

.meta-item:nth-child(2) {
    background: var(--pink);
}

.meta-item:nth-child(3) {
    background: var(--orange);
}

.meta-item strong {
    display: block;

    font-family: var(--font-display);
    font-size: clamp(23px, 4vw, 38px);

    line-height: 1.2;
    letter-spacing: -1.5px;
}

.meta-item span {
    display: block;

    margin-top: 8px;

    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
}

/* 12. LEARNING CONTENT */

.content-card,
.activity-card,
.instruction-card,
.assessment-question {
    margin: 28px 0;
    padding: clamp(24px, 4vw, 42px);

    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-card {
    background: var(--white);
}

.activity-card {
    background: var(--white);
    border-top: 9px solid var(--purple);
}

.activity-card > .eyebrow {
    display: inline-block;

    background: var(--purple);
    color: var(--white);

    border-radius: 4px;
    padding: 6px 10px;
}

.instruction-card {
    background: var(--yellow);
}

.content-card p:last-child,
.instruction-card p:last-child {
    margin-bottom: 0;
}

.lesson-heading {
    padding: 25px 0 15px;
    margin-bottom: 15px;
}

.lesson-heading .eyebrow {
    display: inline-block;

    background: var(--lime);
    color: var(--ink);

    border: var(--border);
    box-shadow: 3px 3px 0 var(--ink);

    padding: 8px 14px;

    transform: rotate(-2deg);
}

.lesson-heading h1 {
    margin: 20px 0 15px;
    text-transform: uppercase;
}

.lesson-heading p {
    max-width: 800px;
    font-size: 18px;
}

/* Module-specific visual identities */

#lesson-1 .activity-card {
    border-top-color: var(--success);
}

#lesson-2 .activity-card {
    border-top-color: var(--purple);
}

#lesson-3 .activity-card {
    border-top-color: #d66312;
}

#lesson-4 .activity-card {
    border-top-color: #2479a8;
}

/* 13. LEARNING OBJECTIVES */

.objective-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.objective-list li {
    position: relative;

    padding: 15px 12px 15px 45px;

    border-bottom: 1px dashed #bdbbb4;

    font-weight: 600;
}

.objective-list li::before {
    content: "→";

    position: absolute;
    left: 10px;
    top: 12px;

    color: var(--purple);

    font-size: 23px;
    font-weight: 900;
}

.objective-list li:last-child {
    border-bottom: none;
}

/* 14. COLORFUL LEARNING CARDS */

.feature-grid,
.framework-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));

    gap: 20px;

    margin-top: 25px;
}

.feature-card,
.framework-card {
    min-width: 0;

    padding: 26px;

    background: var(--lime);
    border: var(--border);
    border-radius: 9px;
    box-shadow: 4px 4px 0 var(--ink);
}

.feature-card:nth-child(5n + 2),
.framework-card:nth-child(5n + 2) {
    background: var(--pink);
}

.feature-card:nth-child(5n + 3),
.framework-card:nth-child(5n + 3) {
    background: var(--orange);
}

.feature-card:nth-child(5n + 4),
.framework-card:nth-child(5n + 4) {
    background: var(--blue);
}

.feature-card:nth-child(5n + 5),
.framework-card:nth-child(5n + 5) {
    background: var(--yellow);
}

.feature-number,
.framework-card > strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -3px;

    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
}

.feature-card p,
.framework-card p {
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 0;
}

/* 15. BUTTONS */

.primary-button,
.secondary-button,
.terminal-button,
.run-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 24px;

    border: var(--border);
    border-radius: 6px;
    box-shadow: 4px 4px 0 var(--ink);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;

    text-transform: uppercase;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.primary-button {
    background: var(--purple);
    color: var(--white);
}

.secondary-button {
    background: var(--white);
    color: var(--ink);
}

.terminal-button,
.run-button {
    background: var(--lime);
    color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.terminal-button:hover,
.run-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.primary-button:hover {
    background: #4323bc;
}

.secondary-button:hover {
    background: var(--blue);
}

.terminal-button:hover,
.run-button:hover {
    background: var(--yellow);
}

button:active {
    transform: translate(2px, 2px);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.lesson-actions,
.button-group,
.editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 16px;
    margin: 30px 0;
}

/* 16. SEQUENCING EXERCISE */

.sequence-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;

    gap: 15px;
    padding: 18px;
    margin: 14px 0;

    background: var(--canvas);
    border: var(--border);
    border-radius: 8px;

    font-weight: 700;

    box-shadow: 3px 3px 0 var(--ink);
}

.sequence-row:nth-of-type(even) {
    background: var(--blue);
}

.sequence-row label {
    font-size: 15px;
}

/* 17. FORM INPUTS */

select,
input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    min-height: 48px;

    padding: 12px 16px;

    background: var(--white);
    color: var(--ink);

    border: var(--border);
    border-radius: 6px;
}

select {
    font-family: var(--font-code);
    font-size: 13px;
}

textarea {
    resize: vertical;
}

.form-field label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

/* 18. RETRO TERMINAL */

.terminal,
.terminal-window,
.terminal-output,
.code-editor,
.editor-window {
    margin: 25px 0;

    background: #171717;
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 7px 7px 0 var(--purple);

    overflow: hidden;
}

.terminal-header,
.editor-header,
.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 12px;
    padding: 16px 20px;

    background: var(--lime);
    color: var(--ink);

    border-bottom: 3px solid var(--ink);

    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 900;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 13px;
    height: 13px;

    border: 1px solid var(--ink);
    border-radius: 50%;
}

.window-dots span:nth-child(1) {
    background: var(--pink);
}

.window-dots span:nth-child(2) {
    background: var(--orange);
}

.window-dots span:nth-child(3) {
    background: var(--purple);
}

.terminal-body,
.terminal-content,
#terminal-output {
    padding: 25px;

    min-height: 260px;
    max-height: 440px;

    overflow: auto;

    background: #171717;
    color: var(--lime);

    font-family: var(--font-code);
    font-size: 14px;
    line-height: 1.9;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal-line {
    display: block;
    margin: 5px 0;
}

.terminal-line.command {
    color: #a8d8ff;
}

.terminal-line.success {
    color: var(--lime);
}

.terminal-line.error {
    color: #ff9cca;
}

.terminal-line.info {
    color: #eeeeee;
}

.terminal-input-row,
.terminal-command-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    padding: 16px;

    background: #252525;
    border-top: 1px solid #777777;
}

.terminal-prompt {
    color: var(--lime);
    font-family: var(--font-code);
    font-size: 14px;
    font-weight: 700;
}

#terminal-input,
#git-command {
    flex: 1;

    min-width: 150px;
    width: auto;

    background: #171717;
    color: var(--lime);

    border: 1px solid #a5a5a5;

    font-family: var(--font-code);
}

.command-reference {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.command-reference code {
    display: inline-block;

    padding: 7px 12px;

    background: var(--blue);
    color: var(--ink);

    border: var(--border);
    border-radius: 5px;

    overflow-wrap: anywhere;
}

/* 19. CREATIVE CODE EDITOR */

.file-tab {
    display: flex;
    align-items: center;
    gap: 8px;

    font-family: var(--font-code);
    font-weight: 700;
    font-size: 13px;

    color: var(--ink);
}

#code-input,
#code-editor,
#debug-code,
.code-input,
.code-textarea {
    display: block;

    width: 100%;
    min-height: 260px;

    margin: 0;
    padding: 25px;

    background: #171717;
    color: #d8fda1;

    border: none;
    border-radius: 0;

    font-family: var(--font-code);
    font-size: 15px;
    line-height: 1.9;

    tab-size: 4;
    resize: vertical;
}

#code-input:focus,
#code-editor:focus,
#debug-code:focus {
    outline: 3px solid var(--lime);
    outline-offset: -5px;
}

.code-block {
    padding: 22px;

    background: #171717;
    color: var(--lime);

    border: var(--border);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--purple);

    font-family: var(--font-code);
    font-size: 14px;

    overflow-x: auto;
}

/* 20. DEBUGGING TEST CONSOLE */

.test-console,
#test-output,
#debug-output {
    margin: 24px 0;
    padding: 24px;

    background: #171717;
    color: #eeeeee;

    border: 3px solid var(--ink);
    border-radius: 8px;

    box-shadow: 4px 4px 0 var(--orange);

    font-family: var(--font-code);
    font-size: 13px;
    line-height: 1.8;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.test-console.success,
#test-output.success,
#debug-output.success {
    color: var(--lime);
    box-shadow: 4px 4px 0 var(--success);
}

.test-console.error,
#test-output.error,
#debug-output.error {
    color: var(--pink);
    box-shadow: 4px 4px 0 var(--error);
}

/* 21. BUG REPORTS AND SCENARIOS */

.bug-report,
.scenario-box {
    position: relative;

    background: var(--orange);

    border: var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);

    padding: 28px;
    margin: 24px 0;
}

.bug-report .eyebrow,
.scenario-box .eyebrow {
    display: inline-block;

    background: var(--ink);
    color: var(--white);

    padding: 5px 10px;
    border-radius: 4px;
}

.bug-report p,
.scenario-box p {
    color: var(--ink);
}

.bug-report p:last-child,
.scenario-box p:last-child {
    margin-bottom: 0;
}

/* 22. QUIZZES AND KNOWLEDGE CHECKS */

.question {
    padding: 0;
    border: none;

    margin: 20px 0;
    min-width: 0;
}

.question legend {
    margin-bottom: 18px;
    padding: 0;

    font-size: 18px;
    font-weight: 800;
}

.answer-option,
.checklist-option {
    display: flex;
    align-items: flex-start;

    gap: 15px;
    margin: 13px 0;
    padding: 18px;

    background: var(--canvas);

    border: var(--border);
    border-radius: 7px;
    box-shadow: 3px 3px 0 var(--ink);

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.answer-option:hover,
.checklist-option:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.answer-option:has(input:checked),
.checklist-option:has(input:checked) {
    background: var(--lime);
    box-shadow: 4px 4px 0 var(--ink);
}

input[type="radio"],
input[type="checkbox"] {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    margin: 3px 0 0;

    accent-color: var(--purple);
}

/* 23. QUALITY ASSURANCE DASHBOARD */

.qa-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
    margin: 25px 0;
}

.qa-card {
    background: var(--canvas);

    border: var(--border);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--ink);

    padding: 25px;
}

.qa-card h3 {
    font-size: 20px;
}

.qa-status {
    display: inline-block;

    padding: 6px 12px;
    margin-bottom: 15px;

    border: var(--border);
    border-radius: 4px;

    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 900;
}

.qa-status.pass {
    background: var(--lime);
    color: var(--ink);
}

.qa-status.fail {
    background: var(--pink);
    color: var(--ink);
}

.qa-status.pending {
    background: var(--yellow);
    color: var(--ink);
}

#deployment-result,
#release-result,
#qa-result {
    padding: 20px;
    margin-top: 20px;

    background: var(--orange);
    color: var(--ink);

    border: var(--border);
    box-shadow: var(--shadow);

    font-family: var(--font-code);
    font-weight: 800;
}

/* 24. INTERACTIVE FEEDBACK */

.feedback:empty {
    padding: 0;
    margin: 0;
    border: none;
}

.feedback:not(:empty) {
    margin-top: 22px;
    padding: 20px;

    background: var(--blue);
    color: var(--ink);

    border: var(--border);
    border-radius: 7px;

    box-shadow: 3px 3px 0 var(--ink);

    font-weight: 600;
    font-size: 14px;
}

.feedback.correct {
    background: var(--lime);
    color: var(--ink);
}

.feedback.incorrect {
    background: var(--pink);
    color: var(--ink);
}

/* 25. FINAL ASSESSMENT */

.assessment-question {
    background: var(--white);
    border-left: 9px solid var(--purple);
}

.assessment-question:nth-child(2n) {
    border-left-color: var(--success);
}

.assessment-question .eyebrow {
    display: inline-block;

    background: var(--yellow);
    color: var(--ink);

    border: var(--border);
    padding: 6px 10px;

    border-radius: 4px;
}

/* 26. COMPLETION SCREEN */

.completion-card {
    position: relative;
    overflow: hidden;

    padding: clamp(30px, 7vw, 85px);

    text-align: center;

    background: var(--lime);
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-large);
}

.completion-card > h1 {
    text-transform: uppercase;
    font-size: clamp(3rem, 7vw, 6rem);
}

.completion-card p {
    color: var(--ink);
}

.completion-symbol,
.completion-monogram {
    display: grid;
    place-items: center;

    width: 100px;
    height: 100px;

    margin: 0 auto 25px;

    background: var(--purple);
    color: var(--white);

    border: 3px solid var(--ink);
    border-radius: 20px;

    box-shadow: 6px 6px 0 var(--ink);

    font-size: 55px;
    font-weight: 900;

    transform: rotate(-8deg);
}

.score-display {
    display: flex;
    flex-direction: column;
    gap: 15px;

    max-width: 500px;
    margin: 30px auto;
    padding: 30px;

    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--ink);
}

.score-display span {
    font-family: var(--font-code);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
}

.score-display strong {
    color: var(--purple);

    font-family: var(--font-display);
    font-size: clamp(65px, 10vw, 110px);

    letter-spacing: -5px;
    line-height: 1;
}

#engineering-results {
    background: var(--white);
}

.small-print {
    font-size: 12px;
    color: var(--muted);
}

/* 27. FOOTER */

.course-footer {
    margin-top: 25px;
    padding: 30px 20px;

    background: var(--ink);
    color: var(--white);

    text-align: center;
    border-top: 5px solid var(--purple);
}

.course-footer p {
    margin: 7px 0;

    color: var(--white);

    font-family: var(--font-code);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* 28. TABLET RESPONSIVENESS */

@media (max-width: 1100px) {

    .lesson-list {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .hero-art {
        min-height: 320px;
    }

}

/* 29. MOBILE RESPONSIVENESS */

@media (max-width: 760px) {

    .course-layout {
        padding: 18px 16px;
    }

    .topbar {
        min-height: 75px;
        padding: 15px 20px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-label {
        font-size: 8px;
    }

    .system-status,
    .header-label {
        display: none;
    }

    .sidebar {
        padding: 18px;
    }

    .lesson-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .lesson-link {
        min-height: 65px;
        font-size: 12px;
    }

    .sidebar-footer button {
        margin-left: 0;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 32px 26px;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 60px);
        letter-spacing: -2px;
    }

    .hero-art {
        min-height: 280px;
        border-top: var(--border);
    }

    .course-meta {
        gap: 10px;
    }

    .meta-item {
        padding: 18px 12px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .meta-item strong {
        font-size: 20px;
    }

    .meta-item span {
        font-size: 10px;
    }

    .feature-grid,
    .qa-grid,
    .sequence-row {
        grid-template-columns: 1fr;
    }

    .terminal-input-row,
    .terminal-command-row {
        align-items: stretch;
    }

    #terminal-input,
    #git-command {
        width: 100%;
        flex-basis: 100%;
    }

    #code-input,
    #code-editor,
    #debug-code {
        font-size: 12px;
        padding: 18px;
    }

    #terminal-output {
        padding: 18px;
        font-size: 12px;
    }

    .lesson-heading h1 {
        font-size: 36px;
    }

}

@media (max-width: 380px) {

    .course-meta {
        grid-template-columns: 1fr;
    }

    .lesson-list {
        grid-template-columns: 1fr;
    }

    .lesson-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero h1 {
        font-size: 34px;
    }

}

/* 30. REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }

}
