/* AlternativeAlFumo — Mobile-first stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --coral: #ef4444;
  --coral-light: #fef2f2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --max-w: 860px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue-light);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(59,130,246,0.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--coral); }
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); margin: 5px 0; border-radius: 2px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, #fff 60%);
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero .lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}
.hero-img {
  width: 100%;
  max-width: 680px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ── ARTICLE HEADER ── */
.article-header {
  background: linear-gradient(135deg, var(--blue-light) 0%, #fff 70%);
  padding: 2.5rem 1rem 2rem;
}
.article-header-inner { max-width: var(--max-w); margin: 0 auto; }
.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}
.article-meta .author { font-weight: 600; color: var(--blue); }
.article-meta time { color: var(--gray-600); }
.article-featured-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── CONTENT ── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
}
.content-wrap h2 {
  font-size: 1.35rem;
  color: var(--gray-900);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--blue-light);
}
.content-wrap h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin: 1.5rem 0 0.5rem;
}
.content-wrap p { margin-bottom: 1rem; }
.content-wrap ul, .content-wrap ol { margin: 0.75rem 0 1rem 1.4rem; }
.content-wrap li { margin-bottom: 0.4rem; }
.content-wrap a { color: var(--blue); }
.content-wrap a:hover { color: var(--blue-dark); }

/* ── EDITORIAL NOTE ── */
.editorial-note {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.editorial-note strong { color: var(--blue-dark); }

/* ── INFO BOX ── */
.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.info-box.coral { background: var(--coral-light); border-color: #fca5a5; }
.info-box h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--gray-900); }

/* ── PROS/CONS ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros, .cons {
  border-radius: var(--radius);
  padding: 1rem;
}
.pros { background: #f0fdf4; border: 1px solid #86efac; }
.cons { background: var(--coral-light); border: 1px solid #fca5a5; }
.pros h4 { color: #16a34a; margin-bottom: 0.5rem; }
.cons h4 { color: var(--coral); margin-bottom: 0.5rem; }
.pros ul, .cons ul { margin-left: 1.2rem; }
.pros li::marker { color: #16a34a; }
.cons li::marker { color: var(--coral); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 150px; object-fit: cover; }
.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.card h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 0.4rem; }
.card p { font-size: 0.875rem; color: var(--gray-600); flex: 1; }
.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ── CTA BUTTON ── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-coral { background: var(--coral); }
.btn-coral:hover { background: #dc2626; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-banner h2 { color: var(--white); border: none; margin-top: 0; font-size: 1.4rem; }
.cta-banner p { margin-bottom: 1.25rem; opacity: 0.9; }
.cta-banner .btn { background: var(--white); color: var(--blue); }
.cta-banner .btn:hover { background: var(--blue-light); }

/* ── STORY CARD ── */
.story-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.story-card .story-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}
.story-card .story-method {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.story-card blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
  font-style: italic;
  color: var(--gray-700);
  margin: 0.75rem 0;
}

/* ── QUIZ ── */
.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.quiz-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.quiz-progress .step {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--gray-200);
  transition: background 0.3s;
}
.quiz-progress .step.active { background: var(--blue); }
.quiz-question {
  display: none;
}
.quiz-question.visible { display: block; }
.quiz-question h3 {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.quiz-options { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.quiz-options li label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem;
}
.quiz-options li label:hover { border-color: var(--blue); background: var(--blue-light); }
.quiz-options input[type="radio"] { accent-color: var(--blue); width: 18px; height: 18px; }
.quiz-options input[type="radio"]:checked + span { font-weight: 600; color: var(--blue-dark); }
.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
  gap: 0.75rem;
}
.quiz-result {
  display: none;
  background: var(--blue-light);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.quiz-result.visible { display: block; }
.quiz-result h3 { font-size: 1.4rem; color: var(--blue-dark); margin-bottom: 0.75rem; }
.quiz-result .result-method {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0.5rem 0 1rem;
}
.quiz-result p { margin-bottom: 1rem; color: var(--gray-700); }

/* ── STATS BAR ── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-item {
  flex: 1 1 140px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat-item .stat-label { font-size: 0.8rem; color: var(--gray-600); }

/* ── TABLE ── */
.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.content-wrap table th {
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 700;
}
.content-wrap table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.content-wrap table tr:last-child td { border-bottom: none; }
.content-wrap table tr:nth-child(even) td { background: var(--gray-50); }

/* ── EXTERNAL LINK BOX ── */
.ext-link-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ext-link-box .ext-icon { font-size: 2rem; }
.ext-link-box h4 { color: #15803d; margin-bottom: 0.25rem; }
.ext-link-box p { font-size: 0.875rem; color: var(--gray-700); margin: 0; }
.ext-link-box a { color: #16a34a; font-weight: 700; }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-900);
  color: #9ca3af;
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-disclaimer { font-size: 0.75rem; color: #6b7280; margin-top: 1rem; line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0.75rem 1rem; gap: 0.1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
}
