/**
 * Per-category visual themes for SEO landings.
 * Applied via <html data-theme="...">
 */

/* —— World / foreign (art-deco teal) —— */
html[data-theme="world"] {
  --bg: #07161a;
  --ink: #eef6f4;
  --muted: #9bb3b0;
  --accent: #3ecfbf;
  --accent2: #d6b25e;
  --panel: rgba(10, 28, 32, 0.82);
  --line: rgba(62, 207, 191, 0.28);
  --radius: 18px;
  --hero-shape: 8px;
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --title-grad: linear-gradient(180deg, #fff7e8 0%, #3ecfbf 52%, #d6b25e 100%);
  --btn-grad: linear-gradient(135deg, #57e0d0, #2aa89a);
  --btn-ink: #041416;
  --body-bg:
    radial-gradient(900px 480px at 80% -10%, rgba(62, 207, 191, 0.18), transparent 55%),
    radial-gradient(700px 420px at 10% 40%, rgba(214, 178, 94, 0.1), transparent 50%),
    linear-gradient(180deg, #041014 0%, #0a1c22 50%, #07161a 100%);
  --wallpaper-opacity: 0.34;
  --wallpaper-filter: grayscale(0.2) contrast(1.05) saturate(0.92);
  --vignette-extra: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px);
}

html[data-theme="world"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: min(380px, 82vw);
  overflow: visible;
}

html[data-theme="world"] .hero-visual img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* —— Medieval (iron + brass) —— */
html[data-theme="medieval"] {
  --bg: #0c0b0a;
  --ink: #f0e6d4;
  --muted: #a89a86;
  --accent: #c4a46a;
  --accent2: #8b7355;
  --panel: rgba(22, 18, 14, 0.88);
  --line: rgba(196, 164, 106, 0.28);
  --radius: 12px;
  --hero-shape: 4px;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --title-grad: linear-gradient(180deg, #fff6e4 0%, #e2c48a 45%, #c4a46a 100%);
  --btn-grad: linear-gradient(135deg, #e0c48a, #b8924e);
  --btn-ink: #1a140c;
  --body-bg:
    radial-gradient(1000px 560px at 50% -8%, rgba(140, 110, 60, 0.16), transparent 55%),
    radial-gradient(700px 420px at 12% 55%, rgba(80, 90, 100, 0.12), transparent 50%),
    linear-gradient(180deg, #080706 0%, #14110e 48%, #0c0b0a 100%);
  --wallpaper-opacity: 0.38;
  --wallpaper-filter: grayscale(0.35) contrast(1.08) sepia(0.12);
  --vignette-extra: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 18px);
}

html[data-theme="medieval"] .eyebrow,
html[data-theme="medieval"] .brand,
html[data-theme="medieval"] .nav {
  letter-spacing: 0.2em;
}

html[data-theme="medieval"] .hero-lead,
html[data-theme="medieval"] .section-head p,
html[data-theme="medieval"] .band p,
html[data-theme="medieval"] .faq details p {
  font-size: 1.12em;
  font-weight: 500;
}

html[data-theme="medieval"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: min(380px, 82vw);
  overflow: visible;
}

html[data-theme="medieval"] .hero-visual img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* —— Imperial Russia (wine + gold) —— */
html[data-theme="empire"] {
  --bg: #0a0c14;
  --ink: #f3ebe0;
  --muted: #b0a59a;
  --accent: #d4a84b;
  --accent2: #8e1f2f;
  --panel: rgba(16, 14, 22, 0.88);
  --line: rgba(212, 168, 75, 0.3);
  --radius: 14px;
  --hero-shape: 6px;
  --display: "Playfair Display", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --title-grad: linear-gradient(180deg, #fff4dc 0%, #d4a84b 48%, #8e1f2f 100%);
  --btn-grad: linear-gradient(135deg, #e0b85a, #b8892e);
  --btn-ink: #1a1208;
  --body-bg:
    radial-gradient(900px 500px at 70% -5%, rgba(142, 31, 47, 0.22), transparent 55%),
    radial-gradient(700px 420px at 15% 40%, rgba(212, 168, 75, 0.1), transparent 50%),
    linear-gradient(180deg, #07080f 0%, #12101a 50%, #0a0c14 100%);
  --wallpaper-opacity: 0.32;
  --wallpaper-filter: grayscale(0.15) contrast(1.06) saturate(0.85);
  --vignette-extra: radial-gradient(circle at 50% 0%, rgba(142, 31, 47, 0.08), transparent 45%);
}

html[data-theme="empire"] .display {
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[data-theme="empire"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: min(380px, 82vw);
  overflow: visible;
}

html[data-theme="empire"] .hero-visual img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* —— USSR (steel + crimson) —— */
html[data-theme="soviet"] {
  --bg: #0b1014;
  --ink: #eef2f4;
  --muted: #9aa6ad;
  --accent: #c43b3b;
  --accent2: #c9ccd0;
  --panel: rgba(14, 20, 26, 0.9);
  --line: rgba(196, 59, 59, 0.35);
  --radius: 10px;
  --hero-shape: 2px;
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  --title-grad: linear-gradient(180deg, #ffffff 0%, #e8ebee 40%, #c43b3b 100%);
  --btn-grad: linear-gradient(135deg, #d94a4a, #9e2a2a);
  --btn-ink: #fff;
  --body-bg:
    radial-gradient(900px 480px at 80% 0%, rgba(196, 59, 59, 0.16), transparent 55%),
    radial-gradient(700px 400px at 10% 50%, rgba(160, 175, 190, 0.08), transparent 50%),
    linear-gradient(180deg, #06090c 0%, #10161c 50%, #0b1014 100%);
  --wallpaper-opacity: 0.3;
  --wallpaper-filter: grayscale(0.45) contrast(1.1) saturate(0.7);
  --vignette-extra: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 20px);
}

html[data-theme="soviet"] .sub {
  letter-spacing: 0.2em;
}

html[data-theme="soviet"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: min(380px, 82vw);
  overflow: visible;
}

html[data-theme="soviet"] .hero-visual img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

html[data-theme="soviet"] .chips li {
  border-radius: 8px;
}

/* —— Bullion / investment (black + gold) —— */
html[data-theme="bullion"] {
  --bg: #07090d;
  --ink: #f3efe6;
  --muted: #b7c0d0;
  --accent: #d4b06a;
  --accent2: #a9853f;
  --panel: rgba(13, 18, 28, 0.9);
  --line: rgba(212, 176, 106, 0.28);
  --radius: 20px;
  --hero-shape: 10px;
  --display: "Syne", "Trebuchet MS", sans-serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --title-grad: linear-gradient(180deg, #fff8e8 0%, #d4b06a 50%, #8a6a2e 100%);
  --btn-grad: linear-gradient(135deg, #e0c07a, #b89240);
  --btn-ink: #14100a;
  --body-bg:
    radial-gradient(900px 500px at 75% -10%, rgba(212, 176, 106, 0.16), transparent 55%),
    radial-gradient(700px 420px at 15% 35%, rgba(40, 70, 120, 0.12), transparent 50%),
    linear-gradient(180deg, #05080f 0%, #0c1420 50%, #07090d 100%);
  --wallpaper-opacity: 0.28;
  --wallpaper-filter: grayscale(0.1) contrast(1.08) saturate(1.05);
  --vignette-extra: radial-gradient(circle at 50% 20%, rgba(212, 176, 106, 0.06), transparent 50%);
}

html[data-theme="bullion"] .hero-lead,
html[data-theme="bullion"] .section-head p {
  font-size: 1.15em;
  font-weight: 500;
}

html[data-theme="bullion"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: min(380px, 82vw);
  overflow: visible;
}

html[data-theme="bullion"] .hero-visual img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* —— Banknotes / notaphily (indigo ink) —— */
html[data-theme="notes"] {
  --bg: #0a0f1a;
  --ink: #e8eef8;
  --muted: #9aa8bc;
  --accent: #6b8cce;
  --accent2: #d2b48c;
  --panel: rgba(12, 18, 32, 0.9);
  --line: rgba(107, 140, 206, 0.32);
  --radius: 16px;
  --hero-shape: 6px;
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --title-grad: linear-gradient(180deg, #f0f4ff 0%, #6b8cce 55%, #d2b48c 100%);
  --btn-grad: linear-gradient(135deg, #7d9bd8, #4a6aaf);
  --btn-ink: #f7f9ff;
  --body-bg:
    radial-gradient(900px 500px at 20% -5%, rgba(107, 140, 206, 0.18), transparent 55%),
    radial-gradient(700px 400px at 85% 40%, rgba(210, 180, 140, 0.08), transparent 50%),
    linear-gradient(180deg, #060a12 0%, #0e1524 50%, #0a0f1a 100%);
  --wallpaper-opacity: 0.3;
  --wallpaper-filter: grayscale(0.25) contrast(1.05) sepia(0.05);
  --vignette-extra: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 16px);
}

html[data-theme="notes"] .display {
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[data-theme="notes"] .hero-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

html[data-theme="notes"] .hero-visual.has-coin-flip,
html[data-theme="notes"] .hero-visual.has-coin-flip.is-note {
  width: min(560px, 94vw);
}

/* —— Antiques cabinet (walnut + bronze) —— */
html[data-theme="cabinet"] {
  --bg: #100c09;
  --ink: #f2e8d8;
  --muted: #b5a790;
  --accent: #b8895a;
  --accent2: #6e4a2e;
  --panel: rgba(24, 18, 12, 0.9);
  --line: rgba(184, 137, 90, 0.3);
  --radius: 16px;
  --hero-shape: 8px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.52);
  --title-grad: linear-gradient(180deg, #fff4e4 0%, #d4a574 48%, #b8895a 100%);
  --btn-grad: linear-gradient(135deg, #d4a574, #a07242);
  --btn-ink: #1a120a;
  --body-bg:
    radial-gradient(1000px 520px at 50% -8%, rgba(184, 137, 90, 0.14), transparent 55%),
    radial-gradient(700px 400px at 90% 40%, rgba(80, 50, 30, 0.2), transparent 50%),
    linear-gradient(180deg, #0a0806 0%, #16100c 50%, #100c09 100%);
  --wallpaper-opacity: 0.36;
  --wallpaper-filter: grayscale(0.2) contrast(1.05) sepia(0.18) saturate(0.9);
  --vignette-extra: radial-gradient(circle at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.5) 75%);
}

html[data-theme="cabinet"] .display {
  font-weight: 700;
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: 0.06em;
}

html[data-theme="cabinet"] .hero-lead {
  font-size: 1.08em;
}

/* Shared theme hooks used by template */
html[data-theme] body,
body {
  background: var(--body-bg);
}

html[data-theme] .wallpaper {
  opacity: var(--wallpaper-opacity);
  filter: var(--wallpaper-filter);
}

html[data-theme] .vignette {
  background:
    radial-gradient(circle at 50% 28%, transparent 14%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.92) 100%),
    var(--vignette-extra, none);
  background-size: auto, 24px 24px;
}

html[data-theme] .display {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme] .btn-primary {
  color: var(--btn-ink);
  background: var(--btn-grad);
}

html[data-theme] .lang-switch a.is-active {
  color: var(--btn-ink);
  background: var(--btn-grad);
}

html[data-theme="medieval"] .nav a,
html[data-theme="empire"] .nav a,
html[data-theme="cabinet"] .nav a {
  border-radius: calc(var(--radius) - 2px);
}

html[data-theme="soviet"] .btn,
html[data-theme="soviet"] .band,
html[data-theme="soviet"] .pair,
html[data-theme="soviet"] .faq details {
  border-radius: var(--radius);
}
