/*
Theme Name: Israel Rocha
Theme URI: https://israelrocha.com.br
Author: Israel Rocha
Description: Tema editorial premium para a marca pessoal de Israel Rocha — marketing estratégico, SEO, GEO e IA. Réplica em WordPress do site israelrocha.com.br.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: israelrocha
*/

/* ---------- Tokens ---------- */
:root {
  --radius: 0.75rem;
  --background: #ffffff;
  --foreground: #1e293b;
  --card: #f8fafc;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --primary: #0b3c91;
  --primary-foreground: #ffffff;
  --electric: #2563eb;
  --cyan: #06b6d4;
  --border: #e5e9f0;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, sans-serif;
  --container: 1240px;
}

html.dark {
  --background: #0b0f1a;
  --foreground: #f8fafc;
  --card: #131a2a;
  --muted: #161e2f;
  --muted-foreground: #94a3b8;
  --primary: #4b7bea;
  --primary-foreground: #0b0f1a;
  --electric: #5b8cff;
  --cyan: #4fd8ee;
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container-x { width: 100%; margin-inline: auto; padding-inline: 1.5rem; max-width: var(--container); }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); margin: 0; }
.muted { color: var(--muted-foreground); }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--electric) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding-block: 7rem; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .8rem 1.5rem; font-size: .9rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--electric); }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); }
.btn-invert { background: var(--foreground); color: var(--background); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: all .25s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 75%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; height: 32px; width: 32px; border-radius: 8px;
  background: var(--primary); color: var(--primary-foreground); font-size: .8rem;
}
.main-nav { display: none; gap: 2rem; font-size: .9rem; color: var(--muted-foreground); }
.main-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; height: 36px; width: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: var(--muted); }
@media (min-width: 900px) { .main-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 10rem 0 7rem; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow::before, .hero-glow::after {
  content: ""; position: absolute; border-radius: 999px; filter: blur(90px);
}
.hero-glow::before { top: 6rem; left: -6rem; height: 24rem; width: 24rem; background: color-mix(in srgb, var(--electric) 14%, transparent); }
.hero-glow::after { bottom: 0; right: 0; height: 28rem; width: 28rem; background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 70%, transparent); border-radius: 999px;
  padding: .3rem .8rem; font-size: .75rem; color: var(--muted-foreground); margin-bottom: 2rem;
}
.dot { height: 6px; width: 6px; border-radius: 999px; background: var(--electric); }
.hero-lead { margin-top: 2rem; max-width: 34rem; font-size: 1.1rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 32rem; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.hero-stats dd { margin: .25rem 0 0; font-size: .75rem; color: var(--muted-foreground); }
.hero-media { position: relative; }
.hero-media .frame { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(2, 12, 40, .25); }
.hero-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; border-radius: 18px;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  backdrop-filter: blur(18px); border: 1px solid var(--border);
}

/* ---------- Grids / cards ---------- */
.grid-hairline {
  display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-hairline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-hairline { grid-template-columns: repeat(3, 1fr); } }
.cell { background: var(--background); padding: 2rem; transition: background .2s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cell:hover { background: color-mix(in srgb, var(--muted) 50%, transparent); }
.cell h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.cell p { margin-top: .5rem; font-size: .9rem; color: var(--muted-foreground); }
.icon-box {
  display: grid; place-items: center; height: 44px; width: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 50%, transparent); color: var(--electric);
}
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--border); border-radius: 18px; background: var(--card); padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--electric) 50%, transparent); }
.tag { font-size: .65rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-foreground); }
.tag-accent { color: var(--electric); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.link-accent { color: var(--electric); font-size: .9rem; }
.link-accent:hover { text-decoration: underline; }

/* Ecosystem */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.eco > div { background: var(--background); padding: 1.5rem; transition: transform .2s, background .2s; }
.eco > div:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--muted) 50%, transparent); }
.eco .bar { margin-top: .75rem; height: 4px; width: 24px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width .2s; }
.eco > div:hover .bar { width: 40px; }

/* Videos */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--electric) 22%, var(--muted)), color-mix(in srgb, var(--cyan) 18%, var(--muted)));
  cursor: pointer; overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 64px; width: 64px; border-radius: 999px; background: var(--background);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s;
}
.video-embed:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-play::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--foreground); margin-left: 4px; }

/* Contact links (section 10) */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem; border: 1px solid var(--border); border-radius: 16px;
  background: var(--muted); transition: transform .2s, border-color .2s; text-decoration: none; color: var(--foreground);
}
.contact-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--electric) 50%, transparent); }
.contact-link .label-group { display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 600; }
.contact-link .arrow { color: var(--muted-foreground); }
.contact-link svg { display: block; }

/* Newsletter */
.newsletter-box {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border);
  background: linear-gradient(120deg, #0b1530 0%, #0e2a63 55%, #1447a8 100%);
  color: #ffffff; padding: clamp(2rem, 5vw, 4rem);
}
.newsletter-box::after {
  content: ""; position: absolute; top: -30%; right: -10%; height: 26rem; width: 26rem; border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 35%, transparent), transparent 70%);
  pointer-events: none;
}
.newsletter-form {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4rem;
}
.newsletter-form input {
  flex: 1 1 220px; background: transparent; border: 0; color: inherit; padding: .8rem 1rem; font: inherit; outline: none;
}
.newsletter-form button { background: var(--background); color: var(--foreground); border: 0; border-radius: 999px; padding: .8rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; }
.newsletter-msg { margin-top: .75rem; font-size: .85rem; }

/* ---------- Article ---------- */
.article-header { padding: 9rem 0 2rem; }
.breadcrumbs { font-size: .8rem; color: var(--muted-foreground); display: flex; gap: .5rem; flex-wrap: wrap; }
.article-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1.5rem; max-width: 46rem; }
.article-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--muted-foreground); }
.article-layout { display: grid; gap: 3rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
.toc { position: sticky; top: 6rem; align-self: start; font-size: .85rem; }
.toc ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.toc a { color: var(--muted-foreground); }
.toc a:hover { color: var(--electric); }
.prose { max-width: 46rem; font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 3rem; font-size: 1.9rem; }
.prose h3 { margin-top: 2rem; font-size: 1.35rem; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 1.15rem; }
.prose a { color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--electric); background: color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--muted); }
.prose code { background: var(--muted); padding: .15rem .4rem; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--muted); padding: 1rem; border-radius: 12px; overflow: auto; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--cyan)); z-index: 60; }

/* Archive */
.archive-header { padding: 9rem 0 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: .4rem 1rem; font-size: .8rem; color: var(--muted-foreground); }
.chip.is-active, .chip:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers { border: 1px solid var(--border); border-radius: 10px; padding: .4rem .8rem; font-size: .85rem; }
.pagination .current { background: var(--foreground); color: var(--background); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; font-size: .9rem; color: var(--muted-foreground); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
