/* 09 — BLOG styles */

/* Content boxes — tip, warning, info, guide */
.content-box {
  padding: clamp(16px,3vw,22px);
  border-radius: var(--radius);
  margin: 20px 0;
  border-right: 4px solid;
  line-height: 1.85;
}
.content-box strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.content-box p { margin: 0; }
.content-box ul, .content-box ol { margin: 8px 0 0; padding-right: 20px; }
.content-box li { margin-bottom: 4px; }

.box-tip {
  background: rgba(45,217,107,.08);
  border-color: #2dd96b;
  color: var(--text);
}
.box-tip strong { color: #166534; }
[data-theme="dark"] .box-tip strong { color: #6ee7a0; }

.box-warning {
  background: rgba(255,152,0,.08);
  border-color: #ff9800;
  color: var(--text);
}
.box-warning strong { color: #b45309; }
[data-theme="dark"] .box-warning strong { color: #fbbf24; }

.box-info {
  background: rgba(30,111,255,.08);
  border-color: #1e6fff;
  color: var(--text);
}
.box-info strong { color: #1d4ed8; }
[data-theme="dark"] .box-info strong { color: #60a5fa; }

.box-guide {
  background: rgba(162,93,255,.08);
  border-color: #a25dff;
  color: var(--text);
}
.box-guide strong { color: #7c3aed; }
[data-theme="dark"] .box-guide strong { color: #c084fc; }

/* Price/comparison table */
.price-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.price-table { width: 100%; border-collapse: collapse; font-size: clamp(.85rem,2vw,.95rem); }
.price-table th { background: var(--grad-brand-soft); padding: 12px 16px; text-align: right; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--surface-hover); }
[data-theme="light"] .price-table th { background: rgba(30,111,255,.06); }

/* FAQ in articles (reuse main site faq styles via blog.css import) */
.article-body .faq-item { margin-bottom: 10px; }

/* Blog top banner */
.blog-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding: 10px 0;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}
.blog-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.blog-banner-btn {
  padding: 5px 16px;
  background: #fff;
  color: var(--blue-primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  transition: transform .2s;
}
.blog-banner-btn:hover { transform: scale(1.05); }
.blog-banner + .bg-decor ~ .site-header { top: 40px; }
.blog-banner + .bg-decor ~ .site-header ~ main .article,
.blog-banner + .bg-decor ~ .site-header ~ main .blog-hero { padding-top: clamp(140px,18vw,170px); }

.blog-hero {
  padding: clamp(110px,16vw,140px) 0 clamp(40px,6vw,60px);
  text-align: center;
}
.blog-hero h1 {
  font-weight: 900;
  font-size: clamp(1.8rem,5vw,3rem);
  margin-bottom: 14px;
}
.blog-hero p {
  color: var(--text-muted);
  font-size: clamp(.95rem,2vw,1.1rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
  gap: var(--gap);
  padding-bottom: clamp(40px,8vw,80px);
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px,3.5vw,32px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-blue);
}
.blog-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.blog-card-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-blue);
  transition: transform .4s var(--ease);
}
.blog-card:hover .blog-card-icon { transform: rotate(-8deg) scale(1.1); }
.blog-card-icon svg { width: 100%; height: 100%; }
.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
}
.blog-card h2 {
  font-weight: 700;
  font-size: clamp(1.1rem,2.5vw,1.3rem);
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.5;
}
.blog-card p {
  color: var(--text-muted);
  font-size: clamp(.88rem,2vw,.95rem);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: .92rem;
  transition: gap .3s var(--ease);
}
.blog-card-link:hover { gap: 12px; }
.blog-card-link svg { width: 16px; height: 16px; }

/* Blog card tags */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.blog-card-tags .tag {
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .12);
  color: var(--brand);
  font-weight: 600;
}

/* Blog filter tabs */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(20px, 4vw, 36px);
}
.blog-filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.blog-filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.blog-filter-btn.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

/* Article page */
.article {
  padding: clamp(110px,16vw,140px) 0 clamp(40px,6vw,60px);
}
.article-header {
  max-width: 820px;
  margin: 0 auto clamp(28px,4vw,40px);
}
.article-header h1 {
  font-weight: 900;
  font-size: clamp(1.6rem,4.5vw,2.5rem);
  line-height: 1.35;
  margin-bottom: 16px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--blue-primary); }
.breadcrumb span { opacity: .5; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-dim);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.article-tags .tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s;
}
.article-tags .tag:hover {
  background: rgba(37, 99, 235, .16);
}
.bc-cat {
  color: var(--brand);
  font-weight: 700;
}

/* Article body */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(.95rem,2vw,1.05rem);
  line-height: 2;
  color: var(--text-muted);
}
/* (article-img styles moved below to avoid duplication) */
/* Info callout inside article */
.article-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(16px,2.5vw,22px);
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin: 20px 0;
}
.article-callout-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  padding: 6px; border-radius: 8px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
}
.article-callout-icon svg { width: 18px; height: 18px; }
.article-callout p { margin: 0; font-size: .93rem; }

/* Article images — polished figure cards */
.article-img {
  margin: clamp(20px,4vw,36px) 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: box-shadow .3s ease;
}
.article-img:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}
.article-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}
.article-img figcaption {
  padding: 12px 18px;
  font-size: .85rem;
  color: var(--text-dim);
  background: var(--surface);
  text-align: center;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.article-body h2 {
  font-weight: 700;
  font-size: clamp(1.2rem,3vw,1.6rem);
  color: var(--text);
  margin: clamp(28px,4vw,40px) 0 14px;
}
.article-body h3 {
  font-weight: 700;
  font-size: clamp(1.05rem,2.5vw,1.3rem);
  color: var(--text);
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 14px 0 18px;
  padding-right: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }

/* Article CTA box */
.article-cta {
  max-width: 820px;
  margin: clamp(28px,4vw,40px) auto;
  padding: clamp(24px,4vw,36px);
  background: var(--grad-brand);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
}
.article-cta h3 { font-weight: 900; font-size: 1.3rem; margin-bottom: 10px; }
.article-cta p { opacity: .85; margin-bottom: 16px; font-size: .95rem; }
.article-cta .btn { background: #fff; color: var(--blue-primary); }

/* Related articles */
.related {
  max-width: 820px;
  margin: clamp(28px,4vw,40px) auto 0;
}
.related h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.related-card:hover { border-color: var(--blue-primary); transform: translateY(-3px); }
.related-card h4 { font-weight: 700; font-size: .95rem; color: var(--text); line-height: 1.5; }

/* ===== Blog Mobile Responsive ===== */
@media(max-width:768px) {
  .blog-hero { padding: clamp(100px,14vw,130px) 0 clamp(30px,5vw,50px); }
  .blog-hero h1 { font-size: clamp(1.4rem,4vw,2rem); }
  .blog-hero p { font-size: .92rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-card { padding: 20px 18px; }
  .blog-card h2 { font-size: 1.05rem; }
  .blog-card p { font-size: .88rem; }
  .article { padding: clamp(100px,14vw,130px) 0 clamp(30px,5vw,50px); }
  .article-header h1 { font-size: clamp(1.3rem,4vw,2rem); }
  .article-body { font-size: clamp(.9rem,2vw,1rem); }
  .article-body h2 { font-size: clamp(1.1rem,3vw,1.4rem); }
  .article-body h3 { font-size: clamp(1rem,2.5vw,1.2rem); }
  .article-cta { padding: 24px 18px; }
  .article-cta h3 { font-size: 1.1rem; }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .price-table { font-size: .82rem; }
  .price-table th, .price-table td { padding: 8px 10px; }
  .article-img { margin: 16px 0; }
  .article-img figcaption { font-size: .78rem; padding: 8px 12px; }
  .breadcrumb { font-size: .8rem; }
  .article-meta { font-size: .8rem; gap: 10px; }
}

@media(max-width:480px) {
  .blog-hero { padding: 90px 0 24px; }
  .blog-hero h1 { font-size: 1.3rem; }
  .blog-card { padding: 18px 14px; }
  .blog-card-icon { width: 30px; height: 30px; padding: 6px; }
  .article { padding: 90px 0 24px; }
  .article-header h1 { font-size: 1.2rem; }
  .article-body { font-size: .9rem; line-height: 1.85; }
  .article-cta { padding: 20px 14px; }
  .article-cta h3 { font-size: 1rem; }
  .article-cta .btn { font-size: .88rem; padding: 11px 16px; width: 100%; }
  .related-card { padding: 14px; }
  .related-card h4 { font-size: .88rem; }
  .price-table th, .price-table td { padding: 6px 8px; font-size: .78rem; }
  .blog-banner { font-size: .8rem; padding: 8px 0; }
  .blog-banner .container { gap: 8px; }
  .blog-banner-btn { padding: 4px 12px; font-size: .75rem; }
}

/* Article summary box */
.article-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  border-right: 4px solid var(--blue-primary);
}
.summary-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: clamp(.85rem, 2vw, .95rem);
}
.summary-row strong {
  color: var(--text);
  white-space: nowrap;
}
.summary-row span, .summary-row a {
  color: var(--text-muted);
}
.summary-row a {
  color: var(--blue-primary);
  font-weight: 600;
}

@media(max-width:480px) {
  .article-summary { grid-template-columns: 1fr; gap: 8px; }
}

@media(max-width:380px) {
  .blog-hero h1 { font-size: 1.15rem; }
  .article-header h1 { font-size: 1.1rem; }
  .blog-card h2 { font-size: .95rem; }
  .article-body h2 { font-size: 1rem; }
  .article-cta { padding: 18px 12px; }
}
