/* ============================================================
   blog.css — FirstAuto blog styles
   ============================================================ */

/* ----------------------------------------------------------
   ART HERO — dark background for article header
   ---------------------------------------------------------- */
.art-hero {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 34%),
    linear-gradient(180deg, #080c18 0%, #0b1220 70%, #101827 100%);
  color: #e7ecf3;
  padding: 52px 0 112px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: #8a95a6; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: #b9d6ff; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ART META */
.art-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a95a6; margin-bottom: 16px; }
.art-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.art-cat {
  color: #ffd166;
  font-weight: 700;
  background: rgba(245, 158, 11, .14) !important;
  border-color: rgba(245, 158, 11, .18) !important;
}

/* ART HERO H1 */
.art-hero h1 { font-size: clamp(26px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; }

/* ART LEAD */
.art-lead { font-size: 17px; color: #c2ccda; max-width: 65ch; margin: 0; line-height: 1.7; }

/* ----------------------------------------------------------
   ART BODY LAYOUT
   ---------------------------------------------------------- */
.art-main {
  background:
    linear-gradient(180deg, #eef3fb 0px, #f7f8fb 180px, #ffffff 100%);
}
.art-body {
  max-width: 1120px;
  padding: 0 24px 88px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.art-post-surface {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow:
    0 32px 100px -52px rgba(15, 23, 42, .45),
    0 20px 44px -34px rgba(30, 64, 175, .22);
}
.art-prose {
  max-width: 70ch;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   ART CONTENT TYPOGRAPHY
   ---------------------------------------------------------- */
.art-content h2 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; letter-spacing: -.01em; margin: 36px 0 12px; color: var(--ink); }
.art-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: var(--ink); }
.art-content p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.art-content > *:first-child { margin-top: 0; }
.art-content > *:last-child { margin-bottom: 0; }
.art-content a,
.art-body a:not(.btn-cta):not(.art-nav-link) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.art-content a:hover,
.art-body a:not(.btn-cta):not(.art-nav-link):hover {
  color: var(--primary-2);
}
.art-content ul, .art-content ol { padding-left: 20px; margin: 0 0 16px; }
.art-content li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }
.art-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.art-content th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.art-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.art-content tr:last-child td { border-bottom: none; }
.art-content tr:nth-child(even) td { background: var(--bg); }

/* ----------------------------------------------------------
   ART CTA
   ---------------------------------------------------------- */
.art-cta {
  max-width: 820px;
  margin: 28px auto 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.18), transparent 32%),
    linear-gradient(135deg, #0b1220 0%, #172554 52%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 28px 80px -44px rgba(15,23,42,.55);
}
.art-cta h3,
.art-body .art-cta h3,
.art-content .art-cta h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.art-cta p,
.art-body .art-cta p,
.art-content .art-cta p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(231,236,243,.84);
  margin: 0 0 18px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 16px 32px -18px rgba(249, 115, 22, .52);
}
.btn-cta:hover { transform: translateY(-1px); }

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.art-faq { margin-top: 40px; }
.art-faq h2 { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 18px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 16px; margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ----------------------------------------------------------
   BLOG LISTING PAGE
   ---------------------------------------------------------- */
.blog-hero { background: linear-gradient(180deg, #080c18, #0b1220); color: #e7ecf3; padding: 56px 0; }
.blog-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 10px; }
.blog-hero p { font-size: 17px; color: #b5c0d0; max-width: 56ch; margin: 0; }

.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--line); }
.filter-btn { padding: 8px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .18s; color: var(--ink-2); font-family: inherit; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.blog-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 80px; }
@media (max-width: 960px) { .blog-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid-full { grid-template-columns: 1fr; } }

.post-card { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 60px -20px rgba(15,23,42,.15); border-color: rgba(30,64,175,.2); }
.post-card-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #0f1829, #1e3060); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.post-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 8px; }
.post-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.55; flex: 1; }
.post-card-read { font-size: 13px; font-weight: 600; color: var(--primary); }

.blog-empty {
  padding: 48px 0 80px;
}
.blog-empty h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -.02em;
}
.blog-empty p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.blog-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0 80px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ----------------------------------------------------------
   CATEGORY PAGE
   ---------------------------------------------------------- */
.cat-hero { background: linear-gradient(180deg, #080c18, #0b1220); color: #e7ecf3; padding: 48px 0; }
.cat-hero .eyebrow { margin-bottom: 12px; display: inline-flex; }
.cat-hero h1 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; margin: 0 0 10px; }
.cat-hero p { font-size: 16px; color: #b5c0d0; max-width: 50ch; margin: 0; }

/* ----------------------------------------------------------
   ART-TABLE standalone (used in articles without .art-content wrapper)
   ---------------------------------------------------------- */
.art-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.art-table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.art-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.art-table tr:last-child td { border-bottom: none; }
.art-table tr:nth-child(even) td { background: var(--bg); }

/* ----------------------------------------------------------
   ART-BODY direct children — for articles without .art-content wrapper
   ---------------------------------------------------------- */
.art-body > h2, .art-body h2 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; letter-spacing: -.01em; margin: 36px 0 12px; color: var(--ink); }
.art-body > h3, .art-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: var(--ink); }
.art-body > p, .art-body p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.art-body > ul, .art-body > ol { padding-left: 20px; margin: 0 0 16px; }
.art-body li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }
.art-body > table, .art-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.art-body table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.art-body table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.art-body table tr:last-child td { border-bottom: none; }
.art-body table tr:nth-child(even) td { background: var(--bg); }

.art-featured-image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px -34px rgba(15,23,42,.35);
}
.art-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.art-content figure,
.art-body figure {
  margin: 24px 0;
}
.art-content img,
.art-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.art-content .wp-block-image img,
.art-body .wp-block-image img {
  width: 100%;
}
.art-content .wp-block-button,
.art-body .wp-block-button {
  margin: 24px 0;
}
.art-content .wp-block-button__link,
.art-body .wp-block-button__link {
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
}
.art-content blockquote,
.art-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 12px;
}

.art-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 28px auto 0;
}
@media (max-width: 680px) {
  .art-nav { grid-template-columns: 1fr; }
}
.art-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.art-nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(30,64,175,.2);
  box-shadow: 0 20px 60px -20px rgba(15,23,42,.15);
}
.art-nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .art-hero { padding: 44px 0 90px; }
  .art-body { padding: 0 15px 72px; margin-top: -44px; }
  .art-post-surface { border-radius: 22px; }
  .art-cta { border-radius: 22px; }
  .breadcrumb,
  .art-meta,
  .filter-btn,
  .post-card-tag,
  .post-card p,
  .post-card-read,
  .art-nav-label {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------
   BLOG HERO eyebrow inside blog-hero
   ---------------------------------------------------------- */
.blog-hero .eyebrow { color: #93c5fd; }
