/* ============================================================
   nsi42.nsi.xyz — thèmes (ères)
   Chaque thème ne définit que des variables ; le layout est dans main.css.
   ============================================================ */

/* Défaut = 80s (CRT vert historique) */
:root {
    --bg: #020604;
    --fg: #33ff66;
    --fg-dim: #1e9e44;
    --accent: #ff3ea5;
    --accent-fg: #0b0010;
    --accent-glow: rgba(255, 62, 165, .35);

    --screen-bg: #000;
    --screen-inset: rgba(51, 255, 102, .06);
    --screen-pad: clamp(12px, 2.2vw, 26px);
    --screen-radius: 12px;

    --cadre-bg: linear-gradient(180deg, #1b1b1b, #0b0b0b);
    --cadre-border: 1px solid #2c2c2c;
    --cadre-radius: 22px;
    --cadre-shadow: 0 0 0 8px #080808, 0 24px 70px rgba(0, 0, 0, .85), inset 0 0 50px rgba(0, 0, 0, .8);
    --cadre-pad: clamp(10px, 1.8vw, 24px);

    --font: "Lucida Console", "Courier New", monospace;
    --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --letter-spacing: 0;

    --glow: 0 0 6px rgba(51, 255, 102, .45), 0 0 1px rgba(51, 255, 102, .9);
    --scanlines: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .25) 2px 4px);
    --scan-opacity: .45;
    --scan-blend: multiply;

    --ui-fg: #b7ffc4;
    --ui-muted: #2fbf5a;
    --btn-bg: rgba(51, 255, 102, .07);
    --btn-border: rgba(51, 255, 102, .28);
    --btn-hover: rgba(51, 255, 102, .14);
    --btn-fg: #b7ffc4;
    --menu-bg: #08120b;
    --menu-border: rgba(51, 255, 102, .28);

    --led: #33ff66;
    --led-display: block;
}

/* 1960s — Mainframe */
:root[data-theme="60s"] {
    --bg: #040a06;
    --fg: #b7ffab;
    --fg-dim: #4f9a4a;
    --accent: #d9ffcf;
    --accent-fg: #041006;
    --accent-glow: rgba(183, 255, 171, .25);

    --screen-bg: #020604;
    --screen-inset: rgba(183, 255, 171, .06);
    --screen-pad: clamp(12px, 2.4vw, 28px);
    --screen-radius: 4px;

    --cadre-bg: linear-gradient(#3a423a, #1d241d);
    --cadre-border: 1px solid #59635a;
    --cadre-radius: 6px;
    --cadre-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    --cadre-pad: clamp(10px, 1.6vw, 20px);

    --font: "Courier New", Courier, monospace;
    --ui-font: "Courier New", Courier, monospace;
    --letter-spacing: .02em;

    --glow: 0 0 2px rgba(183, 255, 171, .4);
    --scanlines: none;
    --scan-opacity: 0;
    --scan-blend: normal;

    --ui-fg: #cfe8c7;
    --ui-muted: #7fae78;
    --btn-bg: rgba(183, 255, 171, .06);
    --btn-border: rgba(183, 255, 171, .22);
    --btn-hover: rgba(183, 255, 171, .12);
    --btn-fg: #cfe8c7;
    --menu-bg: #0a140c;
    --menu-border: rgba(183, 255, 171, .25);

    --led: #b7ffab;
    --led-display: block;
}

/* 1970s — Ambre */
:root[data-theme="70s"] {
    --bg: #0b0700;
    --fg: #ffb000;
    --fg-dim: #a86f00;
    --accent: #ffd27a;
    --accent-fg: #1a0f00;
    --accent-glow: rgba(255, 176, 0, .3);

    --screen-bg: #0a0600;
    --screen-inset: rgba(255, 176, 0, .08);
    --screen-pad: clamp(12px, 2.2vw, 26px);
    --screen-radius: 14px;

    --cadre-bg: linear-gradient(#2a1c0a, #120b03);
    --cadre-border: 1px solid #5a3d12;
    --cadre-radius: 20px;
    --cadre-shadow: 0 20px 50px rgba(0, 0, 0, .7), inset 0 0 30px rgba(255, 176, 0, .05);
    --cadre-pad: clamp(10px, 1.8vw, 22px);

    --font: "Courier New", Courier, monospace;
    --ui-font: "Courier New", Courier, monospace;
    --letter-spacing: .01em;

    --glow: 0 0 6px rgba(255, 176, 0, .55), 0 0 1px rgba(255, 210, 122, .9);
    --scanlines: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .22) 2px 4px);
    --scan-opacity: .35;
    --scan-blend: multiply;

    --ui-fg: #ffd27a;
    --ui-muted: #b07a1a;
    --btn-bg: rgba(255, 176, 0, .06);
    --btn-border: rgba(255, 176, 0, .25);
    --btn-hover: rgba(255, 176, 0, .13);
    --btn-fg: #ffd27a;
    --menu-bg: #140d02;
    --menu-border: rgba(255, 176, 0, .25);

    --led: #ffb000;
    --led-display: block;
}

/* 1990s — VGA / DOS */
:root[data-theme="90s"] {
    --bg: #0000aa;
    --fg: #ffffff;
    --fg-dim: #a8a8ff;
    --accent: #ffff55;
    --accent-fg: #00006b;
    --accent-glow: rgba(255, 255, 85, .25);

    --screen-bg: #0000aa;
    --screen-inset: rgba(0, 0, 0, .2);
    --screen-pad: 8px;
    --screen-radius: 0;

    --cadre-bg: linear-gradient(#c0c0c0, #808080);
    --cadre-border: 2px solid #808080;
    --cadre-radius: 0;
    --cadre-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #000, 0 16px 40px rgba(0, 0, 0, .5);
    --cadre-pad: 4px;

    --font: Consolas, "Lucida Console", monospace;
    --ui-font: "Segoe UI", Tahoma, sans-serif;
    --letter-spacing: 0;

    --glow: none;
    --scanlines: none;
    --scan-opacity: 0;
    --scan-blend: normal;

    --ui-fg: #ffffff;
    --ui-muted: #c9c9ff;
    --btn-bg: #c0c0c0;
    --btn-border: #808080;
    --btn-hover: #d0d0d0;
    --btn-fg: #000000;
    --menu-bg: #c0c0c0;
    --menu-border: #808080;

    --led: #00ff00;
    --led-display: block;
}

/* 2000s — Y2K glossy */
:root[data-theme="00s"] {
    --bg: #081426;
    --fg: #d7e6f5;
    --fg-dim: #6f8fb2;
    --accent: #59a7ff;
    --accent-fg: #04101f;
    --accent-glow: rgba(89, 167, 255, .35);

    --screen-bg: radial-gradient(circle at 30% 0%, #0e2340 0%, #071322 60%, #050d18 100%);
    --screen-inset: rgba(89, 167, 255, .12);
    --screen-pad: clamp(12px, 2.2vw, 26px);
    --screen-radius: 18px;

    --cadre-bg: linear-gradient(180deg, #e6eef7 0%, #b9c9da 50%, #8fa5bb 100%);
    --cadre-border: 1px solid rgba(255, 255, 255, .8);
    --cadre-radius: 26px;
    --cadre-shadow: 0 0 0 1px rgba(0, 0, 0, .22), 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, .25);
    --cadre-pad: clamp(10px, 1.8vw, 22px);

    --font: Consolas, "Lucida Console", monospace;
    --ui-font: "Segoe UI", system-ui, sans-serif;
    --letter-spacing: 0;

    --glow: 0 0 8px rgba(89, 167, 255, .35);
    --scanlines: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%);
    --scan-opacity: 1;
    --scan-blend: screen;

    --ui-fg: #eaf3ff;
    --ui-muted: #8fb0d6;
    --btn-bg: rgba(255, 255, 255, .12);
    --btn-border: rgba(255, 255, 255, .35);
    --btn-hover: rgba(255, 255, 255, .2);
    --btn-fg: #eaf3ff;
    --menu-bg: #10213a;
    --menu-border: rgba(255, 255, 255, .2);

    --led: #59a7ff;
    --led-display: block;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
