/**
 * main.css — Supplemental design system styles
 *
 * This file contains styles for components and layouts defined in CLAUDE.md
 * that supplement the primary design tokens in style.css.
 *
 * DO NOT override color variables or font tokens here.
 * All design tokens live in style.css :root.
 */

/* ===================================================
   STATS BAR — force horizontal flex row
   =================================================== */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

/* Dividers between stats (hide on smallest screens) */
@media (min-width: 480px) {
  .stats-bar .stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.25);
    padding-left: 2rem;
  }
}

/* ===================================================
   FLOATING CTA BUTTON — bottom-right
   =================================================== */
.floating-call-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

/* ===================================================
   FAQ SECTION (parts/faq-section.php)
   =================================================== */
.faq-section .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gray-light);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.faq-question[aria-expanded="true"] {
  background: var(--blue-light);
  color: var(--blue);
}

.faq-icon::before {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
  display: inline-block;
}

.faq-question[aria-expanded="true"] .faq-icon::before {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 1rem 1.25rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.faq-answer[hidden] {
  display: none;
}

/* ===================================================
   DISCLAIMER TEXT (parts/disclaimer.php)
   =================================================== */
.disclaimer-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ===================================================
   PAGE TEMPLATES (templates/)
   =================================================== */
.severity-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.severity-low      { background: #d1fae5; color: #065f46; }
.severity-medium   { background: #fef3c7; color: #92400e; }
.severity-high     { background: #fee2e2; color: #991b1b; }
.severity-critical { background: #7f1d1d; color: #fff; }

/* ===================================================
   ARCHIVE GENERIC (archive.php)
   =================================================== */
.card-meta {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 0.5rem;
}

.card-excerpt {
  color: var(--gray-mid);
  line-height: 1.6;
}
