/* ==========================================================================
   Tema claro — html.theme-light
   Carregado por último: inverte os tokens do tema Tron e corrige o que
   dependia de fundo escuro. Nenhum componente é reescrito.
   ========================================================================== */

html.theme-light {
  --bg: #f3f7fc;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #e7eff9;

  --line: rgb(18 56 104 / .14);
  --line-strong: rgb(18 56 104 / .32);

  --text: #0a1b2d;
  --text-2: #40556a;
  --text-3: #5a6f83;

  /* acentos escurecidos para segurar contraste sobre fundo claro */
  --cyan: #0f6ad8;
  --cyan-deep: #0a4fa8;
  --cyan-hover: #1c7ae8;
  --pink: #a85a00;
  --amber: #8a5a00;

  --pri-rgb: 15 106 216;
  --sec-rgb: 168 90 0;
  --amber-rgb: 138 90 0;
  --bg-rgb: 243 247 252;
  --grid-rgb: 18 56 104;
  --scan-rgb: 15 60 120;

  --halo-pri: .12;
  --halo-sec: .04;

  --grad-mid: #4f93e6;
  --grad-mid-2: #4f93e6;
  --on-accent: #ffffff;
}

/* switch de tema: sol e lua; o ícone do tema atual fica aceso */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); }

.theme-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-3);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.theme-toggle[aria-checked="true"] .theme-icon-sol,
.theme-toggle[aria-checked="false"] .theme-icon-lua {
  color: var(--cyan);
  background: rgb(var(--pri-rgb) / .12);
  box-shadow: 0 0 14px -6px rgb(var(--pri-rgb) / .9);
}

@media (max-width: 860px) {
  .theme-toggle { min-height: 44px; padding: 0; border: 0; gap: 0; }
  .theme-icon { width: 30px; height: 30px; }
}

/* grade do mundo: mais presente no claro, senão some */
html.theme-light body::after {
  background-image:
    linear-gradient(to right, rgb(var(--pri-rgb) / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--pri-rgb) / .07) 1px, transparent 1px);
}

/* superfícies que no escuro são vidro; no claro viram cartão sólido */
html.theme-light .project,
html.theme-light .product,
html.theme-light .game-card,
html.theme-light .talks li,
html.theme-light .contact-form,
html.theme-light .frentes {
  background-color: #ffffff;
}

/* terminal: sombra de papel em vez de halo de tela */
html.theme-light .terminal {
  box-shadow:
    0 0 60px -30px rgb(var(--pri-rgb) / .30),
    0 26px 60px -42px rgb(10 30 60 / .45);
}

/* brilhos de texto viram ruído no claro */
html.theme-light .frentes-group .hot,
html.theme-light .stat b,
html.theme-light .skill-name::before,
html.theme-light .product .kicker,
html.theme-light .mobile-bar a.is-active {
  text-shadow: none;
}
