/*
 * FansNetwork "Companion" site kit — shared by the static pages (/lovers/, /creator/<slug>/,
 * /ranking/, /creators/real/, /creators/virtual/, /shop/). Same look as the Angular home page
 * (apps/10-companion/landing-app/src/app/app.component.scss): warm black, rose-pink pills,
 * gold crowns, serif headlines, script accents. Tina 2026-10-05 8-page design.
 *
 * Usage: <link rel="stylesheet" href="/assets/site/site.css"> + <script src="/assets/site/site.js"></script> in <head>,
 * then <header data-site-nav="lovers"></header> … <footer data-site-footer></footer>.
 */
:root {
  color-scheme: dark;
  --bg: #0c0809;
  --bg-2: #140d10;
  --card: rgba(255, 236, 240, 0.04);
  --line: rgba(240, 160, 185, 0.22);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f7ecee;
  --ink-2: #d4bfc4;
  --ink-3: #9a8287;
  --rose: #f29bb6;
  --gold: #f2c88f;
  --silver: #e2dde6;
  --bronze: #e6a57c;
  --pink-1: #ff79a8;
  --pink-2: #e2457f;
  --violet-1: #9d8cff;
  --violet-2: #6c5be0;
  --ui: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --latin: "Cormorant Garamond", Georgia, serif;
}
:root:lang(en) { --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif; --serif: Georgia, "Times New Roman", "Noto Serif TC", serif; }
:root:lang(ja) { --ui: "Noto Sans JP", "Noto Sans TC", sans-serif; }
:root:lang(ko) { --ui: "Noto Sans KR", "Noto Sans TC", sans-serif; }
:root:lang(hi) { --ui: "Noto Sans Devanagari", "Noto Sans TC", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0; color: var(--rose); font: 500 0.78rem/1.4 var(--latin), var(--ui); letter-spacing: 0.24em; text-transform: uppercase; }
.script { font-family: var(--script); font-weight: 400; color: var(--pink-1); text-shadow: 0 0 16px rgba(255, 121, 168, 0.55); }
.h-serif { font-family: var(--serif); font-weight: 700; letter-spacing: 0.05em; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 1.8rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-pink { color: #fff; background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); box-shadow: 0 0 0 1px rgba(255, 170, 200, 0.35) inset, 0 10px 28px rgba(226, 69, 127, 0.42); }
.btn-violet { color: #fff; background: linear-gradient(135deg, var(--violet-1), var(--violet-2)); box-shadow: 0 0 0 1px rgba(200, 190, 255, 0.35) inset, 0 10px 28px rgba(108, 91, 224, 0.42); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(0, 0, 0, 0.35); }
.btn-ghost:hover { border-color: var(--rose); }
.btn-outline { color: var(--ink); border: 1px solid rgba(255, 121, 168, 0.55); background: transparent; }
.btn-sm { min-height: 38px; padding: 0 1.2rem; font-size: 0.88rem; }
.btn-xs { min-height: 30px; padding: 0 0.9rem; font-size: 0.8rem; }

/* ─── Cards / chips / tabs ─── */
.card { position: relative; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }
.card-glow { border-color: rgba(255, 121, 168, 0.55); box-shadow: 0 0 0 1px rgba(255, 120, 165, 0.12) inset, 0 0 32px rgba(226, 69, 127, 0.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 0.85rem; }
.chip[aria-pressed="true"], .chip.on { color: #fff; border-color: var(--pink-1); background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.tabs button, .tabs a { min-width: 88px; height: 34px; padding: 0 1rem; border-radius: 999px; color: var(--ink-2); font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }
.tabs [aria-selected="true"] { color: #fff; border: 1px solid var(--pink-1); background: rgba(226, 69, 127, 0.2); box-shadow: 0 0 14px rgba(255, 121, 168, 0.35); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.badge-live { color: #fff; background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); }
.badge-soft { color: var(--rose); border: 1px solid rgba(255, 121, 168, 0.45); background: rgba(0, 0, 0, 0.45); }
.icon-tile { display: grid; place-items: center; gap: 6px; padding: 16px 8px; text-align: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); transition: border-color 0.2s; }
.icon-tile:hover { border-color: rgba(255, 121, 168, 0.6); }
.icon-tile svg { width: 30px; height: 30px; fill: none; stroke: var(--pink-1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 121, 168, 0.5)); }
.icon-tile b { font-size: 0.92rem; }
.icon-tile small { color: var(--ink-3); font-size: 0.75rem; }

.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.sec-head h2 { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); letter-spacing: 0.06em; }
.sec-head .eyebrow { margin-top: 0.3rem; color: var(--ink-3); }
.crown { width: 38px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(242, 200, 143, 0.5)); }

/* Page hero shared by the sub-pages (title + sub on a dimmed photo) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 48px; }
.page-hero > img.bg { position: absolute; inset: 0 0 0 auto; z-index: -2; width: min(62%, 820px); height: 100%; object-fit: cover; object-position: 50% 20%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, rgba(12, 8, 9, 0.7) 52%, rgba(12, 8, 9, 0.1) 78%, rgba(12, 8, 9, 0.55) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%), radial-gradient(circle at 15% 30%, rgba(226, 69, 127, 0.16), transparent 42%); }
.page-hero h1 { margin: 0.5rem 0 0.6rem; font: 700 clamp(2.1rem, 4.6vw, 3.4rem)/1.18 var(--serif); letter-spacing: 0.05em; }
.page-hero .lead { max-width: 560px; margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.85; }

/* ─── Nav (rendered by site.js) ─── */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(12, 8, 9, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.site-nav-inner { display: flex; align-items: center; gap: 1.6rem; width: min(1320px, calc(100% - 40px)); height: 66px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.site-logo svg { width: 32px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(242, 200, 143, 0.45)); }
.site-logo span { display: flex; flex-direction: column; line-height: 1; }
.site-logo b { font: 700 1.25rem/1 var(--latin); letter-spacing: 0.04em; }
.site-logo small { margin-top: 3px; color: var(--ink-3); font-size: 0.6rem; letter-spacing: 0.08em; }
.site-links { display: flex; gap: 1.7rem; margin: 0 auto; }
.site-links a { position: relative; padding: 22px 0; color: var(--ink-2); font-size: 0.92rem; transition: color 0.2s; white-space: nowrap; }
.site-links a:hover, .site-links a[aria-current="page"] { color: #fff; }
.site-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--pink-1), var(--pink-2)); box-shadow: 0 0 10px var(--pink-1); }
.site-right { display: flex; align-items: center; gap: 0.7rem; }
.site-lang { display: flex; align-items: center; gap: 0.35rem; height: 38px; padding: 0 0.85rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; }
.site-lang svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font-size: 0.86rem; cursor: pointer; }
.site-lang option { color: #111; }
.site-lang-menu { display: none; }
.site-burger { display: none; flex-direction: column; gap: 5px; padding: 10px 6px; }
.site-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── Footer (rendered by site.js) ─── */
.site-footer { margin-top: 56px; padding: 28px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--ink-3); font-size: 0.76rem; line-height: 1.65; }
.site-footer a:hover { color: var(--ink); }
.site-footer .disc { margin: 0 0 0.9rem; color: var(--ink-3); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-bottom: 0.9rem; color: var(--ink-2); font-size: 0.8rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.45rem; }
.site-footer .legal span { opacity: 0.5; }
.site-footer details.product { margin-top: 0.3rem; }
.site-footer details.product summary { cursor: pointer; width: fit-content; color: var(--ink-3); list-style: none; }
.site-footer details.product summary::-webkit-details-marker { display: none; }
.site-footer details.product summary::after { content: ' +'; }
.site-footer details.product[open] summary::after { content: ' −'; }
.site-footer details.product p { margin-top: 0.4rem; max-width: 820px; }

@media (max-width: 1100px) { .site-links { gap: 1.1rem; } .site-links a { font-size: 0.86rem; } }
@media (max-width: 960px) {
  .site-links { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 0.5rem 20px 1rem; background: rgba(12, 8, 9, 0.97); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-links a { padding: 0.8rem 0; }
  .site-links a[aria-current="page"]::after { display: none; }
  .site-nav.open .site-links { display: flex; }
  .site-right { margin-left: auto; }
  .site-burger { display: flex; }
  .page-hero > img.bg { width: 100%; opacity: 0.45; }
  .page-hero::after { background: linear-gradient(90deg, rgba(12, 8, 9, 0.92) 0%, rgba(12, 8, 9, 0.6) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
}
@media (max-width: 560px) {
  .wrap, .site-nav-inner { width: calc(100% - 32px); }
  .site-logo small { display: none; }
  .site-logo b { font-size: 1.08rem; }
  .site-right .site-lang { display: none; }
  .site-links .site-lang-menu { display: flex; width: fit-content; margin-top: 0.6rem; }
  .site-right .btn-sm { padding: 0 0.9rem; font-size: 0.8rem; }
  .page-hero { padding: 44px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
