/* Calmera Wiki — tema claro (ativado pelo botão do topo; o padrão é o escuro) */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ec;
  --bg-soft: #ebe8e2;
  --panel: #ffffff;
  --panel-hover: #f4f2ed;
  --border: #d9d5cc;
  --border-soft: #e6e2da;
  --text: #1c1b22;
  --muted: #55535c;
  --dim: #85828b;
  --gold: #a4760a;
  --gold-soft: rgba(164, 118, 10, 0.12);
  --green: #059669;
  --red: #e11d48;
  --text-soft: #34333b;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-2: rgba(255, 255, 255, 0.93);
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --scroll: #c9c4ba;
  --home-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
  --wall-x: linear-gradient(90deg, rgba(246, 243, 236, 0.84) 0%, rgba(246, 243, 236, 0.93) 30%, rgba(246, 243, 236, 0.93) 70%, rgba(246, 243, 236, 0.84) 100%);
  --wall-y: linear-gradient(transparent, transparent);
}
html[data-theme="light"] body:not(.admin):not(.admin-login)::before { filter: grayscale(0.5) sepia(0.25); }

html[data-theme="light"] .article-layout > .article,
html[data-theme="light"] .creatures-page { box-shadow: 0 10px 34px rgba(60, 45, 20, 0.14); }
html[data-theme="light"] .topbar__search:hover { border-color: #c6c1b6; }
html[data-theme="light"] button.chip:hover { border-color: #c6c1b6; }
html[data-theme="light"] .tag { background: rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .infobox__rows div:nth-child(odd) { background: rgba(0, 0, 0, 0.025); }
html[data-theme="light"] .dropdown__menu,
html[data-theme="light"] .search-modal__panel,
html[data-theme="light"] .npc-modal__panel { box-shadow: 0 18px 50px rgba(40, 30, 10, 0.18); }
html[data-theme="light"] .search-modal__backdrop,
html[data-theme="light"] .npc-modal__backdrop { background: rgba(30, 25, 15, 0.35); }

/* Cores claras pensadas para fundo escuro, trocadas por tons mais fortes */
html[data-theme="light"] .callout--info { color: #1d4ed8; }
html[data-theme="light"] .tag--bane, html[data-theme="light"] .chip--bane.is-active { color: #475569; }
html[data-theme="light"] .tag--archfoe, html[data-theme="light"] .chip--archfoe.is-active,
html[data-theme="light"] .rarity--rare { color: #b45309; }
html[data-theme="light"] .tag--nemesis, html[data-theme="light"] .chip--nemesis.is-active,
html[data-theme="light"] .rarity--very_rare, html[data-theme="light"] .stat-pill--hp strong,
html[data-theme="light"] .element--strong .element__value, html[data-theme="light"] .element--immune .element__value,
html[data-theme="light"] .fish-tag--crimson { color: #dc2626; }
html[data-theme="light"] .rarity--always { color: #374151; background: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .rarity--uncommon, html[data-theme="light"] .imbue-tier--2 { color: #2563eb; }
html[data-theme="light"] .rarity--semi_rare, html[data-theme="light"] .tag--imbue, html[data-theme="light"] .is-imbue,
html[data-theme="light"] .imbue-tier--3, html[data-theme="light"] .outfit-src--npc { color: #7c3aed; }
html[data-theme="light"] .imbue-tier--1 { color: #15803d; }
html[data-theme="light"] .outfit-src--store, html[data-theme="light"] .fish-azure, html[data-theme="light"] .fish-tag--azure { color: #0369a1; }
html[data-theme="light"] .outfit-src--event, html[data-theme="light"] .outfit-src--pass { color: #be123c; }
html[data-theme="light"] .fish-amber, html[data-theme="light"] .fish-tag--amber { color: #b45309; }
html[data-theme="light"] .fish-golden, html[data-theme="light"] .fish-tag--golden { color: #a16207; }
html[data-theme="light"] .stage-rate.is-mid { color: #c2410c; }

/* Botão de tema */
.theme-toggle span { display: inline-flex; }
.theme-toggle .icon--sun { display: none; }
html[data-theme="light"] .theme-toggle .icon--sun { display: inline-flex; }
html[data-theme="light"] .theme-toggle .icon--moon { display: none; }
