/* =============================================================
   GeekPress game SKIN — geekpress-game-theme (RaidLog cyberpunk)
   -------------------------------------------------------------
   The plugin ships a structural game CSS (game-enhanced.css) that
   carries the FULL RaidLog layout + decoration, parameterised by
   an internal `--gx-*` palette. Its own :root holds a neutral
   light-grey fallback. This skin's job is to re-assert the real
   `--gx-*` palette so game pages get the cyberpunk look — once
   for the dark default, once for the `data-theme="light"` toggle.
   Shared --geekui-* palette → geekui-vars.css.
   ============================================================= */

/* ── DARK — neon RaidLog (default) ─────────────────────────────── */
body {
    --gx-bg:         #0c0e14;
    --gx-bg-card:    #12151e;
    --gx-bg-card2:   #181c28;
    --gx-accent:     #00d4c4;
    --gx-accent2:    rgba(0, 212, 196, 0.55);
    --gx-accent-dim: rgba(0, 212, 196, 0.10);
    --gx-hot:        #e040fb;
    --gx-hot2:       rgba(224, 64, 251, 0.55);
    --gx-hot-dim:    rgba(224, 64, 251, 0.14);
    --gx-text:       #e8eaf2;
    --gx-text-muted: #5c6680;
    --gx-text-dim:   #8b93ab;
    --gx-border:     #1c2235;
    --gx-border2:    #242b3d;
    --gx-danger:     #ff4560;
    --gx-wish:       #f59e0b;
    --gx-played:     #4caf50;
    --gx-star:       #e040fb;
}

/* ── LIGHT — cold "daylight terminal" ──────────────────────────── */
body[data-theme="light"] {
    --gx-bg:         #eef1f5;
    --gx-bg-card:    #ffffff;
    --gx-bg-card2:   #e6eaf0;
    --gx-accent:     #0a8f86;
    --gx-accent2:    rgba(10, 143, 134, 0.45);
    --gx-accent-dim: rgba(10, 143, 134, 0.09);
    --gx-hot:        #b020c8;
    --gx-hot2:       rgba(176, 32, 200, 0.42);
    --gx-hot-dim:    rgba(176, 32, 200, 0.10);
    --gx-text:       #18202c;
    --gx-text-muted: #8a9099;
    --gx-text-dim:   #4a5260;
    --gx-border:     #cdd4de;
    --gx-border2:    #dde2ea;
    --gx-danger:     #d23a4f;
    --gx-wish:       #c77f0a;
    --gx-played:     #2e9e4f;
    --gx-star:       #b020c8;
}

/* page-level background — this file is enqueued only on game pages.
   --gx-bg flips with the theme toggle, so both palettes are covered. */
html,
body {
    background-color: var(--gx-bg) !important;
}

/* RaidLog display font */
#geekui-root-game {
    font-family: var(--geekui-font-base, 'Rajdhani', 'Inter', system-ui, sans-serif) !important;
}

/* ── Info-card sections — chips match their section's accent ───────
   Structural game-enhanced.css paints the PLATFORMS label + chips
   with the cyan accent and the GAMEPLAY chips with a dim grey. This
   theme wants each section colour-coded: GENRES cyan · GAMEPLAY
   magenta · PLATFORMS amber. --gx-hot and --gx-wish both flip with
   the light/dark toggle, so light mode is covered automatically.

   The chips are <a> links, so plugin style.css's
   `.geekui a { color:#619184 !important }` outranks a plain
   `.gx-chip--*` colour. The `#geekui-root-game` prefix lifts
   specificity above it so the chip TEXT follows its section. */

/* GENRES — chip text follows the cyan accent */
#geekui-root-game .gx-chip--genre { color: var(--gx-accent) !important; }

/* GAMEPLAY — magenta label + magenta chips */
#geekui-root-game .gx-chip--play {
    color: var(--gx-hot) !important;
    border-color: color-mix(in srgb, var(--gx-hot) 32%, transparent) !important;
    background: color-mix(in srgb, var(--gx-hot) 8%, transparent) !important;
}

/* PLATFORMS — amber label + amber chips */
.gx-info-label--plat { color: var(--gx-wish) !important; }
#geekui-root-game .gx-chip--plat {
    color: var(--gx-wish) !important;
    border-color: color-mix(in srgb, var(--gx-wish) 32%, transparent) !important;
    background: color-mix(in srgb, var(--gx-wish) 8%, transparent) !important;
}

/* ── Release Countdown — cyberpunk skin ─────────────────────────────
   Dark default uses the cyan/magenta neon palette; light variant
   is driven by [data-theme="light"] on <body> (the topbar toggle). */
#geekui-root-game .gx-countdown {
    background: linear-gradient(140deg,
        color-mix(in srgb, var(--gx-accent) 6%, var(--gx-bg-card)) 0%,
        color-mix(in srgb, var(--gx-hot)    5%, var(--gx-bg-card2)) 100%) padding-box,
        linear-gradient(135deg, var(--gx-accent) 0%, var(--gx-hot) 100%) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 0 24px color-mix(in srgb, var(--gx-accent) 14%, transparent),
        0 4px 14px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
/* Corner brackets — matches gx-video-card / gx-cover-wrap pattern. */
#geekui-root-game .gx-countdown::before,
#geekui-root-game .gx-countdown::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 1;
}
#geekui-root-game .gx-countdown::before {
    top: 0; left: 0;
    border-top: 2px solid var(--gx-accent);
    border-left: 2px solid var(--gx-accent);
    border-radius: 10px 0 0 0;
}
#geekui-root-game .gx-countdown::after {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--gx-hot);
    border-right: 2px solid var(--gx-hot);
    border-radius: 0 0 10px 0;
}

#geekui-root-game .gx-countdown-digit {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--gx-accent) 4%, var(--gx-bg-deep)) 0%,
        color-mix(in srgb, var(--gx-accent) 10%, var(--gx-bg-card)) 100%);
    border: 1px solid color-mix(in srgb, var(--gx-accent) 32%, transparent);
    color: var(--gx-text);
    text-shadow: 0 0 8px color-mix(in srgb, var(--gx-accent) 35%, transparent);
    box-shadow: inset 0 0 12px color-mix(in srgb, var(--gx-accent) 8%, transparent);
}
#geekui-root-game .gx-countdown-label {
    color: var(--gx-accent);
    text-shadow: 0 0 6px color-mix(in srgb, var(--gx-accent) 30%, transparent);
}
#geekui-root-game .gx-countdown-sep {
    color: var(--gx-hot);
    text-shadow: 0 0 8px color-mix(in srgb, var(--gx-hot) 40%, transparent);
}
#geekui-root-game .gx-countdown-note {
    color: var(--gx-text-dim);
    font-style: italic;
}

/* Light variant — soft daylight, no neon shadow. */
body[data-theme="light"] #geekui-root-game .gx-countdown {
    box-shadow:
        0 0 18px color-mix(in srgb, var(--gx-accent) 10%, transparent),
        0 2px 10px rgba(24, 32, 44, 0.10);
}
body[data-theme="light"] #geekui-root-game .gx-countdown-digit {
    text-shadow: none;
    box-shadow: inset 0 0 6px color-mix(in srgb, var(--gx-accent) 6%, transparent);
}
body[data-theme="light"] #geekui-root-game .gx-countdown-label {
    text-shadow: none;
}
body[data-theme="light"] #geekui-root-game .gx-countdown-sep {
    text-shadow: none;
}
