
/* =========================
   style.css — Semeando a Palavra
   Minimalista, responsivo, com animações e tema claro/escuro
   ========================= */

/* ===== Reset mínimo ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* ===== Variáveis de tema ===== */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --accent: #2563eb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --surface: #12161b;
    --text: #e5e7eb;
    --muted: #9aa3af;
    --border: #1f2937;
    --accent: #60a5fa;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  }
}
.theme-dark {
  --bg: #0b0d10;
  --surface: #12161b;
  --text: #e5e7eb;
  --muted: #9aa3af;
  --border: #1f2937;
  --accent: #60a5fa;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
}

/* ===== Layout base ===== */
.wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--text);
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header .left,
header .right {
  position: absolute;
  inset-inline-start: 20px;
  inset-inline-end: auto;
  display: flex;
  gap: 8px;
}
header .right {
  inset-inline-start: auto;
  inset-inline-end: 20px;
}
header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  animation: fadeDown 1s ease, glowPulse2 4s ease-in-out infinite;
}
.muted { color: var(--muted); font-weight: 400; }

/* Botão de tema */
.theme-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .92rem;
  color: var(--text);
}
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Main & Grid ===== */
main { padding: 28px 20px; max-width: 1080px; margin-inline: auto; }
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* ===== Card ===== */
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s ease forwards;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0,0,0,.10);
}
.card .title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 6px;
  font-weight: 700;
}
.card .desc { margin: 0; color: var(--muted); font-size: .95rem; }

/* Stagger simples (primeiros 6 cards) */
.card:nth-child(1) { animation-delay: .15s; }
.card:nth-child(2) { animation-delay: .3s; }
.card:nth-child(3) { animation-delay: .45s; }
.card:nth-child(4) { animation-delay: .6s; }
.card:nth-child(5) { animation-delay: .75s; }
.card:nth-child(6) { animation-delay: .9s; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 14px 20px;
  font-size: .92rem;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

/* ===== Animações ===== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Brilho pulsante alternando azul <> dourado no título */
@keyframes glowPulse2 {
  0% {
    text-shadow:
      0 0 5px #ffffff,
      0 0 10px #20e0ff,
      0 0 20px #20e0ff,
      0 0 35px #20e0ff;
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 8px #fff6d5,
      0 0 18px #ffcc33,
      0 0 32px #ffcc33,
      0 0 46px #ffcc33;
    color: #fff6d5;
  }
  100% {
    text-shadow:
      0 0 5px #ffffff,
      0 0 10px #20e0ff,
      0 0 20px #20e0ff,
      0 0 35px #20e0ff;
    color: #ffffff;
  }
}
