/* =========================
   VARIÁVEIS / TEMA
   ========================= */

:root {
  --bg: #000000; /* fundo preto */
  --bg-elevated: #050712; /* quase preto, p/ os cards */
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #ff4bcb; /* rosa neon */
  --border: rgba(255, 75, 203, 0.35);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 0 18px rgba(255, 75, 203, 0.18);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* tema claro (usado pelo toggle de tema) */
body.light {
  --bg: #f3f4f6;
  --bg-elevated: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: rgba(236, 72, 153, 0.3);
  --shadow-soft: 0 0 18px rgba(236, 72, 153, 0.16);
}

/* =========================
   RESET BÁSICO
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111827 0, #000000 50%);
  color: var(--text);
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   LAYOUT GERAL
   ========================= */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* HEADER / TOPO */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.site-header h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* NAV PRINCIPAL (usado na listas.html) */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(248, 250, 252, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.main-nav a.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 75, 203, 0.08);
}

/* LAYOUT COLUNAS (index) */

.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start; /* alinha topo da coluna esquerda/direita */
}

.content {
  flex: 2;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* título da coluna esquerda no index */
.content > h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  opacity: 0.9;
}

/* =========================
   CARDS / POSTS / CAIXAS
   ========================= */

.card,
.post,
.book-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* borda neon glow */
.card::before,
.post::before,
.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 75, 203, 0.25),
    0 0 24px rgba(56, 189, 248, 0.16);
  opacity: 0.35;
}

/* =========================
   POSTS (index)
   ========================= */

.post + .post {
  margin-top: 14px;
}

.post h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.post time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-tags {
  margin: 6px 0 10px;
  font-size: 0.8rem;
  color: var(--accent);
}

.post-excerpt {
  margin: 0 0 10px;
  line-height: 1.45;
}

.post-more {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none; /* o JS abre/fecha */
}

/* =========================
   BOTÕES
   ========================= */

button {
  font: inherit;
}

.btn-ghost,
.read-more {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.05s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-ghost:hover,
.read-more:hover {
  background: rgba(248, 250, 252, 0.05);
  border-color: #fb6fdd;
  box-shadow: 0 0 16px rgba(255, 75, 203, 0.4);
  transform: translateY(-1px);
}

/* =========================
   SIDEBAR (index)
   ========================= */

.profile p {
  margin-top: 4px;
  line-height: 1.4;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li + li {
  margin-top: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.7);
}

/* =========================
   LISTAS (jogos/livros 2025)
   ========================= */

.page-header {
  margin: 26px 0 14px;
}

.page-header h1 {
  margin: 2px 0 6px;
  font-size: 1.4rem;
}

.section-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.books-section {
  margin-bottom: 24px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.book-card:hover {
  box-shadow: 0 0 26px rgba(255, 75, 203, 0.45);
  transform: translateY(-1px);
}

.book-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.book-media img {
  width: 100%;
  height: auto;
}

.book-body h2 {
  margin: 2px 0 4px;
  font-size: 1rem;
}

.book-author {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.book-notes {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================
   LINKS
   ========================= */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }
}

/* estilo do link dentro da sidebar */
.tag-link {
  display: inline-block;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.7);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.tag-link:hover {
  box-shadow: 0 0 18px rgba(255, 75, 203, 0.45);
  transform: translateY(-1px);
}
