/* Gerado por scripts/build-blog.mjs a partir dos tokens de src/index.css —
   não editar a mão, qualquer ajuste de marca deve vir de lá. */
:root {
    /* BoniCard Brand Colors - Light Mode */
    --primary: 262 99% 49%;
    --primary-foreground: 0 0% 97%;
    --ring: 262 99% 49%;

    --secondary: 262 35% 58%;
    --secondary-foreground: 0 0% 100%;

    --accent: 262 20% 96%;
    --accent-foreground: 0 0% 7%;

    --foreground: 0 0% 7%;
    --background: 210 20% 98%;
    --border: 240 5.9% 90%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 7%;

    /* Charts */
    --chart-1: 262 99% 49%;
    --chart-2: 262 50% 65%;
    --chart-3: 262 35% 50%;
    --chart-4: 262 70% 78%;
    --chart-5: 142 70% 45%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --input: 240 5.9% 90%;
    --muted: 240 4.8% 95%;
    --muted-foreground: 240 3.8% 46.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 7%;
    --radius: 0.5rem;

    /* Sidebar */
    --sidebar-background: 0 0% 100%;
    --sidebar-foreground: 0 0% 7%;
    --sidebar-primary: 262 99% 49%;
    --sidebar-primary-foreground: 0 0% 97%;
    --sidebar-accent: 262 20% 96%;
    --sidebar-accent-foreground: 0 0% 7%;
    --sidebar-border: 240 5.9% 90%;
    --sidebar-ring: 262 99% 49%;

    /* === Cores da marca (decorativas — não confundir com tokens de UI) === */
    --brand: 262 99% 49%;            /* #5e01fb roxo */
    --brand-foreground: 0 0% 100%;
    --brand-cyan: 188 70% 61%;       /* #56cfe1 ciano */
    --brand-cyan-foreground: 196 80% 16%;
    --brand-yellow: 47 95% 52%;      /* #f9c80e amarelo */
    --brand-yellow-foreground: 30 90% 12%;
    /* Tints suaves para fundos/pílulas */
    --brand-soft: 262 100% 96%;
    --brand-cyan-soft: 188 70% 94%;
    --brand-yellow-soft: 47 95% 92%;}

* { box-sizing: border-box; }

body.blog {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(4px);
}
.blog-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2rem;
}
.blog-header img { height: 28px; display: block; }
.blog-nav { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; font-weight: 500; }
/* :not(.blog-btn): ".blog-nav a" tem mais especificidade que ".blog-btn"
   sozinho (classe+elemento > classe), então sem o :not() esta regra vazava
   pro botão "Planos" e sobrescrevia a cor branca do texto do botão. */
.blog-nav a:not(.blog-btn), .blog-footer a { color: hsl(var(--foreground)); text-decoration: none; }
.blog-nav a:not(.blog-btn):hover, .blog-footer a:hover { color: hsl(var(--primary)); }

.blog-main { max-width: 720px; margin: 0 auto; padding: 2.5rem 2rem; }

.blog-article h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.blog-meta { color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-bottom: 1.5rem; }
.blog-article h2 { margin-top: 2.5rem; font-size: 1.5rem; font-weight: 700; }
.blog-article h3 { margin-top: 2rem; font-size: 1.25rem; font-weight: 700; }
/* :not(.blog-btn): mesmo problema de especificidade do .blog-nav acima — o
   CTA (<a class="blog-btn">) fica dentro de .blog-article, então sem o
   :not() esta regra também apagava o texto branco do botão. */
.blog-article a:not(.blog-btn) { color: hsl(var(--primary)); }
.blog-article img { max-width: 100%; border-radius: var(--radius); }
.blog-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.blog-article th, .blog-article td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid hsl(var(--border)); }

/* Botão (réplica de src/components/ui/button.tsx: rounded-xl, shadow-md -> hover:shadow-lg, hover:-translate-y-0.5) */
.blog-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: all 0.3s;
}
.blog-btn:hover { background: hsl(var(--primary) / 0.9); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); transform: translateY(-2px); }

.blog-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.blog-cta .blog-btn { margin-top: 0.75rem; }

.blog-footer {
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.blog-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.blog-list-item {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.3s;
}
.blog-list-item:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.blog-list-item a { font-size: 1.25rem; font-weight: 700; color: hsl(var(--primary)); text-decoration: none; }
.blog-list-item p { color: hsl(var(--muted-foreground)); margin: 0.25rem 0 0; }
