/* ============================================
   OFICINA DE HISTÓRIAS — JV Junior
   style.css — Folha de estilos global
   ============================================ */

:root {
  --bg: #000000;
  --bg2: #0a0a0a;
  --surface: #111111;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0ede6;
  --muted: #666666;
  --accent: #d4a017;
  --accent2: #f0c040;
  --tag-fc: #1a1500;
  --tag-fc-text: #d4a017;
  --tag-bib: #0f1e16;
  --tag-bib-text: #5ecb8a;
  --tag-hist: #1c1410;
  --tag-hist-text: #d4924a;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Instrument Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── GRID COSMÉTICO ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── GLOWS ── */
.glow-a {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-b {
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240,192,64,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

nav a.active { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── DIVISOR ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ── TIPOGRAFIA ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.section-link:hover { color: var(--accent); }

/* ── TAGS ── */
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}

.tag-fc      { background: var(--tag-fc);   color: var(--tag-fc-text);   border: 1px solid rgba(212,160,23,0.3); }
.tag-biblia  { background: var(--tag-bib);  color: var(--tag-bib-text);  border: 1px solid rgba(94,203,138,0.2); }
.tag-historia{ background: var(--tag-hist); color: var(--tag-hist-text); border: 1px solid rgba(212,146,74,0.2); }
.tag-neutro  { background: #111; color: #888; border: 1px solid rgba(255,255,255,0.1); }

/* ── BOTÕES ── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 12px 24px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-hover);
  padding: 12px 24px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-block;
  white-space: nowrap;
}

.btn-ghost:hover { color: var(--text); border-color: var(--muted); transform: translateY(-1px); }

/* ── CARD DESTAQUE ── */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.featured-card:hover { border-color: var(--border-hover); }
.featured-card:hover .card-arrow { transform: translate(3px, -3px); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-tags { display: flex; gap: 8px; }

.card-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.featured-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  border-left: 2px solid rgba(212,160,23,0.35);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-item {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── GRID DE POSTS ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.post-cell {
  background: var(--bg);
  padding: 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-cell:hover { background: var(--surface); }
.post-cell:hover .post-title { color: var(--accent); }

.post-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.post-comments {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── STRIP SOBRE ── */
.about-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.about-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.about-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}

.about-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.about-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── ANIMAÇÕES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { opacity: 0; animation: fadeUp 0.6s ease forwards 0.1s; }
.anim-2 { opacity: 0; animation: fadeUp 0.7s ease forwards 0.2s; }
.anim-3 { opacity: 0; animation: fadeUp 0.7s ease forwards 0.3s; }
.anim-4 { opacity: 0; animation: fadeUp 0.7s ease forwards 0.4s; }
.anim-5 { opacity: 0; animation: fadeUp 0.7s ease forwards 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PÁGINA INTERNA — CABEÇALHO ── */
.page-header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
}

.page-title em { font-style: italic; color: var(--accent); }

/* ── PÁGINA SOBRE — ESPECÍFICO ── */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  color: var(--accent);
  flex-shrink: 0;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .destaque {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.skill-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.skill-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }

.skill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-gold  { background: var(--accent); }
.dot-green { background: #5ecb8a; }
.dot-amber { background: #d4924a; }
.dot-muted { background: var(--muted); }

.anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.anchor-cell { background: var(--bg); padding: 1.75rem 1.5rem; }

.anchor-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.anchor-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.cta-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}

.cta-text p { font-size: 14px; color: var(--muted); }

.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── MOBILE ── */
@media (max-width: 660px) {
  .header-inner { padding: 0 1.25rem; }
  nav a { padding: 6px 8px; font-size: 10px; }
  .page { padding: 0 1.25rem; }
  .page-header { grid-template-columns: 1fr; }
  .avatar { display: none; }
  .about-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .anchors { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
