/* Per-product themes. Each product page sets <body data-theme="…"> and takes on
   that product's own colours, type and feel. Loaded after site.css. */

/* ---------- 3D wireframe cube (3D Professional art) ---------- */
.stage { perspective: 900px; display: grid; place-items: center; width: 100%; height: 100%; min-height: 300px;
  background:
    linear-gradient(rgba(0,170,221,.14) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(0,170,221,.14) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 50% 45%, #2d2d30, #1a1a1c 70%); }
.cube { --s: clamp(120px, 17vw, 190px); width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; animation: spin 16s linear infinite; }
.cube i { position: absolute; inset: 0; border: 2px solid #00aadd; background: rgba(0,170,221,.07); box-shadow: inset 0 0 40px rgba(102,136,255,.25); }
.cube i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, transparent calc(50% - 1px), rgba(0,170,221,.55) calc(50% - 1px), rgba(0,170,221,.55) calc(50% + 1px), transparent calc(50% + 1px)); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

/* ---------- What's On TV: neon sign on charcoal ---------- */
[data-theme="whatson"] {
  --bg: #16161b; --bg-2: #1c1c22; --panel: #202027; --line: rgba(255,255,255,.1);
  --text: #f1f6fb; --muted: #a0a3ad;
  --accent: #35c5f4; --accent-2: #ff9a1f; --on-accent: #08131a; --glow: rgba(53,197,244,.38);
  --font-display: "Inter", system-ui, sans-serif; --radius: 18px;
  --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
[data-theme="whatson"] .p-hero h1 { letter-spacing: -0.04em; text-transform: none; text-shadow: 0 0 18px rgba(53,197,244,.55), 0 0 60px rgba(53,197,244,.35); }
[data-theme="whatson"] .p-hero h1 .hot { color: var(--accent-2); text-shadow: 0 0 18px rgba(255,154,31,.6), 0 0 60px rgba(255,154,31,.4); }
[data-theme="whatson"] .sec-head h2 { text-transform: none; letter-spacing: -0.03em; }
[data-theme="whatson"] .sec-head h2 em { color: var(--accent-2); }
[data-theme="whatson"] .feature:nth-child(3n+2) .ico { color: var(--accent-2); }
[data-theme="whatson"] .feature:nth-child(3n) .ico { color: #b06bff; }
[data-theme="whatson"] .orb.b { background: radial-gradient(circle, rgba(176,107,255,.3), transparent 62%); }
.shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.shelf span { font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.shelf span.ok { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.shelf span.soon { color: var(--muted); border-style: dashed; }

/* ---------- The Time Warrior: Commodore 64 ---------- */
[data-theme="timewarrior"] {
  --bg: #000; --bg-2: #0a0a1c; --panel: #0d0c26; --line: rgba(112,109,235,.42);
  --text: #fff; --muted: #b2b2b2;
  --accent: #706deb; --accent-2: #edf171; --on-accent: #000; --glow: rgba(112,109,235,.5);
  --font-display: "Press Start 2P", "Courier New", monospace; --font-mono: "Press Start 2P", monospace; --radius: 0px;
  --font-body: "Inter", system-ui, sans-serif;
}
[data-theme="timewarrior"] img { image-rendering: pixelated; }
[data-theme="timewarrior"] h1, [data-theme="timewarrior"] h2, [data-theme="timewarrior"] h3 { letter-spacing: 0; line-height: 1.35; }
[data-theme="timewarrior"] .p-hero h1 { font-size: clamp(26px, 5vw, 66px); }
[data-theme="timewarrior"] .p-hero h1 span { animation: c64 4s steps(1) infinite; }
[data-theme="timewarrior"] .p-hero h1 span:nth-child(2n) { animation-delay: -1s; }
[data-theme="timewarrior"] .p-hero h1 span:nth-child(3n) { animation-delay: -2s; }
@keyframes c64 { 0% { color: #fff; } 14% { color: #edf171; } 28% { color: #c46c71; } 42% { color: #8e3c97; } 57% { color: #a9ff9f; } 71% { color: #706deb; } 85% { color: #75cec8; } }
[data-theme="timewarrior"] .sec-head h2 { font-size: clamp(20px, 3vw, 38px); }
[data-theme="timewarrior"] .sec-head h2 em { color: var(--accent-2); }
[data-theme="timewarrior"] .feature h3 { font-size: 14px; line-height: 1.6; }
[data-theme="timewarrior"] .kicker, [data-theme="timewarrior"] .nav-links a, [data-theme="timewarrior"] .btn, [data-theme="timewarrior"] .tag, [data-theme="timewarrior"] .brand, [data-theme="timewarrior"] .back, [data-theme="timewarrior"] .feature .ico, [data-theme="timewarrior"] figcaption, [data-theme="timewarrior"] footer, [data-theme="timewarrior"] .product-num, [data-theme="timewarrior"] .go { font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.8; }
[data-theme="timewarrior"] .btn, [data-theme="timewarrior"] .nav-links, [data-theme="timewarrior"] .nav-links a, [data-theme="timewarrior"] .tag, [data-theme="timewarrior"] .nav-toggle { border-radius: 0; }
[data-theme="timewarrior"] .btn { box-shadow: 6px 6px 0 var(--accent-2); }
[data-theme="timewarrior"] .btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--accent-2); }
[data-theme="timewarrior"] .btn.ghost { box-shadow: none; border-color: var(--accent); }
[data-theme="timewarrior"] .orb { display: none; }
[data-theme="timewarrior"] .backdrop::before { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 4px); background-size: auto; opacity: 1; mask-image: none; -webkit-mask-image: none; }
.raster { height: 34px; background: linear-gradient(#2e2c9b 0 14%, #706deb 14% 28%, #75cec8 28% 42%, #fff 42% 56%, #edf171 56% 70%, #8e5029 70% 84%, #813338 84% 100%); }
.prompt { font-family: var(--font-display); font-size: clamp(11px, 1.5vw, 16px); color: #706deb; line-height: 2; }
.prompt .cur { display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -0.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.eras { display: flex; flex-wrap: wrap; gap: 10px; }
.eras span { font-family: var(--font-display); font-size: 10.5px; padding: 12px 14px; border: 2px solid var(--accent); line-height: 1.4; }
.eras span:nth-child(4n+1) { border-color: #edf171; color: #edf171; }
.eras span:nth-child(4n+2) { border-color: #75cec8; color: #75cec8; }
.eras span:nth-child(4n+3) { border-color: #c46c71; color: #c46c71; }
.eras span:nth-child(4n) { border-color: #a9ff9f; color: #a9ff9f; }

/* ---------- 3D Professional: dark modelling workspace ---------- */
[data-theme="3dpro"] {
  --bg: #1e1e1e; --bg-2: #252526; --panel: #2d2d30; --line: #3f3f46;
  --text: #e8e8e8; --muted: #a8a8a8;
  --accent: #00aadd; --accent-2: #6688ff; --on-accent: #04141a; --glow: rgba(0,170,221,.32);
  --font-display: "Chakra Petch", "Segoe UI", sans-serif; --radius: 6px;
  --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
[data-theme="3dpro"] .btn, [data-theme="3dpro"] .nav-links, [data-theme="3dpro"] .nav-links a, [data-theme="3dpro"] .tag, [data-theme="3dpro"] .nav-toggle { border-radius: 4px; }
[data-theme="3dpro"] .p-hero h1 { letter-spacing: -0.01em; }
[data-theme="3dpro"] .p-hero h1 .hot { background: linear-gradient(90deg, #00aadd, #6688ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="3dpro"] .backdrop::before { background-size: 34px 34px; opacity: .35; }
[data-theme="3dpro"] .feature { border-left: 3px solid var(--accent); }
[data-theme="3dpro"] .feature:nth-child(even) { border-left-color: var(--accent-2); }
[data-theme="3dpro"] .p-hero .art { aspect-ratio: 4 / 3; }
.axes { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12.5px; margin-top: 26px; color: var(--muted); }
.axes .x { color: #ff6666; } .axes .y { color: #66ff66; } .axes .z { color: #6688ff; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { font-family: var(--font-mono); font-size: 13px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.formats span::before { content: "."; color: var(--accent); }

/* ---------- VIC-X: the C64 boot screen, with a 16-bit palette breaking through ---------- */
[data-theme="vicx"] {
  --bg: #1d1c66; --bg-2: #24238a; --panel: #2e2c9b; --line: rgba(112,109,235,.7);
  --text: #fff; --muted: #c9c8f5;
  --accent: #fad440; --accent-2: #78b2ee; --on-accent: #1d1c66; --glow: rgba(250,212,64,.3);
  --font-display: "Pixelify Sans", "Courier New", monospace; --radius: 10px;
  --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
[data-theme="vicx"] body, body[data-theme="vicx"] { box-shadow: inset 0 0 0 14px #706deb; }
[data-theme="vicx"] img { image-rendering: pixelated; }
[data-theme="vicx"] h1, [data-theme="vicx"] h2, [data-theme="vicx"] h3 { letter-spacing: 0; }
[data-theme="vicx"] .p-hero h1 { font-size: clamp(64px, 13vw, 190px); line-height: .9; }
[data-theme="vicx"] .p-hero h1 .hot { background: linear-gradient(#fad440 0 34%, #f08a3c 34% 67%, #d64034 67%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="vicx"] .sec-head h2 em { color: var(--accent); }
[data-theme="vicx"] .orb { display: none; }
[data-theme="vicx"] .backdrop::before { opacity: .3; background-size: 32px 32px; }
[data-theme="vicx"] .nav { background: #1d1c66; }
[data-theme="vicx"] .btn, [data-theme="vicx"] .nav-links, [data-theme="vicx"] .nav-links a, [data-theme="vicx"] .tag, [data-theme="vicx"] .nav-toggle { border-radius: 6px; }
[data-theme="vicx"] .feature { background: #24238a; }
[data-theme="vicx"] .feature .ico { font-size: 30px; font-family: var(--font-display); letter-spacing: 0; color: var(--accent); line-height: 1; }
[data-theme="vicx"] .p-hero .art, [data-theme="vicx"] .shots figure { border: 3px solid #706deb; background: #000; }
.boot { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; color: #a9a7ff; text-transform: uppercase; }
.boot b { color: #fff; font-weight: 400; }
.boot .cur { display: inline-block; width: .7em; height: 1.1em; background: #a9a7ff; vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
.unlock { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--font-mono); }
.unlock code { font-family: var(--font-display); font-size: clamp(26px, 4vw, 48px); background: #000; color: var(--accent); padding: 8px 18px; border: 3px solid #706deb; border-radius: 6px; }
.unlock span { color: var(--muted); font-size: 14px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.specs div { border-top: 3px solid var(--accent); padding-top: 14px; }
.specs b { display: block; font-family: var(--font-display); font-size: clamp(38px, 5vw, 68px); line-height: 1; }
.specs span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .specs { grid-template-columns: 1fr 1fr; } [data-theme="vicx"] body, body[data-theme="vicx"] { box-shadow: inset 0 0 0 6px #706deb; } }
