/*
  Safe Migration Guide — trust/credibility visual enhancements (v3).
  Loaded after style.css; overrides keep existing markup and variables intact.
  Goals: calmer hierarchy, stronger official trust signals, more robust surfaces.
*/

:root {
  /* Slightly deeper, more authoritative tones */
  --bg: #eef3ef;
  --surface: #ffffff;
  --surface-2: #e6eee8;
  --ink: #0f1a15;
  --muted: #4a5c53;
  --line: #d4e0d7;
  --accent: #0d5a3f;
  --accent-2: #084230;
  --accent-ink: #f2faf5;
  --accent-soft: #d9ede3;
  --danger: #9b2c2c;
  --danger-soft: #f8e8e5;
  --warn: #7a4f10;
  --warn-soft: #fcf3dd;
  --ok-soft: #d9ede3;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 21, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 26, 21, 0.04), 0 12px 28px rgba(15, 26, 21, 0.08);
  --shadow-lg: 0 4px 8px rgba(15, 26, 21, 0.04), 0 28px 72px rgba(15, 26, 21, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b120f;
    --surface: #141d18;
    --surface-2: #1a2420;
    --ink: #e6ede9;
    --muted: #96aa9e;
    --line: #27362d;
    --accent: #3eb181;
    --accent-2: #2d9367;
    --accent-ink: #07110c;
    --accent-soft: #183025;
    --danger: #e88d85;
    --danger-soft: #38221f;
    --warn: #e4b863;
    --warn-soft: #332a17;
    --ok-soft: #183025;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.38), 0 32px 80px rgba(0, 0, 0, 0.42);
  }
}

/* Official source bar */
.official-bar {
  position: relative;
  z-index: 45;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  line-height: 1.35;
}
.official-bar .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.official-bar .ic {
  width: 18px;
  height: 18px;
  padding: 2px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 5px;
  color: currentColor;
}
.official-bar .official-meta {
  margin-left: auto;
  opacity: 0.85;
  font-weight: 500;
}
[data-lang="bn"] .official-bar { line-height: 1.4; }

/* Stronger, cleaner nav */
.nav {
  height: 60px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.brand .ic {
  width: 28px;
  height: 28px;
  padding: 5px;
  background: var(--accent-soft);
  border-radius: 9px;
}
.brand {
  gap: 12px;
  font-size: 17px;
}
.navlinks a {
  font-weight: 600;
  padding: 8px 14px;
}
#langToggle {
  font-weight: 700;
  padding: 8px 16px;
}

/* Typographic hierarchy — calmer and more authoritative */
.hero {
  gap: 64px;
  padding-top: clamp(40px, 5.5vw, 76px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}
.eyebrow {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.07em;
}

/* Cleaner hero figure — remove rotated layer, add a frame */
.hero-fig::before { display: none; }
.hero-fig a {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-fig a:hover { transform: translateY(-3px) scale(1.005); box-shadow: var(--shadow-lg); }
.hero-fig figcaption { margin-top: 14px; font-size: 13px; }

/* Buttons: weightier, more tactile */
.btn {
  padding: 14px 28px;
  border-width: 2px;
}
.btn-primary { box-shadow: var(--shadow-md); }
.btn-ghost { font-weight: 700; }

/* Stats → calmer authority */
.stats {
  gap: 18px;
  padding-top: 8px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.stat {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .ic {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 11px;
}
.stat b {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat small {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section rhythm */
section { padding-top: clamp(52px, 6.5vw, 92px); }
h2 { margin-bottom: 16px; }
.lead { font-size: 1.06rem; line-height: 1.65; margin-bottom: 32px; }

/* Verdict board — more decisive */
.board { gap: 16px; }
.route {
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.route .route-body { grid-column: 2; }
.route h3 { font-size: 1.15rem; margin-bottom: 8px; }
.route p { font-size: 16px; line-height: 1.6; }
.badge {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 15px;
}

/* Decorative route status */
.route-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-self: center;
  flex: none;
}
.route.ok .route-status { background: var(--ok-soft); color: var(--accent); }
.route.warn .route-status { background: var(--warn-soft); color: var(--warn); }
.route.stop .route-status { background: var(--danger-soft); color: var(--danger); }

/* Golden rules — more formal */
.ledger { border-radius: var(--radius-lg); }
.ledger li { padding: 26px 30px; gap: 26px; }
.ledger .num { font-size: 2.6rem; }
.ledger p { font-size: 1.05rem; line-height: 1.65; }

/* Flag panels — coloured top edge, cleaner */
.flagpanels { gap: 18px; }
.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel.p-green { border-top: 5px solid var(--accent); background: linear-gradient(180deg, var(--ok-soft) 0%, var(--surface) 60%); }
.panel.p-yellow { border-top: 5px solid var(--warn); background: linear-gradient(180deg, var(--warn-soft) 0%, var(--surface) 60%); }
.panel.p-red { border-top: 5px solid var(--danger); background: linear-gradient(180deg, var(--danger-soft) 0%, var(--surface) 60%); }
.panel h3 { font-size: 1.08rem; margin-bottom: 18px; }
.panel li { font-size: 15.5px; line-height: 1.55; }

/* Fraud pairs */
.pairs { border-radius: var(--radius-lg); }
.pair, .pair-head { gap: 36px; padding: 20px 28px; }
.pair-head { padding-bottom: 14px; }

/* Checklist clusters */
.clusters { gap: 18px; }
.cluster { padding: 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cluster legend { font-weight: 800; font-size: 0.93rem; letter-spacing: 0.02em; }
.chk { padding: 12px 10px; }
.chk span { font-size: 15.5px; line-height: 1.6; }

/* Corridors */
.corridors { gap: 18px; }
.corridor { padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.corridor h3 { font-size: 1.2rem; }
.corridor p { line-height: 1.65; }
.corridor .tag { font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }

/* Media shelf */
.shelf { grid-template-columns: repeat(6, 1fr); gap: 18px; }
.shelf-item { border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.shelf video { border-radius: var(--radius); }
.shelf-info a { border-radius: var(--radius); }

/* Report */
.reportgrid { gap: 18px; }
.contacts, .evidence { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contacts li { padding: 22px 28px; }
.evidence { padding: 28px 32px; }

/* Footer */
.foot { padding-top: 64px; padding-bottom: 54px; margin-top: 48px; border-top: 1px solid var(--line); }
.foot p { font-size: 14.5px; line-height: 1.7; }
.footer-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .hero { gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { align-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .official-bar .official-meta { display: none; }
  .official-bar .wrap { justify-content: center; }
  .nav { height: 58px; }
  .brand span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .route .route-status { display: none; }
  .route .route-body { grid-column: 1; }
  .ledger li { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .ledger .num { font-size: 1.9rem; }
}
