/* ==========================================================================
   GALOTTECH — BLOG & EDITORIAL DESIGN SYSTEM
   Theme: High-Tech Data Science & Engineering
   Aesthetic: Pure Typographic Precision / Zero Heavy Images
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BLOG HEADER & HERO
   -------------------------------------------------------------------------- */
.blog-hero {
  padding: 130px 0 50px 0;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.blog-hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.blog-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.blog-hero-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px auto;
}

/* --------------------------------------------------------------------------
   2. SEARCH & CATEGORY FILTERS
   -------------------------------------------------------------------------- */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.blog-search-box {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.blog-search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 18px 14px 48px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
}

.blog-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  background: rgba(16, 25, 42, 0.95);
}

.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-cat-btn {
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-cat-btn:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: #ffffff;
  background: rgba(16, 25, 42, 0.9);
}

.blog-cat-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

/* --------------------------------------------------------------------------
   3. ARTICLE LISTING CARDS (Pure Typography / Data-Driven)
   -------------------------------------------------------------------------- */
.blog-feed-section {
  padding: 50px 0 90px 0;
}

.blog-feed-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: rgba(12, 18, 30, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.blog-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3.5px;
  height: 0;
  background: var(--cyan);
  transition: height var(--transition-smooth);
}

.blog-card:hover {
  background: rgba(16, 25, 42, 0.95);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 229, 255, 0.08);
}

.blog-card:hover::before {
  height: 100%;
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.blog-card-meta span.dot {
  opacity: 0.4;
}

.blog-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 14px;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title a {
  color: var(--cyan);
}

.blog-card-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-read-link {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   4. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  padding: 100px 0 20px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb-list a:hover {
  color: var(--cyan);
}

.breadcrumb-separator {
  color: var(--text-dim);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--cyan);
  font-weight: 600;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   5. SINGLE ARTICLE LAYOUT & TYPOGRAPHY (.prose)
   -------------------------------------------------------------------------- */
.article-section {
  padding: 20px 0 90px 0;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-category-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 5px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.article-main-h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.article-meta-bar span.dot {
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   6. THE PROSE ENGINE (Article Content Formatting)
   -------------------------------------------------------------------------- */
.prose {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.prose p {
  margin-bottom: 26px;
}

.prose strong {
  color: #ffffff;
  font-weight: 700;
}

.prose em {
  color: var(--text-secondary);
  font-style: italic;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 48px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--cyan);
}

.prose h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 16px 0;
}

.prose ul, .prose ol {
  margin: 0 0 28px 24px;
  padding: 0;
}

.prose li {
  margin-bottom: 12px;
  line-height: 1.75;
}

.prose li::marker {
  color: var(--cyan);
}

.prose blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(12, 18, 30, 0.8);
  border-left: 3px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  color: var(--text-main);
  font-style: normal;
  backdrop-filter: blur(12px);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Callout técnico */
.prose .tech-callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  position: relative;
}

.prose .tech-callout-header {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabelas */
.prose .table-container, .prose table {
  width: 100%;
  margin: 36px 0;
  border-collapse: collapse;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.75);
  border: 1px solid var(--border-subtle);
}

.prose th {
  background: rgba(16, 25, 42, 0.9);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}

.prose td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Links internos */
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.prose a:hover {
  opacity: 0.8;
}

/* Code & Terminal Snippets */
.prose code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  padding: 2px 7px;
  border-radius: 6px;
}

.prose pre {
  margin: 32px 0;
  padding: 20px 24px;
  background: #05080e;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow-x: auto;
}

.prose pre code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   7. CTA BOX FINAL (Conversão Estratégica / WhatsApp)
   -------------------------------------------------------------------------- */
.article-cta-box {
  margin: 60px 0 30px 0;
  padding: 40px 44px;
  background: radial-gradient(circle at 100% 0%, rgba(0, 229, 255, 0.12) 0%, rgba(12, 18, 30, 0.95) 70%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-cta-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-cta-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.article-cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVIDADE ESPECÍFICA DO BLOG
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .blog-hero {
    padding: 100px 0 40px 0;
  }

  .blog-card {
    padding: 24px 20px;
  }

  .blog-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-cta-box {
    padding: 28px 24px;
  }

  .article-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .article-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .prose {
    font-size: 1.02rem;
    line-height: 1.75;
  }
}
