﻿/* =========================================================
   cryptoreview.com.au — main.css
   Editorial financial publication aesthetic
   ========================================================= */

/* ---- Fonts (Google Fonts, with system fallbacks) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Design tokens ---- */
:root {
  --paper: #FAF8F4;
  --paper-warm: #F2EDE4;
  --ink: #0A0A0A;
  --ink-soft: #3A3A3A;
  --ink-muted: #6B6B6B;
  --rule: #D9D2C5;
  --accent: #D62828;
  --accent-deep: #A81F1F;
  --ocean: #1B3A4B;
  --gold: #C89B3C;
  --green: #2D7A4F;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --container: 1180px;
  --container-narrow: 820px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p { margin-bottom: 1.1rem; }
p + p { margin-top: 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ---- Layout primitives ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-tight { padding: 1.5rem 0; }

/* ---- Header / nav ---- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 248, 244, 0.92);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--accent); }
.brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .main-nav.open a { padding: 0.85rem 1.5rem; border-top: 1px solid var(--rule); }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-meta .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.hero h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.hero-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--paper); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-deep); color: var(--paper); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---- Cards / exchange grid ---- */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.exchange-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.exchange-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.06);
}
.exchange-card .rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
}
.exchange-card .rank.featured { background: var(--accent); }
.exchange-card .ec-logo {
  height: 48px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}
.exchange-card .ec-logo img { max-height: 48px; width: auto; }
.exchange-card h3 { font-size: 1.4rem; margin-top: 0; margin-bottom: 0.4rem; }
.exchange-card .ec-tagline { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1rem; }
.exchange-card .ec-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0 1.2rem;
  font-size: 0.82rem;
}
.exchange-card .ec-stat-label {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.exchange-card .ec-stat-value { font-weight: 600; color: var(--ink); }
.exchange-card .ec-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---- Data tables (fee comparisons) ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  font-family: var(--sans);
}
.data-table th {
  text-align: left;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  padding: 0.85rem 0.75rem;
  border-bottom: 2px solid var(--ink);
  font-weight: 500;
}
.data-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--paper-warm); }
.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table .pos { color: var(--green); font-weight: 600; }
.data-table .neg { color: var(--accent); font-weight: 600; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Pillars / feature grid ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.pillar {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.pillar h4 { margin-bottom: 0.5rem; }
.pillar p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---- Compliance / disclosure boxes ---- */
.disclosure {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}
.disclosure strong { color: var(--ink); }

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.compliance-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.compliance-badge.warn::before { background: var(--gold); }
.compliance-badge.fail::before { background: var(--accent); }

/* ---- Pros / cons ---- */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.proscons-col {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.proscons-col h4 { margin-bottom: 0.75rem; }
.proscons-col.cons h4 { color: var(--accent); border-top-color: var(--accent); margin-top: -1rem; padding-top: 1rem; }
.proscons-col ul { list-style: none; }
.proscons-col li { padding: 0.4rem 0 0.4rem 1.3rem; position: relative; font-size: 0.95rem; }
.proscons-col.pros li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.proscons-col.cons li::before { content: "−"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding-top: 0.8rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ---- Quote / testimonial ---- */
.pullquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--ink);
  max-width: 50ch;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h5 {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-brand .brand { color: var(--paper); font-size: 1.5rem; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-about { font-size: 0.88rem; color: rgba(250, 248, 244, 0.7); margin-top: 0.75rem; max-width: 35ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.6);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}
.rule-thin { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.rule-bold { border: 0; border-top: 2px solid var(--ink); margin: 2rem 0 1rem; }
.last-updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.last-updated strong { color: var(--ink); }

.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }

/* ---- Breadcrumbs ---- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; color: var(--rule); }

/* ---- Article content ---- */
.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 3rem; }
.article-body h3 { margin-top: 2rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.2rem 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }

/* ---- Two column for reviews ---- */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-top: 2rem;
}
.review-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 { margin-bottom: 0.75rem; font-size: 0.9rem; }
.sidebar-card .score {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.sidebar-card .score-out { font-size: 1rem; color: var(--ink-muted); }
@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
}

/* ---- Star ratings ---- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
}
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--rule);
  font-family: Arial, sans-serif;
}
.stars::before {
  content: "\2605\2605\2605\2605\2605";
}
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}
.stars-fill::before {
  content: "\2605\2605\2605\2605\2605";
}
.rating-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.rating-out {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.stars-large { font-size: 2.2rem; }
.stars-large + .rating-value { font-size: 1.5rem; font-family: var(--serif); font-weight: 600; }

/* Category ratings on review pages */
.rating-breakdown {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.rating-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.rating-row:last-child { border-bottom: none; }
.rating-row-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---- Screenshot placeholders ---- */
.screenshot-placeholder {
  background: var(--paper-warm);
  border: 1px dashed var(--rule);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.screenshot-placeholder strong {
  display: block;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: 0;
}
.screenshot {
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
}
.screenshot img { display: block; width: 100%; }
.screenshot-caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding: 0.6rem 0.75rem;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}

/* ---- TL;DR / Verdict box ---- */
.verdict-box {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 2px;
}
.verdict-box h3 {
  color: var(--paper);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.verdict-box p { color: rgba(250, 248, 244, 0.88); }
.verdict-box .verdict-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.verdict-box .stars { color: rgba(250, 248, 244, 0.2); }
.verdict-box .rating-value { color: var(--paper); }
.verdict-box .rating-out { color: rgba(250, 248, 244, 0.6); }
.verdict-box a.btn {
  background: var(--accent);
  color: var(--paper);
}
.verdict-box a.btn:hover { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
