﻿/* ======================================================
   BioQuantum — Blog Article Styles
   ====================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #050810;
  color: #E2E8F0;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== TOKENS ===== */
:root {
  --cyan:   #06D6E0;
  --violet: #9B5DE5;
  --pink:   #F15BB5;
  --green:  #00F5A0;
  --amber:  #FBBF24;
  --bg:     #050810;
  --bg-2:   #080D1A;
  --surface: rgba(255,255,255,0.042);
  --border:  rgba(255,255,255,0.09);
  --border-h: rgba(255,255,255,0.18);
  --text:    #E2E8F0;
  --text-2:  #94A3B8;
  --text-3:  #64748B;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-pill: 100px;
}

/* ===== HEADER ===== */
.bh {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.bh__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bh__logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.bh__logo span { color: var(--cyan); }
.bh__back {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bh__back:hover { color: var(--cyan); }

/* ===== ARTICLE ===== */
.article {
  padding: 56px 24px 80px;
}
.article__container {
  max-width: 860px;
  margin: 0 auto;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article__tag {
  background: rgba(6,214,224,0.15);
  color: var(--cyan);
  border: 1px solid rgba(6,214,224,0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article__tag--chem {
  background: rgba(241,91,181,0.15);
  color: var(--pink);
  border-color: rgba(241,91,181,0.3);
}
.article__tag--green {
  background: rgba(0,245,160,0.12);
  color: var(--green);
  border-color: rgba(0,245,160,0.3);
}
.article__date,
.article__read { font-size: 0.85rem; color: var(--text-3); }

.article__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
}
.article__lead {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
  border-left: 3px solid var(--cyan);
  padding-left: 20px;
}

/* ===== COVER ===== */
.article__cover {
  width: 100%;
  height: 280px;
  border-radius: var(--r-xl);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.article__cover--bio {
  background: linear-gradient(135deg, #06D6E0 0%, #9B5DE5 50%, #050810 100%);
}
.article__cover--bio::after {
  content: '🧬';
  font-size: 120px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.25;
}
.article__cover--chem {
  background: linear-gradient(135deg, #F15BB5 0%, #FBBF24 50%, #050810 100%);
}
.article__cover--chem::after {
  content: '⚗️';
  font-size: 120px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.25;
}
.article__cover--tips {
  background: linear-gradient(135deg, #00F5A0 0%, #06D6E0 50%, #9B5DE5 100%);
}
.article__cover--tips::after {
  content: '📋';
  font-size: 120px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.25;
}

/* ===== TOC ===== */
.article__toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.article__toc-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.article__toc ol { padding-left: 20px; }
.article__toc li { margin-bottom: 8px; }
.article__toc a { font-size: 0.9rem; color: var(--text-2); transition: color 0.2s; }
.article__toc a:hover { color: var(--cyan); }

/* ===== HEADINGS ===== */
.article__container h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 48px 0 20px;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.article__container p {
  margin-bottom: 16px;
  color: var(--text-2);
}

/* ===== INFO BOXES ===== */
.info-box {
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left-width: 3px;
  border-left-style: solid;
}
.info-box--cyan {
  background: rgba(6,214,224,0.08);
  border-color: var(--cyan);
  color: var(--text);
}
.info-box--violet {
  background: rgba(155,93,229,0.08);
  border-color: var(--violet);
  color: var(--text);
}
.info-box--pink {
  background: rgba(241,91,181,0.08);
  border-color: var(--pink);
  color: var(--text);
}

.callout {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* ===== PHASES GRID ===== */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.phases-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.phase-card:hover { border-color: var(--border-h); }
.phase-card__num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--cyan);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 10px;
}
.phase-card__num--pink  { color: var(--pink); }
.phase-card__num--amber { color: var(--amber); }
.phase-card__num--violet { color: var(--violet); }
.phase-card__num--green { color: var(--green); }
.phase-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}
.phase-card p { font-size: 0.875rem; color: var(--text-2); margin: 0; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--r-lg); }
.bio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bio-table thead th {
  background: rgba(6,214,224,0.1);
  color: var(--cyan);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(6,214,224,0.25);
}
.bio-table tbody tr { border-bottom: 1px solid var(--border); }
.bio-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.bio-table td { padding: 12px 16px; color: var(--text-2); vertical-align: top; }
.bio-table td:first-child { color: var(--text); font-weight: 500; }

/* ===== REACTION BLOCK ===== */
.reaction-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}
.reaction {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.reaction__label {
  display: block;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.reaction__eq {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
.reaction__cond {
  color: var(--amber);
  font-style: italic;
}
.reaction__note { font-size: 0.85rem; color: var(--text-3); margin: 0; }

/* ===== MNEMO CARDS ===== */
.mnemo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.mnemo-card__icon { font-size: 1.8rem; flex-shrink: 0; }
.mnemo-card p { margin: 0; }
.text-muted { color: var(--text-3); font-size: 0.875rem; }

/* ===== TASK CARDS ===== */
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.task-card__q { font-weight: 600; margin-bottom: 14px; color: var(--text); }
.task-card__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 4px;
}
.task-card__options span { font-size: 0.9rem; color: var(--text-2); }
.task-card__answer {
  background: rgba(0,245,160,0.08);
  border: 1px solid rgba(0,245,160,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--green);
}

/* ===== STAT ROW (top-mistakes) ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 48px;
}
.stat-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}
.stat-mini__num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 6px;
}
.stat-mini__label { font-size: 0.82rem; color: var(--text-3); }

/* ===== MISTAKES LIST ===== */
.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}
.mistake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.mistake-card:hover {
  border-color: var(--border-h);
  transform: translateX(4px);
}
.mistake-card__num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--violet);
  opacity: 0.35;
  flex-shrink: 0;
  line-height: 1;
  min-width: 48px;
}
.mistake-card__body h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}
.mistake-card__body p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 14px; }
.mistake-card__fix {
  background: rgba(6,214,224,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===== CTA ===== */
.article__cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(6,214,224,0.12), rgba(155,93,229,0.12));
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  margin-top: 64px;
}
.article__cta p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 24px;
}
.article__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  transition: opacity 0.2s, transform 0.2s;
}
.article__cta-btn:hover { opacity: 0.9; transform: scale(1.03); }

/* ===== FOOTER ===== */
.bf {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.bf__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.bf__logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.bf__logo span { color: var(--cyan); }
.bf__nav { display: flex; gap: 24px; }
.bf__nav a { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s; }
.bf__nav a:hover { color: var(--cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .phases-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .mistake-card { flex-direction: column; gap: 12px; }
  .mistake-card__num { font-size: 1.6rem; }
  .article__cover { height: 200px; }
  .article { padding: 40px 20px 60px; }
  .article__toc { padding: 18px 20px; }
  .article__cta { padding: 36px 24px; }
}
@media (max-width: 540px) {
  .phases-grid { grid-template-columns: 1fr; }
  .reaction__eq { font-size: 0.85rem; }
  .bf__nav { flex-direction: column; gap: 10px; }
  .article__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .article__lead { font-size: 1rem; padding-left: 14px; }
  .article__container h2 { font-size: 1.25rem; margin: 32px 0 14px; }
  .mnemo-card { padding: 14px 16px; gap: 12px; }
  .mistake-card { padding: 16px 18px; }
  .article__cta { padding: 28px 18px; margin-top: 48px; }
  .article__cta-btn { font-size: 0.9rem; padding: 12px 24px; }
  .bh__inner { padding: 12px 16px; }
}
