/* =====================================================================
   SolveIT Venezuela — blog.css
   Estilos para el blog y artículos individuales
   ===================================================================== */

/* ── Blog header ─────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 100%);
  padding: 110px 0 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,176,240,.18) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .75rem;
}
.blog-hero h1 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: .65rem; }
.blog-hero p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 560px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .5; }

/* ── Article grid (listing page) ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: 64px 0;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card-body  { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card-meta  { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; flex-wrap: wrap; }
.article-card-cat   {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--cyan-light); color: var(--cyan-deep);
  padding: .2rem .65rem; border-radius: 50px;
}
.article-card-date  { font-size: .75rem; color: var(--text-muted); }
.article-card-read  { font-size: .75rem; color: var(--text-muted); margin-left: auto; }
.article-card h2    { font-size: 1.1rem; margin-bottom: .65rem; line-height: 1.35; }
.article-card h2 a  { color: var(--text-dark); }
.article-card h2 a:hover { color: var(--cyan); }
.article-card p     { font-size: .88rem; color: var(--text-body); line-height: 1.65; flex: 1; }
.article-card-cta   { margin-top: 1.1rem; font-size: .83rem; font-weight: 600; color: var(--cyan); }
.article-card-cta:hover { text-decoration: underline; }

/* ── Category filter pills ───────────────────────────────────────────── */
.blog-filters {
  display: flex; gap: .55rem; flex-wrap: wrap;
  padding: 28px 0 0; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.filter-pill {
  padding: .4rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-body); background: #fff;
  cursor: pointer; transition: all .2s;
}
.filter-pill.active,
.filter-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Article page ────────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 56px 0 80px;
  align-items: start;
}
.article-header   { margin-bottom: 2.5rem; }
.article-cat-tag  {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--cyan-light); color: var(--cyan-deep);
  padding: .25rem .8rem; border-radius: 50px; margin-bottom: 1rem;
}
.article-header h1 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 1rem; }
.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--text-muted); flex-wrap: wrap;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.article-meta-author { font-weight: 600; color: var(--text-dark); }

/* Prose (article body) */
.article-prose { line-height: 1.8; color: var(--text-body); font-size: .97rem; }
.article-prose h2 {
  font-size: 1.35rem; margin: 2.25rem 0 .85rem;
  color: var(--text-dark); padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; color: var(--text-dark); }
.article-prose p  { margin-bottom: 1.1rem; }
.article-prose ul,
.article-prose ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-prose li { margin-bottom: .45rem; }
.article-prose strong { color: var(--text-dark); font-weight: 600; }
.article-prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: .75rem 1.25rem; margin: 1.5rem 0;
  background: var(--bg-accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-body);
}
.article-prose .highlight-box {
  background: linear-gradient(135deg, var(--bg-accent), var(--cyan-light));
  border: 1px solid rgba(0,176,240,.25);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.article-prose .highlight-box p { margin-bottom: 0; }

/* Article CTA box */
.article-cta-box {
  background: linear-gradient(135deg, var(--navy-darker), var(--navy));
  border-radius: var(--radius-lg); padding: 2rem;
  margin: 2.5rem 0; text-align: center; color: #fff;
}
.article-cta-box h3 { color: #fff; margin-bottom: .65rem; }
.article-cta-box p  { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 1.25rem; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem;
}
.sidebar-card h4 { font-size: .85rem; margin-bottom: 1rem; color: var(--text-dark); }
.toc-list { display: flex; flex-direction: column; gap: .5rem; }
.toc-list a { font-size: .8rem; color: var(--text-body); padding: .3rem .6rem; border-radius: 6px; }
.toc-list a:hover { background: var(--border); color: var(--navy); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sidebar-tag {
  font-size: .72rem; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border);
  padding: .25rem .7rem; border-radius: 50px; color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero  { padding: 100px 0 40px; }
}
