/* ==========================================================
   FIXUNA MORGIA — SCRIPT DEBUGGER
   DEBUG://THE_BROKEN_SHELL

   Bestand: scriptdebugger.css

   Thema:
   - Donkere cyberpunkachtergrond
   - Paarse en roze neonkleuren
   - Cyaan terminalaccenten
   - Glitch-animatie
   - Responsive Bash-debuggingwerkbank

   Originele vormgeving behouden.
   ========================================================== */


/* ==========================================================
   01. ALGEMENE INSTELLINGEN
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;

    background: #05020d;
    color: #f8f2ff;

    font: 16px/1.6
          ui-monospace,
          SFMono-Regular,
          Consolas,
          monospace;
}

/*
 * Elementen met het HTML-attribuut hidden
 * blijven verborgen, ook wanneer een andere
 * CSS-regel een display-waarde instelt.
 */

[hidden] {
    display: none !important;
}


/* ==========================================================
   02. GEANIMEERDE ACHTERGROND
   ========================================================== */

#background {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: -1;
    opacity: 0.55;
}


/* ==========================================================
   03. HEADER
   ========================================================== */

header {
    text-align: center;

    padding: 36px 14px 28px;

    background: #10081de8;

    border-bottom: 2px solid #a34cff;
}


/* ==========================================================
   04. TITELS
   ========================================================== */

h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);

    color: #fa6cc9;

    letter-spacing: 0.025em;

    text-shadow:
        2px 0 #00ffe0,
        -2px 0 #7b36ff;

    overflow-wrap: anywhere;

    animation: glitch 5.5s infinite;
}

h2 {
    color: #00ffe0;
}

h3 {
    color: #ffe76b;
}


/* ==========================================================
   05. EYEBROW / TECHNISCHE BOVENTEKST
   ========================================================== */

.eyebrow {
    color: #00ffdc;

    font-size: 0.8rem;
    letter-spacing: 0.12em;
}


/* ==========================================================
   06. NAVIGATIE
   ========================================================== */

nav a {
    display: inline-block;

    color: #b9ffec;

    margin: 5px 12px;
}


/* ==========================================================
   07. TOETSENBORDTOEGANKELIJKHEID
   ========================================================== */

/*
 * Duidelijke focusmarkering voor gebruikers
 * die met het toetsenbord navigeren.
 */

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline: 3px solid #fff36b;
    outline-offset: 3px;
}


/* ==========================================================
   08. HOOFDCONTAINER
   ========================================================== */

main {
    width: min(1080px, 94vw);

    margin: 26px auto;
}


/* ==========================================================
   09. PANELEN EN WORKBENCH
   ========================================================== */

/*
 * Gedeelde vormgeving voor de introductie,
 * debuggingwerkbank, scanner en informatiepanelen.
 */

.panel,
.workbench {
    border: 1px solid #9b52e7;
    border-radius: 14px;

    background: #0b0619f2;

    box-shadow:
        0 0 25px #982fff23;

    margin: 22px 0;
    padding: 20px;
}


/* ==========================================================
   10. DEBUGGINGWERKBANK
   ========================================================== */

.workbench {
    padding: 0;

    overflow: hidden;

    border-color: #00ffe0;
}


/* ==========================================================
   11. TERMINALTOOLBAR
   ========================================================== */

.toolbar {
    display: flex;
    justify-content: space-between;

    gap: 8px;

    background: #2a0e42;
    color: #00ffdf;

    padding: 12px 15px;

    font-size: 0.8rem;
}

/* De drie decoratieve terminalbolletjes */
.toolbar span:first-child {
    color: #ff64b4;
}

/* Label dat aangeeft dat niets wordt uitgevoerd */
.tag {
    color: #f8e76a;
}


/* ==========================================================
   12. ACTIEVE DEBUGGINGPUZZEL
   ========================================================== */

.case {
    padding: 20px;
}

.case h2 {
    color: #ffe76b;
}


/* ==========================================================
   13. VERWACHT TESTGEDRAG
   ========================================================== */

.test-label {
    font-size: 0.78rem;

    color: #ff80c8;

    letter-spacing: 0.1em;
}

.expected {
    background: #140d27;

    padding: 12px;

    border-left: 3px solid #00ffe0;
}


/* ==========================================================
   14. EDITORLABEL
   ========================================================== */

.case label {
    display: block;

    color: #00ffe0;

    font-weight: 700;

    margin: 20px 0 8px;
}


/* ==========================================================
   15. BASH CODE-EDITOR
   ========================================================== */

textarea {
    display: block;

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

    resize: vertical;

    background: #03040a;
    color: #c6ffdc;

    border: 1px solid #9056ff;
    border-radius: 9px;

    padding: 16px;

    font: 15px/1.55
          ui-monospace,
          Consolas,
          monospace;

    tab-size: 2;

    /*
     * Behoud spaties, inspringing en regeleinden.
     * Lange coderegels kunnen horizontaal scrollen.
     */
    white-space: pre;
    overflow: auto;
}


/* ==========================================================
   16. KLEINE INFORMATIETEKST
   ========================================================== */

.small {
    font-size: 0.8rem;
    color: #cbb7df;
}


/* ==========================================================
   17. ACTIEKNOPPEN — CONTAINER
   ========================================================== */

.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin: 18px 0;
}


/* ==========================================================
   18. ALGEMENE KNOPVORMGEVING
   ========================================================== */

button {
    background: #201037;
    color: #aaffea;

    border: 1px solid #00dfc9;
    border-radius: 8px;

    padding: 11px 14px;

    font: inherit;

    cursor: pointer;
}


/* ==========================================================
   19. KNOP — HOVER
   ========================================================== */

button:hover {
    background: #381855;
    color: white;
}


/* ==========================================================
   20. UITGESCHAKELDE KNOPPEN
   ========================================================== */

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ==========================================================
   21. PRIMAIRE ACTIEKNOP
   ========================================================== */

/* Bijvoorbeeld: CHECK FIX */

.primary {
    background: #173c36;

    color: #fff;

    border-color: #65ffbd;
}


/* ==========================================================
   22. FEEDBACK EN SCANRESULTATEN
   ========================================================== */

.feedback,
.scan-result {
    padding: 15px;

    border-radius: 8px;

    background: #15102a;

    border-left: 4px solid #a77cff;

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


/* ==========================================================
   23. CORRECTE OPLOSSING
   ========================================================== */

.feedback.good {
    border-color: #69ff93;
    color: #9affb1;
}


/* ==========================================================
   24. ONJUISTE OPLOSSING
   ========================================================== */

.feedback.bad {
    border-color: #ff658c;
    color: #ffd1db;
}


/* ==========================================================
   25. REFERENTIEOPLOSSING
   ========================================================== */

/*
 * Deze container wordt door JavaScript
 * zichtbaar gemaakt wanneer de bezoeker
 * op SHOW REFERENCE klikt.
 */

.reference {
    background: #0c1020;

    border: 1px solid #5d5fa2;
    border-radius: 9px;

    padding: 15px;
    margin-top: 15px;
}


/* ==========================================================
   26. CODE IN REFERENTIEOPLOSSING
   ========================================================== */

.reference pre {
    color: #b8ffcf;

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


/* ==========================================================
   27. NAVIGATIEKNOPPEN
   ========================================================== */

.nav {
    border-top: 1px solid #44315c;

    padding-top: 18px;
}


/* ==========================================================
   28. VOORTGANGSSTATISTIEKEN
   ========================================================== */

.metrics {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;

    color: #ffed8b;
}


/* ==========================================================
   29. VOORTGANGSBALK — ACHTERGROND
   ========================================================== */

.meter {
    height: 9px;

    background: #322149;

    border-radius: 99px;

    margin-top: 12px;

    overflow: hidden;
}


/* ==========================================================
   30. VOORTGANGSBALK — VULLING
   ========================================================== */

#meter-fill {
    height: 100%;
    width: 0;

    background: linear-gradient(
        90deg,
        #8b4fff,
        #00ffdd
    );

    transition: width 0.2s;
}


/* ==========================================================
   31. BASH CHECKLIST EN CODETEKST
   ========================================================== */

.checklist code,
code {
    color: #a5ffe2;
}


/* ==========================================================
   32. SAFETY SCANNER
   ========================================================== */

.scan-result {
    margin-top: 14px;
}


/* ==========================================================
   33. FOOTER
   ========================================================== */

footer {
    text-align: center;

    padding: 25px;

    color: #c4a8df;
}


/* ==========================================================
   34. GLITCH-ANIMATIE
   ========================================================== */

/*
 * Het originele glitch-effect is behouden.
 *
 * De titel verschuift kort horizontaal,
 * terwijl de neonkleuren tijdelijk veranderen.
 */

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: none;

        text-shadow:
            2px 0 #00ffe0,
            -2px 0 #7b36ff;
    }

    91% {
        transform: translateX(3px);
    }

    93% {
        transform: translateX(-2px);

        text-shadow:
            -3px 0 #ff3c96,
            3px 0 #00ffe0;
    }

    95% {
        transform: none;
    }
}


/* ==========================================================
   35. RESPONSIVE DESIGN — MOBIEL
   ========================================================== */

@media (max-width: 650px) {

    /* Minder padding rond de debuggingpuzzel */
    .case {
        padding: 13px;
    }

    /* Actieknoppen gebruiken beschikbare ruimte */
    .actions button {
        flex: 1;
    }

    /* Compactere terminaltoolbar */
    .toolbar {
        font-size: 0.65rem;
    }

    /* Kleinere codeletters op mobiele schermen */
    textarea {
        font-size: 13px;
    }
}


/* ==========================================================
   36. TOEGANKELIJKHEID — VERMINDERDE BEWEGING
   ========================================================== */

/*
 * Respecteer de browserinstelling
 * prefers-reduced-motion.
 *
 * De glitch-animatie wordt gestopt.
 * De achtergrondcanvas wordt verborgen.
 * De voortgangsbalk beweegt niet meer.
 */

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

    h1 {
        animation: none;
    }

    #background {
        display: none;
    }

    #meter-fill {
        transition: none;
    }

}


/* ==========================================================
   EINDE SCRIPTDEBUGGER.CSS
   ========================================================== */
