/* ──────────────────────────────────────────
   English Tenses — Shared Styles
   ────────────────────────────────────────── */

:root {
  --bg:      #0d0f14;
  --bg2:     #13161d;
  --bg3:     #1a1e28;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text:    #e8e6e0;
  --text2:   #8a8780;
  --text3:   #8a8682;
  --c-simple:   #4a9eff;
  --c-cont:     #2ec79a;
  --c-perfect:  #a78bfa;
  --c-perfcont: #f97316;
  --now: rgba(245,240,232,0.9);
  --row-h: 44px;
  --fbtn-active-text: #0d0f14;
  --tag-text: #0d0f14;
  --hover-bg: rgba(255,255,255,.025);
  --active-bg: rgba(255,255,255,.04);
  --now-lbl: rgba(239,68,68,.7);
  --now-clock: rgba(239,68,68,.5);
  --now-row-lbl: rgba(245,240,232,.6);
  --now-vline: rgba(239,68,68,.35);
  --now-dot: #ef4444;
  --now-pulse1: rgba(239,68,68,.15);
  --now-pulse2: rgba(239,68,68,.1);
  --now-pulse3: rgba(239,68,68,.12);
  --axis-color: var(--border2);
  --dot-border: var(--bg2);
}
:root.light {
  --bg:      #f5f5f0;
  --bg2:     #ffffff;
  --bg3:     #eeeee9;
  --border:  rgba(0,0,0,0.06);
  --border2: rgba(0,0,0,0.12);
  --text:    #1a1a1a;
  --text2:   #555550;
  --text3:   #6b6b66;
  --c-simple:   #2563eb;
  --c-cont:     #047857;
  --c-perfect:  #7c3aed;
  --c-perfcont: #c2410c;
  --fbtn-active-text: #ffffff;
  --tag-text: #ffffff;
  --hover-bg: rgba(0,0,0,.03);
  --active-bg: rgba(0,0,0,.05);
  --now-lbl: #dc2626;
  --now-clock: rgba(220,38,38,.6);
  --now-row-lbl: #555550;
  --now-vline: rgba(220,38,38,.25);
  --now-dot: #dc2626;
  --now-pulse1: rgba(220,38,38,.12);
  --now-pulse2: rgba(220,38,38,.08);
  --now-pulse3: rgba(220,38,38,.1);
  --axis-color: rgba(0,0,0,.15);
  --dot-border: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  transition: background .3s, color .3s;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text3); }
.theme-toggle:focus-visible { outline: 2px solid var(--c-simple); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.theme-toggle .icon-sun { display: none; }
:root.light .theme-toggle .icon-moon { display: none; }
:root.light .theme-toggle .icon-sun { display: block; }

/* Detail card component styles (shared between pages) */
.d-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px; color: var(--tag-text);
}
.d-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.4); }
.d-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; font-weight: 400;
  margin-bottom: 10px; letter-spacing: -.01em; line-height: 1.2;
}
.d-formulas {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 16px;
}
.d-formula {
  font-family: 'DM Mono', monospace;
  font-size: 13px; color: var(--text2);
  padding: 10px 14px; background: var(--bg3);
  border-radius: 8px; border: 1px solid var(--border);
}
.d-formula-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text3);
  margin-right: 8px;
}
.d-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 6px;
}
.d-use {
  font-size: 15px; line-height: 1.65; color: var(--text2);
  margin-bottom: 14px; font-weight: 300;
}
.d-markers {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 16px;
}
.d-marker {
  padding: 4px 11px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2);
}
.d-signal {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 16px;
}
.d-signal-word {
  padding: 4px 11px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  font-family: 'DM Mono', monospace;
  color: var(--text2);
  border: 1px dashed var(--border2);
}
.d-examples { display: flex; flex-direction: column; gap: 8px; }
.d-ex {
  padding: 12px 16px; background: var(--bg3);
  border-radius: 10px; border-left: 3px solid;
  font-size: 14px; line-height: 1.6;
  color: var(--text); font-style: italic;
}
.d-ex strong { font-style: normal; font-weight: 600; }
.d-ex small {
  display: block; font-style: normal;
  font-size: 12px; color: var(--text3); margin-top: 3px;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
