/* ============================================
   Caminho Solo — CSS Base
   ============================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tokens */
:root {
  --bg: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #0f172a;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --max-w: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
}

/* Dark Mode */
html.dark {
  --bg: #030712;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #f1f5f9;
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --border: #1e293b;
  --surface: #1e293b;
}

/* Dark mode text overrides */
html.dark .article-title {
  color: #ffffff;
}

html.dark .article-body {
  color: #e2e8f0;
  background: var(--bg);
}

html.dark .article-body h2,
html.dark .article-body h3,
html.dark .article-body h4 {
  color: #ffffff;
}

html.dark .article-body strong {
  color: #ffffff;
}

html.dark .editorial-quote p {
  color: #ffffff;
}

html.dark .article-category-badge {
  color: #5A00EE;
  background: #2d1b4e;
  border-color: #5a3a9a;
}

html.dark .tldr-block {
  background: #1a1138;
  border-color: #5a3a9a;
}

html.dark .tldr-content p,
html.dark .tldr-content ul li {
  color: #cbd5e1;
}

html.dark .article-body blockquote {
  background: #1a1138;
  border-left-color: #5A00EE;
  color: #cbd5e1;
}

html.dark .callout-tip {
  background: #0c3a1c;
  border-color: #22c55e;
}

html.dark .callout-warning {
  background: #4a3109;
  border-color: #f59e0b;
}

html.dark .callout-insight {
  background: #1a1138;
  border-color: #5A00EE;
}

html.dark .callout-info {
  background: #0c2340;
  border-color: #3b82f6;
}

html.dark .callout-body p {
  color: #cbd5e1;
}

html.dark .editorial-quote {
  border-left-color: #5A00EE;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 3rem;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-name:hover {
  color: var(--link);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

header nav a:hover {
  color: var(--text);
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--border);
}

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

footer p,
footer nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

footer nav {
  display: flex;
  gap: 1rem;
}

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

/* ============================================
   Main
   ============================================ */
main {
  min-height: calc(100vh - 220px);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--accent);
}

h1 { font-size: 1.875rem; margin-bottom: 1rem; }
h2 { font-size: 1.375rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

blockquote {
  border-left: 3px solid var(--border);
  padding: 0.25rem 1.25rem;
  color: var(--text-muted);
  margin: 1.75rem 0;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

th {
  text-align: left;
  border-bottom: 2px solid var(--border);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0 !important;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================
   Homepage
   ============================================ */
.home-hero {
  padding: 3.5rem 0 3rem;
}

.home-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.home-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.view-all {
  margin-top: 2rem;
  text-align: center;
}

.view-all a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.view-all a:hover {
  color: var(--link);
}

/* ============================================
   Post list
   ============================================ */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list .post-item:first-child {
  border-top: 1px solid var(--border);
}

.post-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.post-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.post-item-title a {
  color: var(--text);
  text-decoration: none;
}

.post-item-title a:hover {
  color: var(--link);
}

.post-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.post-item-tags {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ============================================
   Tags
   ============================================ */
.tag {
  font-size: 0.72rem;
  padding: 0.2em 0.6em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.tag:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ============================================
   Single post — legacy (kept for compatibility)
   ============================================ */
.post-header {
  padding: 1.5rem 0 2rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--link);
  text-decoration: none;
}

.post-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-top: 1rem;
  border-radius: 10px;
}

.post-content {
  padding-bottom: 2rem;
}

pre{
  margin: 1.5rem 0;
}

/* ============================================
   Article — Layout editorial
   ============================================ */
.article-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .article-container {
    max-width: 720px;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .article-container {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .article-container {
    padding: 0 1rem;
  }
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2rem 0 0;
  margin-bottom: 2.5rem;
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: var(--border);
}

/* Category badge */
.article-category {
  margin-bottom: 1rem;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A00EE;
  background: #f3eeff;
  border: 1px solid #e0cfff;
  padding: 0.25em 0.75em;
  border-radius: 999px;
}

/* Article header */
.article-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0a0a0f;
  margin-bottom: 1rem;
}

.article-description {
  font-size: 1.175rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-dot {
  color: var(--border);
}

/* Featured cover */
.article-cover {
  margin: 0 0 3rem;
}

.article-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.08), 0 20px 25px rgba(0,0,0,0.04);
}

/* Article footer */
.article-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ============================================
   Article body — tipografia editorial
   ============================================ */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1c1c28;
  background: white;
}

.article-body p {
  margin-bottom: 1.20rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #0a0a0f;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0a0a0f;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0f;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: none;
  padding-left: 0;
}

.article-body ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.article-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #5A00EE;
  font-size: 0.9em;
}

.article-body ol li {
  margin-bottom: 0.5rem;
}

.article-body ol li::marker {
  color: #5A00EE;
  font-weight: 600;
}

.article-body a {
  color: #5A00EE;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(90, 0, 238, 0.35);
}

.article-body a:hover {
  text-decoration-color: #5A00EE;
}

.article-body strong {
  font-weight: 700;
  color: #0a0a0f;
}

.article-body em {
  font-style: italic;
}

.article-body blockquote {
  border-left: 3px solid #5A00EE;
  background: #f8f5ff;
  padding: 1rem 1.5rem;
  margin: 2.25rem 0;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: normal;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.article-body img {
  width: 100%;
  border-radius: 10px;
  margin: 1.75rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 10px 13px rgba(0,0,0,0.03);
}

/* Figure com legenda */
.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 10px 13px rgba(0,0,0,0.03);
  margin: 0;
}

.article-figure figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
  line-height: 1.5;
}

/* ============================================
   Componentes editoriais
   ============================================ */

/* TLDR */
.tldr-block {
  background: #f8f5ff;
  border: 1px solid #e0cfff;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 1px 3px rgba(90, 0, 238, 0.08), 0 4px 6px rgba(90, 0, 238, 0.04);
}

.tldr-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A00EE;
  margin-bottom: 0.875rem;
}

.tldr-content p {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
}

.tldr-content ul {
  margin-bottom: 0;
}

.tldr-content ul li {
  font-size: 0.9375rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

/* Callout */
.callout {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.callout-tip {
  background: #f0fdf4;
  border-color: #22c55e;
}

.callout-warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.callout-insight {
  background: #f8f5ff;
  border-color: #5A00EE;
}

.callout-info {
  background: #eff6ff;
  border-color: #3b82f6;
}

.callout-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.callout-tip .callout-title { color: #16a34a; }
.callout-warning .callout-title { color: #d97706; }
.callout-insight .callout-title { color: #5A00EE; }
.callout-info .callout-title { color: #2563eb; }

.callout-body p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #374151;
}

/* Quote editorial */
.editorial-quote {
  border: none;
  border-left: 4px solid #5A00EE;
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2.5rem 0;
  background: none;
}

.editorial-quote p {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: #0a0a0f;
  margin-bottom: 0.5rem;
}

.editorial-quote cite {
  font-size: 0.825rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   Lang switcher
   ============================================ */
.lang-switch {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.lang-switch:hover {
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .home-hero h1 { font-size: 1.75rem; }
  .post-header h1 { font-size: 1.5rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  header .container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  footer .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  pre {
    font-size: 0.8rem;
    padding: 1rem;
  }

  /* Article mobile */
  .article-title {
    font-size: 1.75rem;
  }

  .article-description {
    font-size: 1.05rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .editorial-quote p {
    font-size: 1.1rem;
  }
}

/* ============================================
   Search page — Busca aprimorada
   ============================================ */

/* Campo de busca customizado */
.pagefind-search-custom {
  display: block;
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3rem;
  background-color: #ffffff;
  color: #111827;
  border: 2px solid transparent;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 1.125rem;
  line-height: 1.75rem;
  transition: all 0.15s ease;
}

.pagefind-search-custom::placeholder {
  color: #9ca3af;
}

.pagefind-search-custom:focus {
  border-color: #d8b4fe;
  outline: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pagefind-search-custom:focus {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(90, 0, 238, 0.25);
}

/* Card de resultado */
.pagefind-ui__result {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Destaque de texto encontrado */
mark {
  background: linear-gradient(120deg, #fde047 0%, #facc15 100%);
  color: #854d0e;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

html.dark mark {
  background: linear-gradient(120deg, #b45309 0%, #d97706 100%);
  color: #fef3c7;
}

/* Scrollbar da dropdown */
.pagefind-ui__dropdown::-webkit-scrollbar {
  width: 8px;
}

.pagefind-ui__dropdown::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.pagefind-ui__dropdown::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.pagefind-ui__dropdown::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Botões Pagefind */
.pagefind-ui__button {
  background: white;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.pagefind-ui__button:hover:not(:disabled) {
  background: #5A00EE;
  border-color: #5A00EE;
  color: white;
  transform: translateY(-1px);
}

.pagefind-ui__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading */
.pagefind-ui__loader {
  color: #5A00EE;
}

/* Resultado cards - estilização adicional */
#search-results .pagefind-ui__result {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#search-results .pagefind-ui__result-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

#search-results .pagefind-ui__result-excerpt {
  flex: 1;
  margin-bottom: 0.75rem;
}

#search-results .pagefind-ui__result-url {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

/* Loading spinner melhorado */
#loading-state .animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsividade da grid */
@media (max-width: 1024px) {
  #search-results.grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #search-results.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5A00EE;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(90, 0, 238, 0.25);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #4a00cc;
  box-shadow: 0 8px 24px rgba(90, 0, 238, 0.35);
  transform: translateY(-3px);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* Dark mode */
html.dark .scroll-to-top {
  background: #5A00EE;
  box-shadow: 0 4px 16px rgba(90, 0, 238, 0.35);
}

html.dark .scroll-to-top:hover {
  background: #7a20ff;
  box-shadow: 0 8px 24px rgba(90, 0, 238, 0.45);
}

/* Responsive */
@media (max-width: 640px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   Search results cards
   ============================================ */
.pagefind-ui__result {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagefind-ui__result:hover {
  border-color: #5A00EE;
  box-shadow: 0 8px 30px rgba(90, 0, 238, 0.12);
  transform: translateY(-2px);
}

.pagefind-ui__result-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #0a0a0f;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.pagefind-ui__result-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.pagefind-ui__result-title a:hover {
  color: #5A00EE;
}

.pagefind-ui__result-excerpt {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.pagefind-ui__result-url {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.pagefind-ui__result-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5A00EE;
  background: #f3eeff;
  border: 1px solid #e0cfff;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* ============================================
   Banner System — Caminho Solo
   ============================================ */

.banner-slot {
  margin: 2.5rem auto;
  max-width: 1280px;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
}

.banner-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
  border-radius: 1rem;
  pointer-events: none;
}

.banner-slot-inner {
  position: relative;
  z-index: 1;
}

.banner-slot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.banner-slot-content {
  flex: 1;
}

.banner-slot-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.banner-slot-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.9;
}

.banner-slot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.banner-cta-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

/* Primary variant (brand purple) */
.banner-slot-primary {
  background: linear-gradient(135deg, #5A00EE 0%, #7c3aed 100%);
  color: white;
  border-color: #5A00EE;
  box-shadow: 0 8px 30px rgba(90, 0, 238, 0.15);
}

.banner-slot-primary .banner-slot-title {
  color: white;
}

.banner-slot-primary .banner-slot-description {
  color: rgba(255, 255, 255, 0.95);
}

.banner-slot-primary .banner-slot-cta {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-slot-primary .banner-slot-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.banner-slot-primary .banner-slot-cta:hover .banner-cta-arrow {
  transform: translateX(0.25rem);
}

/* Secondary variant (neutral) */
.banner-slot-secondary {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #111827;
  border-color: #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.banner-slot-secondary .banner-slot-title {
  color: #111827;
}

.banner-slot-secondary .banner-slot-description {
  color: #6b7280;
}

.banner-slot-secondary .banner-slot-cta {
  background: #111827;
  color: white;
  border: 1px solid #111827;
}

.banner-slot-secondary .banner-slot-cta:hover {
  background: #374151;
  border-color: #374151;
  transform: translateY(-2px);
}

.banner-slot-secondary .banner-slot-cta:hover .banner-cta-arrow {
  transform: translateX(0.25rem);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .banner-slot {
    flex-direction: column;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .banner-slot-inner {
    flex-direction: column;
    width: 100%;
  }

  .banner-slot-cta {
    width: 100%;
    justify-content: center;
  }

  .banner-slot-title {
    font-size: 1.125rem;
  }

  .banner-slot-description {
    font-size: 0.9rem;
  }
}

/* Dark mode */
html.dark .banner-slot-primary {
  background: linear-gradient(135deg, #5A00EE 0%, #6d28d9 100%);
  border-color: #7c3aed;
  box-shadow: 0 8px 30px rgba(90, 0, 238, 0.25);
}

html.dark .banner-slot-secondary {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #f3f4f6;
  border-color: #374151;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

html.dark .banner-slot-secondary .banner-slot-title {
  color: #ffffff;
}

html.dark .banner-slot-secondary .banner-slot-description {
  color: #d1d5db;
}

html.dark .banner-slot-secondary .banner-slot-cta {
  background: #f3f4f6;
  color: #111827;
  border-color: #f3f4f6;
}

html.dark .banner-slot-secondary .banner-slot-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
}

/* ============================================
   Article Banners — 1:1 Square Format
   ============================================ */

.article-banners {
  margin: 3rem 0;
}

.article-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.article-banner-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.article-banner-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.article-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.article-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.article-banner-description {
  font-size: 0.75rem;
  line-height: 1.3;
  margin: 0;
  opacity: 0.85;
  display: none;  /* Hidden on small squares */
}

.article-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.article-banner-arrow {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.3s ease;
}

/* Primary variant (brand purple) */
.article-banner-primary {
  background: linear-gradient(135deg, #5A00EE 0%, #7c3aed 100%);
  color: white;
  border-color: #5A00EE;
  box-shadow: 0 4px 15px rgba(90, 0, 238, 0.2);
}

.article-banner-primary .article-banner-title {
  color: white;
}

.article-banner-primary .article-banner-description {
  color: rgba(255, 255, 255, 0.9);
}

.article-banner-primary .article-banner-cta {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-banner-primary .article-banner-cta:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.article-banner-primary .article-banner-cta:hover .article-banner-arrow {
  transform: translateX(0.2rem);
}

/* Secondary variant (gray neutral) */
.article-banner-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #111827;
  border-color: #d1d5db;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.article-banner-secondary .article-banner-title {
  color: #111827;
}

.article-banner-secondary .article-banner-description {
  color: #6b7280;
}

.article-banner-secondary .article-banner-cta {
  background: #111827;
  color: white;
  border: 1px solid #111827;
}

.article-banner-secondary .article-banner-cta:hover {
  background: #374151;
  border-color: #374151;
  transform: translateY(-2px);
}

.article-banner-secondary .article-banner-cta:hover .article-banner-arrow {
  transform: translateX(0.2rem);
}

/* Dark mode */
html.dark .article-banner-primary {
  background: linear-gradient(135deg, #5A00EE 0%, #6d28d9 100%);
  border-color: #7c3aed;
  box-shadow: 0 4px 15px rgba(90, 0, 238, 0.3);
}

html.dark .article-banner-secondary {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #f3f4f6;
  border-color: #374151;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html.dark .article-banner-secondary .article-banner-title {
  color: #ffffff;
}

html.dark .article-banner-secondary .article-banner-description {
  color: #d1d5db;
}

html.dark .article-banner-secondary .article-banner-cta {
  background: #f3f4f6;
  color: #111827;
  border-color: #f3f4f6;
}

html.dark .article-banner-secondary .article-banner-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
}

/* Responsive */
@media (max-width: 640px) {
  .article-banners-grid {
    grid-template-columns: 1fr;
  }

  .article-banner-item {
    padding: 1rem;
  }

  .article-banner-title {
    font-size: 0.85rem;
  }

  .article-banner-cta {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (min-width: 768px) {
  .article-banner-item {
    padding: 2rem;
  }

  .article-banner-title {
    font-size: 1.1rem;
  }

  .article-banner-description {
    display: block;  /* Show on larger screens */
    font-size: 0.8rem;
  }

  .article-banner-cta {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    margin-top: 0.75rem;
  }
}

