/* Site themes. Default (no data-theme or "survivor") lives in style.css :root. */

/* 2. 역병 의사 — plague doctor: night navy, parchment text, bronze */
[data-theme="plague"] {
  --bg: #0f1218; --panel: #171c25; --panel-2: #1e2430; --line: #2c3443;
  --text: #ece3cf; --muted: #a69d88; --accent: #c9a24a; --accent-ink: #1b1405;
  --warn: #b5793a; --warn-ink: #1b0f05; --danger: #d9705f; --ok: #9cc58a;
  --glow: #2a2416; --top-bg: rgba(15,18,24,.88); --chip: #2c3443;
  --sun: #e09080; --sat: #8fb0e0; --tag-line: #5a4a22; --tag-bg: #2a2416;
  --font-head: "Noto Serif KR", serif;
}

/* 3. 피의 밤 — blood night */
[data-theme="blood"] {
  --bg: #0d0a0a; --panel: #171112; --panel-2: #201718; --line: #352425;
  --text: #f0e6e6; --muted: #a89a9a; --accent: #e0313c; --accent-ink: #ffffff;
  --warn: #f08a3c; --warn-ink: #1d0d05; --danger: #ff6b6b; --ok: #8fd19e;
  --glow: #3a0d10; --top-bg: rgba(13,10,10,.88); --chip: #3a2a2b;
  --sun: #ff8a8a; --sat: #8ab4ff; --tag-line: #6b1c22; --tag-bg: #2e1013;
  --font-head: "Black Han Sans", sans-serif;
}

/* 4. 양피지 — light parchment */
[data-theme="parchment"] {
  --bg: #f4ecd8; --panel: #fbf6e9; --panel-2: #f1e7cf; --line: #dccdaa;
  --text: #2e2416; --muted: #6e5f45; --accent: #8a2d1c; --accent-ink: #fff8ea;
  --warn: #b8741a; --warn-ink: #fff8ea; --danger: #b3261e; --ok: #2e7d32;
  --glow: #e8d9b5; --top-bg: rgba(244,236,216,.9); --chip: #e3d6b8;
  --sun: #b3261e; --sat: #1f5fa8; --tag-line: #c9a98a; --tag-bg: #f3e2d6;
  --ok-bg: #e3f0dc; --err-bg: #f7dcd6; --scheme: light;
  --font-head: "Noto Serif KR", serif;
}
[data-theme="parchment"] .rar.ur { color: #9a6b00; border-color: #d8b860; }
[data-theme="parchment"] .rar.ssr { color: #6a3fb5; border-color: #b9a2e0; }
[data-theme="parchment"] .hero-img img { box-shadow: 0 10px 30px rgba(80,60,20,.25); }

/* 5. FREE 지도 — the guild emblem's green map, white pins, bold black */
[data-theme="freemap"] {
  --bg: #234d2c; --panel: #2b5a34; --panel-2: #326640; --line: #457a52;
  --text: #ffffff; --muted: #cfe3d2; --accent: #ffffff; --accent-ink: #111111;
  --warn: #111111; --warn-ink: #ffffff; --danger: #ffb4a8; --ok: #d4f5c9;
  --glow: #2f6a3b; --top-bg: rgba(35,77,44,.9); --chip: #1a3a21;
  --sun: #ffc2b8; --sat: #c4dcff; --tag-line: rgba(255,255,255,.45); --tag-bg: rgba(0,0,0,.25);
  --ok-bg: #1a3a21; --err-bg: #4a2420;
  --font-head: "Black Han Sans", sans-serif;
}
[data-theme="freemap"] .tag { background: #111; color: #fff; }

/* 6. 네온 길드 — neon purple, cyan, pink */
[data-theme="neon"] {
  --bg: #140a24; --panel: #1d1033; --panel-2: #26163f; --line: #3a2560;
  --text: #f3eaff; --muted: #b09ccc; --accent: #2ee6d6; --accent-ink: #06201e;
  --warn: #ff4fa3; --warn-ink: #2a0516; --danger: #ff7a9a; --ok: #7af0b0;
  --glow: #3a1670; --top-bg: rgba(20,10,36,.88); --chip: #3a2560;
  --sun: #ff7aa8; --sat: #7ab8ff; --tag-line: #1f7f78; --tag-bg: #0f2a33;
  --font-head: "Do Hyeon", sans-serif;
}
[data-theme="neon"] .btn:not(.ghost):not(.kakao) { box-shadow: 0 0 14px rgba(46,230,214,.45); }

/* Theme preview switcher (local preview only) */
.theme-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px);
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px); padding: 8px; border-radius: 12px; }
.theme-bar button { font: inherit; font-size: .8rem; border: 1px solid #555; background: #222; color: #eee;
  border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.theme-bar button.on { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
