/*
blacklisted.work — Terminal Cyber Theme
Color scheme (high contrast / old-terminal feel):
- Orange (highlight 1): #de5c00
- Deep red/purple (highlight 2): #4f0303
- Green (primary text): #00ff00
- Gray (page background): #484848
- Dark gray (panels): #101010
- Black (deep panels): #000000
Purpose:
- Define theme tokens (variables)
- Apply global skin rules (body, links, selection, focus)
- No component geometry
*/

:root {
    /* Core palette */
    --bw-orange: #de5c00;
    --bw-crimson: #4f0303;
    --bw-green: #00ff00;
    --bw-gray: #484848;
    --bw-dkgray: #101010;
    --bw-black: #000000;

    /* Global theme mapping */
    --bg: var(--bw-black);
    --panel: var(--bw-dkgray);
    --panel-2: var(--bw-black);

    --text: var(--bw-green);
    --muted: rgba(0, 255, 0, 0.68);

    --border: rgba(72, 72, 72, 0.85);
    --border-strong: rgba(222, 92, 0, 0.70);

    --link: var(--bw-green);
    --link-hover: var(--bw-orange);

    --accent: var(--bw-orange);
    --accent-2: var(--bw-crimson);

    --glow: 0 0 14px rgba(0, 255, 0, 0.14);
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.55);

    --font-body: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                 "Liberation Mono", "Courier New", monospace;

    --selection-bg: rgba(79, 3, 3, 0.9);
    --selection-fg: var(--bw-green);

    --focus: 0 0 0 2px rgba(222, 92, 0, 0.85), 0 0 0 6px rgba(0, 0, 0, 0.85);

    /* Inline emphasis tokens */
    --h4-ink: #111;
    --h4-bg: #b7ffb7;

    --h5-ink: #111;
    --h5-bg: #9ad7ff;

    /* Code surface tokens */
    --code-bg: #0b0b0b;
    --code-ink: #e6e6e6;
    --code-border: #2a2a2a;
}

/* Global skin */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    text-rendering: geometricPrecision;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-fg);
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--link-hover); }

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 10px;
}

/* ============================
   Headings + Emphasis
   ============================ */

h1, h2, h3{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    color: var(--bw-green);
    margin: 0.2em 0 0.35em 0;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(0,255,0,0.15);
}

h1{ font-size: clamp(1.8rem, 2.4vw, 2.4rem); }
h2{ font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
h3{ font-size: clamp(1.1rem, 1.5vw, 1.5rem); }

/*
  h4/h5 as inline emphasis.
  Use class="block" if you want them to behave as normal headings.
*/
h4, h5{
    display: inline;
    font-family: inherit;
    font-weight: 700;
    padding: 0.08em 0.45em;
    border-radius: 6px;
    line-height: 1.6;
    white-space: normal;
}

h4{
    color: var(--h4-ink);
    background: var(--h4-bg);
}

h5{
    color: var(--h5-ink);
    background: var(--h5-bg);
}

h4.block, h5.block{
    display: block;
    margin: 0.8em 0 0.35em 0;
}

/* ============================
   Code styling (inline + blocks)
   ============================ */

code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.1em 0.35em;
    border-radius: 6px;
}

.code-card{
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0;
}

.code-card .code-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--code-border);
    background: rgba(255,255,255,0.03);
}

.code-card .code-title{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #ddd;
    font-size: 0.95rem;
}

.code-card .copy-btn{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    background: var(--bw-green);
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

.code-card .copy-btn:active{
    transform: translateY(1px);
}

.code-card pre{
    margin: 0;
    padding: 12px;
    overflow: auto;
    color: var(--code-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.35;
}

.code-card pre code{
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}
