﻿/* ==================================================================
   CALLOUTS, STATS, FAQ
   ================================================================== */

/* ---------- CALLOUTS ---------- */
.callout { display: flex; gap: 14px; padding: 20px 24px; border-radius: var(--r); margin: 28px 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-subtle); }
.callout-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--text); }
.callout-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.callout-body p, .callout p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.callout.tip { border-left-color: var(--success); }
.callout.tip .callout-icon { color: var(--success); }
.callout.warn { border-left-color: var(--warn); }
.callout.warn .callout-icon { color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout.danger .callout-icon { color: var(--danger); }

/* ---------- STAT GRIDS ---------- */
.stat-grid, .stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1280px;
  margin: 28px auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 640px) {
  .stat-grid, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .stat-grid, .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0 var(--pad); }
}
.stat-card, .stat {
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-lift);
  transition: transform .3s, box-shadow .3s;
}
.stat-card:hover, .stat:hover { transform: translateY(-3px); box-shadow: var(--card-lift-hover); }
.stat-num { font-size: 36px; font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* STATS + FAQ — remove own padding when inside a padded parent */
.page-body .stat-grid,
.page-body .stats,
.article-col .stat-grid,
.article-col .stats,
.content .stat-grid,
.content .stats {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- FAQ (details variant) ---------- */
.faq { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--card-lift); transition: box-shadow .3s, transform .3s; }
.faq:hover { box-shadow: var(--card-lift-hover); transform: translateY(-2px); }
@media (min-width: 768px) { .faq { padding: 20px 24px; } }
.faq summary { font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) { .faq summary { font-size: 16px; } }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--text-muted); flex-shrink: 0; transition: transform .3s; }
details[open] .faq summary::after { content: "−"; transform: rotate(180deg); }
.faq p { margin-top: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- FAQ (accordion variant) ---------- */
.faq-item { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-lift); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.faq-item:hover { box-shadow: var(--card-lift-hover); transform: translateY(-2px); }
.faq-item .faq-q { width: 100%; text-align: left; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; color: var(--text); background: transparent; cursor: pointer; transition: color .2s; }
.faq-item .faq-q:hover { color: var(--text-2); }
.faq-item .faq-q .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-item .faq-q .plus::before, .faq-item .faq-q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--text-2); transition: transform .3s; }
.faq-item .faq-q .plus::before { width: 12px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-item .faq-q .plus::after { width: 1.5px; height: 12px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; padding: 0 24px; font-size: 15px; line-height: 1.7; color: var(--text-2); transition: max-height .4s, padding .4s; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 22px; }

/* ---------- FAQ ACCORDION CONTAINER ---------- */
.faq-accordion, .faq-list, .faq-in {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 768px) {
  .faq-accordion, .faq-list, .faq-in {
    padding: 0 var(--pad);
    gap: 16px;
  }
}

/* FAQ — remove own padding when inside a padded parent */
.page-body .faq-accordion,
.page-body .faq-list,
.page-body .faq-in,
.article-col .faq-accordion,
.article-col .faq-list,
.article-col .faq-in,
.content .faq-accordion,
.content .faq-list,
.content .faq-in {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- TAG CLOUD ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 6px; background: var(--bg); color: var(--text-2); border: 1px solid var(--line); transition: background .2s, color .2s; }
.tag-cloud a:hover { background: var(--text); color: var(--bg); }
