:root {
  --bg: #070707;
  --text: #f2f2f2;
  --muted: #aaaaaa;
  --neon: #00fff0;
  --accent: #ff007a;
  --card-bg: rgba(255, 255, 255, 0.02);
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --max-width: 1100px;
} /* Tema claro melhorado */
:root.light {
  --bg: #ffffff; /* fundo mais limpo */
  --text: #222222; /* texto forte para legibilidade */
  --muted: #666666; /* texto secundário suave */
  --neon: #0066cc; /* azul mais equilibrado (menos agressivo que #0077ff) */
  --accent: #e63990; /* rosa mais sofisticado */
  --card-bg: rgba(0, 0, 0, 0.04); /* cartões com leve contraste */
  --glass: rgba(255, 255, 255, 0.7); /* efeito glass em claro */
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--neon);
}

:root.light .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #050505 100%);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.site {
  max-width: var(--max-width);
  width: 100%;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo svg {
  width: 60px;
  height: 60px;
}

.site-title {
  font-family: "Anta", sans-serif;
  font-size: 1.6rem;
  color: var(--neon);
}

.site-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  color: var(--neon);
}

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--neon);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--glass);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.mobile-menu a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 12px;
  background: var(--glass);
  margin-bottom: 2rem;
}
.tagline {
  font-family: "Orbitron", sans-serif;
  color: var(--neon);
  font-size: 2rem;
}
.hero-text {
  color: var(--muted);
}

.cta {
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--neon);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: bold;
  cursor: pointer;
}
.cta:hover {
  background: #bbd0ff;
  color: #050505;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 240, 0.05);
}
.card h3 {
  color: var(--neon);
  margin: 0;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-icon {
  font-size: 1.6rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card {
  border-color: var(--neon);
  background: rgba(0, 255, 240, 0.05);
  cursor: pointer;
}

/* Articles */
.articles h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--neon);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.article-box {
  background: var(--glass);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 240, 0.05);
}
.article-box p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-links a {
  color: var(--neon);
  text-decoration: none;
}
.powered-btn {
  margin-top: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.powered-btn:hover {
  background: var(--neon);
  color: #000;
}

/* Responsividade */
@media (max-width: 880px) {
  nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* cookies */
.cookies-msg {
  width: 80%;
  background-color: #000;
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%);
  border-radius: 1.5rem;
  display: none;
}

.cookies-msg.removed {
  display: block;
}

.cookies-msg .cookies-txt {
  display: flex;
  align-items: center;
  text-align: justify;
  padding: 20px;
}

.cookies-msg .acceptCookies {
  margin-left: 3rem;
}

.cookies-msg .acceptCookies button {
  background-color: #bbd0ff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.cookies-msg .acceptCookies button:hover {
  transform: scale(0.9);
}
/* 🎲 Dados – Rolagem e Histórico */

/* Container principal */
.dice-roller {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 600px;
  text-align: center;
  border: 2px solid var(--neon);
  border-radius: 12px;
  background: rgba(0, 255, 240, 0.05); /* tema escuro */
  box-shadow: 0 0 12px rgba(0, 255, 240, 0.3);
}

/* Controles de rolagem */
.dice-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dice-controls label {
  font-size: 0.9rem;
  color: var(--neon);
}

.dice-controls input,
.dice-controls select,
.dice-controls button {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--neon);
}

.dice-controls input,
.dice-controls select {
  background: #000; /* fundo escuro */
  color: var(--neon);
  width: 90px;
  text-align: center;
}

.dice-controls button {
  background: transparent;
  color: var(--neon);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.dice-controls button:hover {
  background: var(--neon);
  color: #000;
}

/* Resultado da rolagem */
.dice-result {
  margin-top: 1.5rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--neon);
  text-shadow: 0 0 6px var(--neon);
  animation: fadeIn 0.3s ease-in-out;
}

/* Histórico de rolagens */
.dice-history {
  margin-top: 2rem;
  text-align: left;
}

.dice-history h3 {
  margin-bottom: 0.5rem;
  color: var(--neon);
}

.dice-history ul {
  list-style: none;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.95rem;
}

.dice-history li {
  margin: 0.3rem 0;
  color: #ccc;
}

/* Modo mestre */
.master-mode {
  margin-top: 1rem;
  text-align: center;
  color: var(--neon);
  font-size: 0.95rem;
}

.master-mode input {
  margin-right: 0.4rem;
  transform: scale(1.2);
}

/* Resultado oculto (modo mestre) */
.hidden-result {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px dashed var(--neon);
  border-radius: 8px;
  background: rgba(0, 255, 240, 0.08);
  text-align: center;
  font-size: 1rem;
  color: #ccc;
}

.hidden-result button {
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--neon);
  background: transparent;
  color: var(--neon);
  cursor: pointer;
}

.hidden-result button:hover {
  background: var(--neon);
  color: #000;
}

/* 🎲 Tema claro – ajustes de contraste */
:root.light .dice-roller {
  border: 2px solid var(--neon);
  background: rgba(0, 102, 204, 0.05); /* azul suave */
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.2);
}

:root.light .dice-controls label {
  color: var(--accent);
}

:root.light .dice-controls input,
:root.light .dice-controls select {
  background: #ffffff; /* fundo branco */
  border: 1px solid #cccccc;
  color: #222222; /* texto escuro legível */
}

:root.light .dice-controls input:focus,
:root.light .dice-controls select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 6px rgba(0, 102, 204, 0.3);
}

:root.light .dice-controls button {
  border: 1px solid var(--neon);
  background: var(--neon);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

:root.light .dice-controls button:hover {
  background: #004c99; /* tom mais escuro do neon */
  color: #fff;
}

:root.light .dice-result {
  color: var(--neon);
  text-shadow: none;
}

:root.light .dice-history h3 {
  color: var(--accent);
}

:root.light .dice-history ul {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

:root.light .dice-history li {
  color: #222222;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

:root.light .master-mode {
  color: var(--accent);
}

:root.light .hidden-result {
  border: 1px dashed var(--accent);
  background: rgba(230, 57, 144, 0.05);
  color: #222222;
}

:root.light .hidden-result button {
  border: 1px solid var(--accent);
  color: var(--accent);
}

:root.light .hidden-result button:hover {
  background: var(--accent);
  color: #fff;
}
