/* ==========================================================================
   FC Coins Compare — shared styles
   Pure CSS, no framework. Dark "EA FC" gaming aesthetic with green accent.
   ========================================================================== */

:root {
  --bg: #0b0f14;
  --bg-2: #11161d;
  --bg-3: #161d26;
  --card: #131a23;
  --line: #232c38;
  --text: #e7edf3;
  --muted: #9aa7b5;
  --accent: #00e07a;
  --accent-2: #19b6ff;
  --gold: #ffd23f;
  --danger: #ff5c6c;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --maxw: 1100px;
  --font: "Segoe UI", Inter, Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }       /* safety net against any horizontal page scroll */
body { overflow-x: clip; }

/* offset anchored sections so headings don't hide under the sticky header */
[id] { scroll-margin-top: 80px; }

/* visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 224, 122, .10), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(25, 182, 255, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 5vw, 46px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 56px 0 18px; }
h3 { font-size: 20px; margin: 22px 0 8px; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, .8);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 24px; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(0, 224, 122, .35); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 18px; background: rgba(0, 224, 122, .06);
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 auto 26px; }
.hero .updated { font-size: 13px; color: var(--muted); margin-top: 10px; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #00b765); color: #04130b; box-shadow: 0 8px 26px rgba(0, 224, 122, .3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }

/* ---------- Trust strip ---------- */
.trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 28px 0 0; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--accent); font-weight: 800; }

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--card); }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare thead th { background: var(--bg-3); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.compare tbody tr:hover { background: rgba(255, 255, 255, .015); }
.rank { font-weight: 800; font-size: 18px; color: var(--muted); width: 40px; }
.store { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; font-size: 16px; color: #04130b;
}
.score { font-weight: 800; font-size: 18px; }
.score small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.badge-best {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #04130b; background: var(--gold); padding: 3px 9px; border-radius: 6px; margin-left: 8px;
}
.row-top { background: rgba(0, 224, 122, .05) !important; }
.btn-table { padding: 9px 18px; font-size: 14px; }
.store-link { color: var(--accent); font-weight: 800; text-decoration: none; }
.store-link:hover { text-decoration: underline; }

/* ---------- Comparison table: stacked cards on mobile (no horizontal scroll) ---------- */
@media (max-width: 820px) {
  .table-wrap { overflow: visible; border: 0; box-shadow: none; }
  table.compare { min-width: 0; width: 100%; background: transparent; }
  /* hide the header row visually but keep it for screen readers */
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  table.compare tr {
    display: block; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 16px; margin-bottom: 14px;
  }
  table.compare tr.row-top { border-color: rgba(0, 224, 122, .45); }
  table.compare td {
    display: block; position: relative; text-align: right;
    padding: 11px 0 11px 42%; border: 0; border-bottom: 1px solid var(--line); min-height: 44px;
  }
  table.compare tr td:last-child { border-bottom: 0; }
  table.compare td::before {
    content: attr(data-label); position: absolute; left: 0; top: 11px; width: 40%; text-align: left;
    color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  }
  table.compare td.rank { display: none; }                 /* rank not needed in card view */
  table.compare td.cell-store { padding: 10px 0; text-align: left; }
  table.compare td.cell-store::before { content: none; }
  table.compare td.cell-action { padding: 14px 0 6px; }
  table.compare td.cell-action::before { content: none; }
  table.compare .btn-table { width: 100%; justify-content: center; padding: 12px; }
  .table-wrap .score { font-size: 16px; }
  .table-wrap .score small { display: inline; margin-left: 6px; font-weight: 500; color: var(--muted); }
}

/* ---------- Cards / reviews ---------- */
.grid { display: grid; gap: 20px; }
.reviews-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.review-card.featured { border-color: rgba(0, 224, 122, .4); box-shadow: 0 0 0 1px rgba(0, 224, 122, .15); }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.review-head .score { margin-left: auto; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.pros-cons li { padding-left: 24px; position: relative; margin-bottom: 6px; font-size: 15px; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Info / guide blocks ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.info-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card .ic { font-size: 26px; }

/* ---------- Calculator ---------- */
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.calc-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.calc input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--accent); }
.calc .amount { font-weight: 800; font-size: 22px; color: var(--accent); min-width: 130px; }
.calc-results { margin-top: 18px; display: grid; gap: 10px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.calc-row.best { border-color: rgba(0, 224, 122, .45); }
.calc-row .price { font-weight: 800; }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin-bottom: 12px; background: var(--card); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding-bottom: 16px; margin: 0; color: var(--muted); }

/* ---------- Disclosure note ---------- */
.disclosure {
  font-size: 13px; color: var(--muted); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 16px 0;
}

/* ---------- Content pages ---------- */
.page { padding: 40px 0 20px; }
.page .content { max-width: 760px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 36px 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-footer .legal { margin-top: 18px; max-width: 760px; }
