/* ============================================
   CLUBE DOS CISNES — BLOG STYLES
   blog.clubedoscisnes.com
   ============================================ */

/* ---------- BASE & RESETS ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: #050510;
  color: #d4d4d8;
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 0 60px rgba(56, 189, 248, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
}

/* ---------- GRADIENT ACCENT BAR ---------- */
.card-accent {
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  border-radius: 3px 3px 0 0;
}

/* ---------- CATEGORY BADGES ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-ia        { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.25); }
.badge-marketing { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.25); }
.badge-automacao { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-cases     { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }

/* ---------- FILTER TABS ---------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #a1a1aa;
  transition: all 0.3s ease;
}
.filter-tab:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: #fff;
}
.filter-tab.active {
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  color: #fff;
  border-color: transparent;
}

/* ---------- BLOG POST GRID ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- ARTICLE STYLES ---------- */
.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  color: #e4e4e7;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #a1a1aa;
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}
.article-body strong { color: #e4e4e7; }
.article-body a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: #38bdf8; }

/* ---------- BLOCKQUOTE ---------- */
.article-body blockquote {
  border-left: 3px solid #2563EB;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #d4d4d8;
}

/* ---------- NUMBERED LIST (CUSTOM) ---------- */
.numbered-list { counter-reset: step; list-style: none; padding-left: 0; }
.numbered-list li {
  counter-increment: step;
  position: relative;
  padding-left: 50px;
  margin-bottom: 1.5rem;
}
.numbered-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 34px;
  text-align: center;
}

/* ---------- CTA BUTTON ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563EB);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  background: transparent;
  color: #60a5fa;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.3);
  cursor: pointer;
}
.cta-btn-outline:hover {
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  color: #fff;
}

/* ---------- NEWSLETTER FORM ---------- */
.newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.newsletter-form input[type="email"]::placeholder { color: #52525b; }
.newsletter-form input[type="email"]:focus { border-color: #2563EB; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #71717a;
  font-size: 13px;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #3f3f46; font-size: 13px; }
.breadcrumb .current { color: #a1a1aa; font-size: 13px; }

/* ---------- AUTHOR ---------- */
.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- RELATED POSTS ---------- */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- BACK TO BLOG LINK ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: #60a5fa; }

/* ---------- TABLE (for articles) ---------- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(37, 99, 235, 0.08);
  color: #e4e4e7;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
}
.article-body tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ---------- COMPARISON BOX ---------- */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .comparison-box { grid-template-columns: 1fr 1fr; }
}
.comparison-side {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comparison-before {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.15);
}
.comparison-after {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.15);
}
.comparison-side h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.comparison-before h4 { color: #f87171; }
.comparison-after h4 { color: #4ade80; }
.comparison-side ul { padding-left: 18px; margin: 0; }
.comparison-side li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }

/* ---------- HERO GLOW ---------- */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- UTILITY ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.font-syne { font-family: 'Syne', sans-serif; }
.text-gradient { background: linear-gradient(135deg, #2563EB, #38BDF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 3rem 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
  .article-body h2 { font-size: 1.35rem; }
  .article-body h3 { font-size: 1.1rem; }
  .article-body p, .article-body li { font-size: 0.95rem; }
}
