/* ==========================================================================
   blog.css — спільні стилі для всіх статей блогу
   Підключається разом із styles.css (який задає шрифти, змінні, body)
   ========================================================================== */


/* --- Hero --- */

.article-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.article-tag {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
}

.article-hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-hero h1 .accent {
  color: var(--accent);
}

.article-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}


/* --- Body --- */

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-body h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--accent-dark);
}


/* --- Цитата (бордер зліва) --- */

.article-quote {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
}

.article-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-secondary);
}


/* --- Інфографіка --- */

.article-infographic {
  margin: 28px 0;
}

.article-infographic img,
.article-infographic svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}


/* --- Stat callout (цифра + підпис) --- */

.stat-callout {
  text-align: center;
  padding: 32px 24px;
  margin: 36px 0;
}

.stat-callout .stat-number {
  font-family: var(--serif-num);
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-callout .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}


/* --- CTA-блок --- */

.article-cta {
  background: var(--bg-warm);
  border-radius: 16px;
  padding: 32px;
  margin: 36px 0;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 10px;
}

.article-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFDF8;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.article-cta .btn:hover {
  background: var(--accent-hover);
}


/* --- FAQ --- */

.article-faq h2 {
  margin-top: 48px;
}

.article-faq h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 6px;
  color: var(--text);
}

.article-faq p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* --- Автор --- */

.article-author {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.article-author img {
  width: 80px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-author-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.article-author-info strong {
  font-size: 16px;
  color: var(--text);
}


/* --- Копірайт --- */

.article-copyright {
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 32px;
  line-height: 1.6;
}


/* --- Пов'язані статті --- */

.related-articles {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.related-articles a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}

.related-articles a:hover {
  text-decoration: underline;
}


/* --- Фото автора в тілі статті --- */

.article-photo {
  margin: 28px 0;
  position: relative;
  max-width: 280px;
  float: right;
  margin-left: 24px;
  margin-bottom: 8px;
}

.article-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.article-photo-frame {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent-light);
  border-radius: 16px;
  pointer-events: none;
}


/* --- Скріншоти чатів --- */

.article-image {
  margin: 28px 0;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-image figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

.article-image--screenshot img {
  border: 1px solid var(--border);
  border-radius: 12px;
}


/* --- Допоміжні --- */

.article-section-clear {
  clear: both;
}

.article-rules {
  margin-top: 36px;
}


/* --- Розділювач --- */

.article-divider {
  text-align: center;
  margin: 36px 0;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 8px;
}


/* ==========================================================================
   Ефір-сторінки — додаткові блоки
   ========================================================================== */

/* Бейдж «З прямого ефіру» */
.efir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.efir-badge::before {
  content: "\25CF";
  font-size: 0.6em;
  opacity: 0.7;
}

/* Pull-quote (бордова картка) */
.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  position: relative;
}

.pull-quote::before {
  content: "\00AB";
  font-size: 4rem;
  position: absolute;
  top: -0.1em;
  left: 0.4em;
  opacity: 0.2;
  font-style: normal;
}

.pull-quote .pq-author {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  opacity: 0.8;
}

/* Stat callout для ефіру (з бордером зліва) */
.stat-callout--bordered {
  text-align: left;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  background: var(--accent-bg);
  border-left: 5px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

.stat-callout--bordered .stat-number {
  font-size: 2.2rem;
  font-weight: 600;
}

/* Before/After картки */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}

.before-after .ba-card {
  padding: 1.5rem;
  border-radius: 12px;
}

.before-after .ba-before {
  background: var(--accent-bg);
  border: 1px solid var(--accent-light);
}

.before-after .ba-after {
  background: #F5EDD8;
  border: 1px solid var(--gold);
}

.before-after .ba-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.before-after .ba-before .ba-label { color: var(--accent); }
.before-after .ba-after .ba-label { color: var(--gold); }

.before-after p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 600px) {
  .article-hero { padding: 32px 16px 0; }
  .article-hero h1 { font-size: 28px; }

  .article-body { padding: 0 16px 40px; }
  .article-body h2 { font-size: 22px; }

  .article-cta { padding: 28px 20px; }

  .stat-callout { padding: 20px 16px; margin: 24px 0; }
  .stat-callout .stat-number { font-size: 32px; }
  .stat-callout .stat-label { font-size: 12px; }

  .article-author { flex-direction: column; text-align: center; }

  .article-photo {
    float: none;
    max-width: 200px;
    margin: 20px auto;
  }

  .before-after { grid-template-columns: 1fr; }

  .pull-quote { padding: 1.5rem; font-size: 1.15rem; }
}
