/* TypeVerse — themes.css
   Theme-specific refinements beyond the token swap in variables.css.
   The tokens do most of the work; this file handles the few places where
   the two worlds genuinely diverge in *character*, not just color. */

/* ---------- General (light): water crystal & sky ---------- */
body[data-theme="light"] {
  /* soft aqueous glow via layered gradients — cheap, no image */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(20, 149, 206, 0.10), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(62, 201, 226, 0.09), transparent 48%),
    linear-gradient(180deg, #F2FAFE 0%, #EAF6FC 60%, #E2F2FA 100%);
}

body[data-theme="light"] .view-title { font-family: var(--font-serif); font-style: italic; font-weight: 600; }

body[data-theme="light"] .typing-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(18,48,63,.05), 0 16px 38px -18px rgba(20,149,206,.30);
}

/* ---------- Developer (dark): late-night IDE ---------- */
body[data-theme="dark"] {
  background-image:
    radial-gradient(circle at 80% 10%, rgba(124, 92, 255, 0.07), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(0, 173, 216, 0.05), transparent 45%);
}

body[data-theme="dark"] .typing-box {
  background: var(--night-panel);
  border: 1px solid var(--line);
}

/* IDE window chrome on the dev typing box: three dots + language tab */
body[data-theme="dark"] .typing-box::before {
  content: "";
  display: block;
  height: 34px;
  margin: -1.4rem -1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background:
    radial-gradient(circle 5px at 20px 17px, #FF5F57 98%, transparent),
    radial-gradient(circle 5px at 40px 17px, #FEBC2E 98%, transparent),
    radial-gradient(circle 5px at 60px 17px, #28C840 98%, transparent),
    var(--surface-2);
}

/* language accent applied by JS via --lang-accent on the typing box */
body[data-theme="dark"] .typing-box {
  border-top: 2px solid var(--lang-accent, var(--accent));
}

/* selection colors per world */
body[data-theme="light"] ::selection { background: rgba(20, 149, 206, .22); }
body[data-theme="dark"] ::selection { background: rgba(124, 92, 255, .35); }

/* links (README safety: no default blue anywhere) */
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a:hover { text-decoration-thickness: 2px; }

/* scrollbars in the dark world */
body[data-theme="dark"] { scrollbar-color: var(--surface-2) var(--night); }
