/* AdvancedOnTrade.com — design system
   One accent color (#16A34A green) is reserved EXCLUSIVELY for CTAs.
   Links and non-CTA accents use blue. Navy ink for text/surfaces. */

:root {
  --ink: #101828;
  --ink-soft: #475467;
  --surface: #0b1221;
  --surface-2: #121c33;
  --bg: #ffffff;
  --panel: #f5f7fa;
  --line: #e4e7ec;
  --link: #1d4ed8;
  --cta: #16a34a;
  --cta-hover: #12813b;
  --gold: #f59e0b;
  --danger: #dc2626;
  --radius: 10px;
  --maxw: 1080px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: 0.4em 0; }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { background: var(--surface); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; }
.logo em { color: #7ce3a5; font-style: normal; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a { color: #d6dbe6; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: #fff; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); color: #fff; padding: 36px 0 28px; }
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 10px; }
.hero p { color: #c3cad8; max-width: 760px; margin: 0 0 14px; }
.byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: #9aa4b5; margin-top: 10px; }
.byline a { color: #c3cad8; }
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.trust-badges span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #e7ebf2; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 0.82rem; color: var(--ink-soft); margin: 14px 0 0; }
.crumbs a { color: var(--ink-soft); }

/* ---------- toplist table ---------- */
.toplist-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.toplist { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
table.toplist thead th { background: var(--surface); color: #fff; text-align: left; padding: 10px 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
table.toplist td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.toplist tbody tr:nth-child(even) { background: #fafbfc; }
table.toplist tbody tr.top-pick { background: #f0faf3; box-shadow: inset 3px 0 0 var(--cta); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: #fff; font-weight: 700; font-size: 0.85rem; }
tr.top-pick .rank-badge { background: var(--cta); }
.op-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.op-cell img { width: 72px; height: 36px; object-fit: contain; background: #0e1726; border-radius: 6px; padding: 3px 6px; }
.op-cell .op-name { font-weight: 700; }
.logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 36px; border-radius: 6px; background: var(--surface); color: #fff; font-weight: 800; font-size: 0.6rem; text-align: center; padding: 2px 4px; letter-spacing: 0.02em; }
.stars { color: var(--gold); white-space: nowrap; letter-spacing: 1px; }
.score { font-weight: 800; }

/* CTA — the only green elements on the site */
.btn-cta { display: inline-block; background: var(--cta); color: #fff !important; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 8px; white-space: nowrap; font-size: 0.92rem; box-shadow: 0 1px 2px rgba(16,24,40,0.2); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-cta small { display: block; font-weight: 500; font-size: 0.68rem; opacity: 0.9; }

/* neutral action button — for non-affiliate actions (forms, utility) */
.btn-plain { display: inline-block; background: var(--surface); color: #fff !important; font-weight: 700; text-decoration: none; border: none; cursor: pointer; padding: 10px 18px; border-radius: 8px; font-size: 0.92rem; }
.btn-plain:hover { background: var(--surface-2); }

/* ---------- #1 pick spotlight ---------- */
.top-pick-card { display: flex; gap: 18px; align-items: center; border: 2px solid var(--cta); border-radius: var(--radius); padding: 18px; margin: 22px 0; flex-wrap: wrap; background: #f7fdf9; }
.top-pick-card .tag { position: relative; top: -30px; margin-bottom: -22px; background: var(--cta); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.06em; }

/* ---------- mini reviews ---------- */
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.review-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-head img { width: 110px; height: 52px; object-fit: contain; background: #0e1726; border-radius: 8px; padding: 5px 9px; }
.review-head .logo-badge { width: 110px; height: 52px; font-size: 0.78rem; }
.review-head h3 { margin: 0; }
.review-head .score-box { margin-left: auto; text-align: right; }
.review table.info { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 14px 0; }
.review table.info th, .review table.info td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.review table.info th { background: var(--panel); width: 42%; font-weight: 600; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pros, .cons { border-radius: 8px; padding: 12px 16px; font-size: 0.92rem; }
.pros { background: #f2f8f4; border: 1px solid #cfe5d6; }
.cons { background: #fbf3f2; border: 1px solid #ecd4d1; }
.pros h4, .cons h4 { margin: 0 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pros ul, .cons ul { margin: 0; padding-left: 18px; }

/* ---------- generic content tables ---------- */
.content-table-wrap { overflow-x: auto; margin: 18px 0; }
table.content { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.content th, table.content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.content thead th { background: var(--panel); }

/* ---------- numbered decision and how-to steps ---------- */
main ol.steps { margin: 14px 0 24px; padding-left: 1.55rem; }
main ol.steps li { padding: 4px 0 4px 5px; }
main ol.steps li::marker { color: var(--surface-2); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 0 16px; }
.faq summary { font-weight: 700; padding: 13px 0; cursor: pointer; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 12px 0; }

/* ---------- callouts ---------- */
.note, .warn { border-radius: 8px; padding: 14px 16px; margin: 18px 0; font-size: 0.93rem; }
.note { background: #eff4ff; border: 1px solid #cdd9f6; }
.warn { background: #fff7ed; border: 1px solid #f3ddc0; }

/* ---------- responsible gambling block ---------- */
.rg-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 30px 0; font-size: 0.9rem; }
.rg-block h2, .rg-block h3 { margin-top: 0; font-size: 1.05rem; }
.rg-18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); font-weight: 800; font-size: 0.8rem; margin-right: 8px; vertical-align: middle; }

/* ---------- author boxes ---------- */
.author-box { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 26px 0; font-size: 0.92rem; background: var(--panel); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); color: #aab3c2; margin-top: 48px; padding: 36px 0 26px; font-size: 0.88rem; }
.site-footer a { color: #d6dbe6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.footer-cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 6px 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 16px; font-size: 0.78rem; color: #8b94a6; }

/* ---------- utility ---------- */
.updated { font-size: 0.82rem; color: var(--ink-soft); }
.center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-top: 0; }

@media (max-width: 760px) {
  h1, .hero h1 { font-size: 1.5rem; }
  .footer-cols, .grid-3, .pros-cons { grid-template-columns: 1fr; }
  .review-head .score-box { margin-left: 0; text-align: left; }
  .main-nav { margin-left: 0; }
}
