/* TinyKicks — Mode gelap & tombol tema */

:root[data-theme="dark"] {
  --cream:        #2a231a;
  --cream-2:      #322a20;
  --surface:      #211b14;
  --ink:          #ece4d4;
  --ink-2:        #b6a892;
  --ink-3:        #a49278;
  --coral:        #e0764c;
  --coral-deep:   #f08d60;
  --coral-soft:   #3a251c;
  --teal:         #3ea87e;
  --teal-deep:    #6fc09f;
  --teal-soft:    #20372f;
  --sun:          #e0a73d;
  --sun-soft:     #35291a;
  --plum:         #a076a5;
  --plum-soft:    #302733;
  --line:         #3a3227;
  --line-soft:    #2e2720;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.45);
  --shadow:       0 12px 32px -14px rgba(0,0,0,.55);
  --shadow-lg:    0 24px 60px -24px rgba(0,0,0,.65);
}

:root[data-theme="dark"] body { background: #17130e; }
:root[data-theme="dark"] .site-header { background: #1d1812; }
:root[data-theme="dark"] .site-footer { background: linear-gradient(180deg, #211b14, #191410); }
:root[data-theme="dark"] .hero-plain { background: linear-gradient(160deg, #211b14, #262019); }
:root[data-theme="dark"] .storybook { filter: brightness(.85) saturate(.95); }
:root[data-theme="dark"] .disclaimer { background: var(--sun-soft); border-color: #4c3f22; color: #ecdbba; }
:root[data-theme="dark"] .rs-riset { background: #2b241b; border-left-color: var(--sun); }
:root[data-theme="dark"] .toc,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .age-card,
:root[data-theme="dark"] .riset-card,
:root[data-theme="dark"] .recipe-card,
:root[data-theme="dark"] .post-link,
:root[data-theme="dark"] .result-box,
:root[data-theme="dark"] .milestone-table,
:root[data-theme="dark"] .cat-card,
:root[data-theme="dark"] .tool-card { background: var(--surface); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { background: #2a2319; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .milestone-table th { background: var(--cream-2); }
:root[data-theme="dark"] .age-chip.active { background: var(--coral); color: #fff; border-color: var(--coral); }
:root[data-theme="dark"] .footer-note { border-top-color: var(--line-soft); }

/* Tombol ganti tema (mengambang) */
.theme-toggle {
  position: fixed; bottom: 18px; right: 18px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: var(--shadow); font-size: 1.35rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.theme-toggle:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }