/*
Theme Name: Bora de IA
Theme URI: https://boradeia.com.br
Author: Bora de IA
Description: Tema personalizado para o blog Bora de IA — IA aplicada ao dia a dia, sem enrolação.
Version: 1.0
Requires PHP: 7.4
Text Domain: boradeia
*/

:root {
  --roxo: #7C3AED;
  --roxo-escuro: #5B21B6;
  --amarelo: #FDE047;
  --menta: #34D399;
  --tinta: #1A1A2E;
  --bg: #FBFAF8;
  --card-bg: #FFFFFF;
  --borda: #E9E5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--tinta);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinta);
  color: white;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* NAV */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 10px; height: 10px;
  background: var(--amarelo);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(253,224,71,0.25);
}

.logo span.ia { color: var(--roxo); }

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
  flex-wrap: wrap;
}

.nav-links a:hover { color: var(--roxo); }

.nav-cta {
  background: var(--tinta);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav-links { width: 100%; justify-content: center; }
}

/* HERO */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: var(--roxo);
  border-radius: 45% 55% 60% 40% / 50% 40% 60% 50%;
  opacity: 0.9;
  z-index: 0;
}

.hero-blob2 {
  position: absolute;
  top: 80px;
  right: 60px;
  width: 200px;
  height: 200px;
  background: var(--amarelo);
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 620px; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tinta);
  color: var(--amarelo);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 .highlight { color: var(--roxo); position: relative; }

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%;
  height: 14px;
  background: var(--amarelo);
  z-index: -1;
  border-radius: 4px;
}

.hero p.sub {
  font-size: 18px;
  color: #4B4B5C;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--roxo);
  color: white;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(124,58,237,0.3);
}

.btn-secondary {
  background: white;
  border: 2px solid var(--tinta);
  color: var(--tinta);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
}

@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .hero-blob { width: 300px; height: 300px; top: -100px; right: -100px; }
}

/* SECTION LABEL */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--roxo);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before { content: ""; width: 20px; height: 2px; background: var(--roxo); }

.section-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 40px;
}

/* CATEGORIES CHIPS */
.categories { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.chip {
  background: white;
  border: 1.5px solid var(--borda);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip.active, .chip:hover { background: var(--roxo); color: white; border-color: var(--roxo); }

/* POSTS GRID */
.posts { padding: 40px 0 80px; }

.posts-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }

@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--borda);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(26,26,46,0.08); }

.card-feature { grid-row: span 2; }

.card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background-size: cover;
  background-position: center;
}

.card-feature .card-img { height: 260px; font-size: 64px; }

.card-img.roxo { background-image: linear-gradient(135deg, var(--roxo), var(--roxo-escuro)); }
.card-img.amarelo { background-image: linear-gradient(135deg, #FEF3C7, var(--amarelo)); }
.card-img.menta { background-image: linear-gradient(135deg, #D1FAE5, var(--menta)); }

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--roxo);
  background: #F1E9FE;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.card h3 { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.card-feature h3 { font-size: 26px; }

.card p.excerpt { font-size: 14px; color: #6B6B7B; flex: 1; }

.card-meta {
  font-size: 13px;
  color: #9B9BAE;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--borda);
  font-weight: 600;
  font-size: 14px;
}
.pagination .current { background: var(--roxo); color: white; border-color: var(--roxo); }

/* NEWSLETTER */
.newsletter {
  background: var(--tinta);
  border-radius: 28px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
  margin: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  background: var(--amarelo);
  border-radius: 50%;
  opacity: 0.15;
  right: -60px; top: -80px;
}

.newsletter h3 { font-family: 'Baloo 2', sans-serif; font-size: 28px; margin-bottom: 8px; }
.newsletter p { color: #C6C6D6; font-size: 15px; }

.newsletter-form { display: flex; gap: 10px; z-index: 1; }

.newsletter-form input {
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  width: 240px;
  font-family: 'Inter', sans-serif;
}

.newsletter-form button {
  background: var(--amarelo);
  color: var(--tinta);
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .newsletter { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
}

/* SINGLE POST */
.single-post { padding: 60px 0 100px; max-width: 760px; margin: 0 auto; }

.single-post .post-header { margin-bottom: 32px; }

.single-post h1.post-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  margin: 16px 0;
}

.post-meta {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #6B6B7B;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.single-post .featured-fallback {
  height: 320px;
  border-radius: 20px;
  margin: 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 28px;
  margin: 40px 0 16px;
}
.entry-content h3 { font-family: 'Baloo 2', sans-serif; font-size: 22px; margin: 32px 0 12px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--roxo); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--amarelo);
  padding: 12px 24px;
  margin: 24px 0;
  background: #FFFBEB;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
.entry-content img { border-radius: 16px; margin: 24px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--borda); padding: 10px 14px; text-align: left; }
.entry-content th { background: #F1E9FE; }

/* PAGE */
.page-content { padding: 60px 0 100px; max-width: 760px; margin: 0 auto; }
.page-content h1 { font-family: 'Baloo 2', sans-serif; font-size: 42px; margin-bottom: 24px; }

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--borda);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #9B9BAE;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer .logo { font-size: 18px; }

@media (max-width: 600px) { footer.site-footer { justify-content: center; text-align: center; } }

/* No results */
.no-results { padding: 80px 0; text-align: center; }
.no-results h2 { font-family: 'Baloo 2', sans-serif; font-size: 28px; margin-bottom: 12px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--roxo);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
