/* ==========================================================
   FIXUNA MORGIA — THE PHANTOM SIGNAL
   FORENSICS.CSS

   Cyberpunk / Forensics / Wonderland
   Originele kleuren, animaties en vormgeving behouden.
   ========================================================== */


/* ==========================================================
   01. KLEUREN EN BASISINSTELLINGEN
   ========================================================== */

:root {
    color-scheme: dark;

    --cyan: #65ffe6;
    --pink: #ff4caa;
    --gold: #f8db69;

    --bg: #070914;
    --panel: #0d1225;
    --edge: #344d70;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: #edf5ff;

    font: 16px/1.6 system-ui,
          -apple-system,
          Segoe UI,
          sans-serif;
}

/* Verborgen elementen blijven verborgen */
[hidden] {
    display: none !important;
}


/* ==========================================================
   02. RADAR-ACHTERGROND EN SCANLINES
   ========================================================== */

#radar {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -2;
    opacity: 0.48;

    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 5;
    opacity: 0.12;

    background: repeating-linear-gradient(
        0deg,
        transparent 0 4px,
        #000 5px 6px
    );
}


/* ==========================================================
   03. PAGINACONTAINER
   ========================================================== */

.shell {
    width: min(1200px, 94%);
    margin: auto;
}


/* ==========================================================
   04. NAVIGATIE
   ========================================================== */

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

    gap: 12px;
    padding: 24px 0;
}

.top a {
    color: var(--cyan);

    font-size: 0.76rem;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.top a:hover {
    text-decoration: underline;
}


/* ==========================================================
   05. HEADER
   ========================================================== */

header {
    text-align: center;
    padding: 36px 10px 32px;
}

/* Gedeelde technische typografie */
.eyebrow,
.sub,
.status,
.radar-label,
.case-heading,
.evidence-heading,
small,
footer {
    font: 700 0.74rem/1.5
          ui-monospace,
          SFMono-Regular,
          Consolas,
          monospace;

    letter-spacing: 0.12em;
}

.eyebrow {
    color: var(--gold);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 7vw, 5.7rem);
    letter-spacing: 0.055em;

    color: #fff;

    text-shadow:
        0 0 15px #f36,
        0 0 45px #7826a8;

    margin: 20px 0;
    position: relative;
}


/* ==========================================================
   06. GLITCH-TITELEFFECT
   ========================================================== */

.glitch::before,
.glitch::after {
    content: attr(data-text);

    position: absolute;
    inset: 0;

    pointer-events: none;
    opacity: 0;
}

.glitch::before {
    color: var(--cyan);
    animation: glitchA 7s infinite;
}

.glitch::after {
    color: var(--pink);
    animation: glitchB 9s infinite;
}

@keyframes glitchA {

    0%,
    91%,
    95%,
    100% {
        opacity: 0;
        transform: none;
    }

    92% {
        opacity: 0.9;
        transform: translate(-4px, 1px);
        clip-path: inset(12% 0 64%);
    }

    93% {
        opacity: 0.8;
        transform: translate(4px, -2px);
        clip-path: inset(64% 0 10%);
    }

    94% {
        opacity: 0;
    }
}

@keyframes glitchB {

    0%,
    81%,
    85%,
    100% {
        opacity: 0;
    }

    82% {
        opacity: 0.85;
        transform: translate(4px, 0);
        clip-path: inset(45% 0 40%);
    }

    83% {
        opacity: 0.7;
        transform: translate(-5px, 2px);
        clip-path: inset(75% 0 5%);
    }

    84% {
        opacity: 0;
    }
}


/* ==========================================================
   07. HEADERTEKST EN STATUS
   ========================================================== */

.sub {
    color: var(--cyan);
    font-size: 1rem;
}

.intro {
    max-width: 720px;
    margin: 20px auto;

    color: #c7d5e6;
}

.status {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    color: #b8eac8;
}


/* ==========================================================
   08. DASHBOARD
   ========================================================== */

.dashboard {
    display: grid;
    grid-template-columns: 1.4fr 1fr;

    gap: 18px;
    margin-bottom: 20px;
}

/* Gedeelde paneelvormgeving */
.radar-card,
.stats,
.case-list,
.case-panel,
.vault,
.ethics {
    background: #0d1325e8;

    border: 1px solid var(--edge);
    border-radius: 14px;

    box-shadow: 0 12px 50px #0007;
}


/* ==========================================================
   09. RADARWEERGAVE
   ========================================================== */

.radar-card {
    padding: 15px;
}

.radar-display {
    position: relative;

    height: 190px;
    width: min(100%, 380px);

    margin: auto;
    overflow: hidden;

    border-radius: 50%;

    background:
        repeating-radial-gradient(
            circle at center,
            transparent 0 33px,
            #2af9c633 34px 35px
        ),
        linear-gradient(
            135deg,
            #0a2531,
            #07111f
        );

    border: 1px solid #3be3d977;

    box-shadow:
        inset 0 0 60px #2cf7e42a;
}

/* Horizontale en verticale radarlijnen */
.radar-display::before,
.radar-display::after {
    content: "";

    position: absolute;
    background: #50e9d45c;
}

.radar-display::before {
    height: 1px;

    top: 50%;
    left: 0;
    right: 0;
}

.radar-display::after {
    width: 1px;

    left: 50%;
    top: 0;
    bottom: 0;
}


/* ==========================================================
   10. RADARANIMATIE
   ========================================================== */

.sweep {
    position: absolute;
    inset: -50%;

    background: conic-gradient(
        from 0deg,
        transparent 0 290deg,
        #3affb54a 340deg,
        transparent 360deg
    );

    animation: spin 6s linear infinite;
}

.blip {
    position: absolute;

    width: 8px;
    height: 8px;

    background: #ff638e;
    border-radius: 50%;

    box-shadow: 0 0 20px #ff426d;
}

.b1 {
    left: 31%;
    top: 33%;
}

.b2 {
    left: 70%;
    top: 61%;

    animation: pulse 2s infinite;
}

.radar-label {
    text-align: center;
    color: var(--cyan);

    padding: 8px;
}


/* ==========================================================
   11. DASHBOARDSTATISTIEKEN
   ========================================================== */

.stats {
    display: grid;
    gap: 10px;

    padding: 20px;
}

.stats > div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    border-bottom: 1px solid #33425c;
    padding-bottom: 9px;
}

.stats strong {
    color: var(--gold);

    font: 700 1.1rem
          ui-monospace,
          monospace;
}

.stats small {
    color: #a9bed4;
}


/* ==========================================================
   12. ONDERZOEKSWERKPLEK
   ========================================================== */

.workspace {
    display: grid;

    grid-template-columns:
        245px minmax(0, 1fr);

    gap: 18px;
}


/* ==========================================================
   13. DOSSIERLIJST
   ========================================================== */

.case-list {
    padding: 16px;
    align-self: start;
}

.case-list h2 {
    color: var(--cyan);
    font-size: 1rem;
}

.case-buttons {
    display: grid;
    gap: 6px;

    margin-bottom: 18px;
}


/* ==========================================================
   14. DOSSIERKNOPPEN
   ========================================================== */

.case-button {
    display: flex;
    align-items: center;

    text-align: left;
    gap: 8px;

    font: 600 0.78rem
          ui-monospace,
          monospace;

    padding: 10px;

    background: #101a30;
    border: 1px solid #31435d;

    color: #e5eaf8;

    border-radius: 7px;
    cursor: pointer;
}

.case-button.active {
    border-color: var(--cyan);

    box-shadow:
        0 0 10px #32e8c84b;
}

.case-button.done {
    color: #86ffc6;
}


/* ==========================================================
   15. ACTIEF DOSSIER
   ========================================================== */

.case-panel {
    padding: clamp(16px, 3vw, 30px);
    min-width: 0;
}

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

    gap: 10px;

    color: var(--cyan);
}

.classify {
    color: var(--gold);
}

.case-panel h2 {
    color: #fff;

    font-size: clamp(
        1.4rem,
        3vw,
        2rem
    );
}

#caseStory {
    color: #cfdaeb;
}


/* ==========================================================
   16. EVIDENCE VIEWER
   ========================================================== */

.evidence-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;
    margin-top: 24px;

    color: var(--pink);
}

pre {
    margin: 8px 0 18px;

    white-space: pre;
    overflow: auto;

    background: #02060e;

    border: 1px solid #2c5261;
    border-radius: 9px;

    padding: 20px;

    color: #8afbdc;

    line-height: 1.6;
    font-size: 0.82rem;

    min-height: 140px;
}


/* ==========================================================
   17. BASH FIELD NOTES
   ========================================================== */

.tools {
    border-left: 3px solid var(--gold);

    padding: 12px 18px;
    background: #1d1a2b;
}

.tools h3 {
    margin: 0;

    color: var(--gold);
    font-size: 0.9rem;
}

.tools p {
    margin: 10px 0;
}

.tools code {
    display: block;
    overflow-wrap: anywhere;

    color: var(--cyan);
    font-size: 0.9rem;
}

.caution {
    color: #b7bfd0;
    font-size: 0.8rem;
}


/* ==========================================================
   18. ONDERZOEKSVRAAG
   ========================================================== */

.question {
    margin-top: 24px;
}

.question h3 {
    color: var(--pink);
}


/* ==========================================================
   19. ANTWOORDFORMULIER
   ========================================================== */

label {
    display: block;

    font: 700 0.78rem
          ui-monospace,
          monospace;

    color: var(--cyan);

    margin-bottom: 7px;
}

form {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    min-width: 0;

    background: #030914;

    border: 1px solid #55778e;
    border-radius: 7px;

    padding: 12px;

    color: white;

    font: 1rem
          ui-monospace,
          monospace;
}


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

button {
    border: 1px solid #ff70c2;

    background: #a5216d;
    color: white;

    padding: 11px 16px;
    border-radius: 7px;

    font-weight: 700;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.2);
}

/* Toetsenbordfocus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
pre:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.secondary,
.mini {
    background: #13213b;
    border-color: #3c7487;

    color: var(--cyan);
}

.mini {
    font-size: 0.72rem;
    padding: 6px 9px;
}


/* ==========================================================
   21. HINTS EN NAVIGATIE
   ========================================================== */

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

    gap: 10px;
    margin-top: 12px;
}

#feedback {
    min-height: 30px;
    padding-top: 10px;

    font-weight: 700;
}

.good {
    color: #79ffc2;
}

.bad {
    color: #ff8b9c;
}

#hint {
    background: #251c35;

    border: 1px dashed #b16dcf;
    border-radius: 8px;

    padding: 12px;

    color: #ffda9c;
}


/* ==========================================================
   22. GEHEIM ARCHIEF
   ========================================================== */

.vault,
.ethics {
    text-align: center;

    padding: 30px;
    margin-top: 20px;
}

.vault {
    border-color: var(--gold);

    box-shadow:
        0 0 60px #e8a94c27;
}

.vault h2 {
    color: var(--gold);
}

.vault-icon {
    font-size: 3rem;
    color: var(--cyan);
}

.vault-code {
    color: var(--cyan);

    font: 700 clamp(1rem, 3vw, 1.5rem)
          ui-monospace,
          monospace;

    overflow-wrap: anywhere;
}


/* ==========================================================
   23. ETHIEK EN VEILIGHEID
   ========================================================== */

.ethics h2 {
    color: var(--cyan);
}

.ethics p {
    max-width: 800px;
    margin: auto;

    color: #c4d4e3;
}


/* ==========================================================
   24. FOOTER
   ========================================================== */

footer {
    text-align: center;

    color: #7d98ae;
    padding: 38px 0;
}


/* ==========================================================
   25. RADAR KEYFRAMES
   ========================================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    50% {
        opacity: 0.2;
        transform: scale(0.6);
    }
}


/* ==========================================================
   26. RESPONSIVE DESIGN
   ========================================================== */

@media (max-width: 760px) {

    .dashboard,
    .workspace {
        grid-template-columns: 1fr;
    }

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

    form {
        flex-direction: column;
    }

    .top {
        justify-content: center;
    }

    .radar-display {
        height: 160px;
    }
}


/* ==========================================================
   27. VERMINDERDE BEWEGING
   ========================================================== */

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

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


/* ==========================================================
   EINDE FORENSICS.CSS
   ========================================================== */
