/* ===================================================================
   ausino.club — Australian online casino review site
   Simple, clean, Traditional Australian green ocean-blue palette with Australian gold accent gold palette.
   =================================================================== */

:root {
  /* Palette — Australian national green Australian green + gold, simple AU vibe gold */
  --c-bg: #ffffff;
  --c-bg-alt: #f0f9f4;
  --c-bg-soft: #d9ebe0;
  --c-ink: #0a1f14;
  --c-ink-soft: #335c47;
  --c-ink-mute: #627a68;
  --c-border: #d9e8dd;
  --c-border-strong: #a9c9b4;

  --c-primary: #006A4E;        /* Australian green */
  --c-primary-700: #004F3C;
  --c-primary-50: #e0f0e9;

  --c-accent: #FFCD00;          /* Australian gold */
  --c-accent-600: #e5b800;

  --c-success: #16a34a;
  --c-warn:    #ea580c;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10, 31, 20, 0.05);
  --sh:    0 4px 14px rgba(10, 31, 20, 0.08);
  --sh-lg: 0 16px 32px rgba(10, 31, 20, 0.10);

  /* Transitions */
  --t-fast: 150ms ease;
  --t:      220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-700); text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5 {
  color: var(--c-ink);
  line-height: 1.25;
  margin: 1.4em 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

/* ------------------------------------------------------------------ Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 60;
  box-shadow: var(--sh-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  min-height: 60px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 56px; width: auto; max-width: 240px; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav a:hover { background: var(--c-primary-50); color: var(--c-primary); text-decoration: none; }
.nav a.active { color: var(--c-primary); background: var(--c-primary-50); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--c-ink);
}

@media (max-width: 900px) {
  .nav { display: none; width: 100%; order: 3; flex-direction: column; gap: 2px; padding: 12px 0; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 14px; border-radius: 0; border-bottom: 1px solid var(--c-border); }
  .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ Hero */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary-50) 0%, #ffffff 60%);
  padding: 42px 0 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 700px) {
  .page-hero { padding: 8px 0 6px; }
  .header-inner { min-height: 52px; padding: 8px 14px; gap: 12px; }
  .logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
  .menu-toggle { padding: 6px 10px; font-size: 1.1rem; }
}
.page-hero .blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(50px);
}
.page-hero .blob.a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 106, 78, 0.35), rgba(0, 106, 78, 0) 70%);
  top: -140px; right: -80px;
}
.page-hero .blob.b {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 205, 0, 0.28), rgba(255, 205, 0, 0) 70%);
  bottom: -120px; left: -60px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--c-ink-mute); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.6; }

.page-hero h1 {
  margin: 4px 0 14px;
  display: block;
  line-height: 1.2;
}
.flag-inline {
  display: inline-block;
  width: 1.4em;
  height: auto;
  vertical-align: -0.22em;
  border-radius: 2px;
  margin: 0 0.15em 0 0.2em;
  box-shadow: 0 0 0 1px rgba(10,31,20,0.08);
}
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 780px;
  margin: 0;
  line-height: 1.55;
}

/* Mobile hero — tight padding + smaller H1 + collapsible lead */
@media (max-width: 700px) {
  .page-hero h1 {
    font-size: 1.3rem;
    margin: 0 0 6px;
    line-height: 1.2;
  }
  .page-hero .lead {
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 2.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
  }
  .page-hero .lead.is-expanded { max-height: 60em; }
  .page-hero .lead::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .page-hero .lead.is-expanded::after { opacity: 0; }
  .breadcrumbs { margin-bottom: 2px; font-size: 0.72rem; }
  .list-heading { font-size: 1.05rem; margin: 14px 0 10px; }
  .page-hero .lead { font-size: 0.9rem; }
}

/* Read more button — only shown on mobile */
.lead-more { display: none !important; }
@media (max-width: 700px) {
  .lead-more {
    display: inline-block !important;
    margin: 6px 0 0;
    background: transparent;
    border: none;
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 0;
    font-family: inherit;
  }
  .lead-more:hover { text-decoration: underline; }
  .lead-more:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
}

/* ------------------------------------------------------------------ Content sections */
.content { padding: 32px 0 24px; }
.content h2 { margin-top: 2rem; }
.content h3 { margin-top: 1.6rem; color: var(--c-primary-700); }
.content ul, .content ol { margin: 0 0 1.2em 1.3em; }
.content li { margin-bottom: 0.4em; }

/* ------------------------------------------------------------------ Casino list */
.list-heading {
  font-size: 1.3rem;
  text-align: left;
  margin: 36px 0 18px;
  color: var(--c-ink);
}
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr 220px 180px;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.casino-card:hover {
  box-shadow: var(--sh);
  border-color: var(--c-border-strong);
  transform: translateY(-1px);
}
.rank-badge {
  position: absolute;
  top: -10px; left: -10px;
  width: 36px; height: 36px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: var(--sh);
  border: 3px solid #fff;
}
.casino-thumb {
  width: 140px; height: 90px;
  background: var(--c-bg-alt);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.casino-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.casino-info h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--c-ink); }
.rating {
  display: inline-block;
  background: var(--c-accent);
  color: #0a1f14;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-right: 8px;
}
.casino-badges { display: inline-block; }
.badge {
  display: inline-block;
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.badge-accredited {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-600));
  color: #fff;
}

.casino-features {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.casino-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
}
.casino-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--c-success);
  font-weight: 800;
}
.casino-features-payout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
}
.casino-features-payout li {
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.casino-features-payout li::before { content: none; }
.feat-label { color: var(--c-ink-mute); }
.feat-value { color: var(--c-ink); font-weight: 600; }
.metric-stars .filled { color: var(--c-accent); letter-spacing: 1px; }
.metric-stars .empty { color: var(--c-border); letter-spacing: 1px; }

.casino-bonus {
  background: linear-gradient(135deg, var(--c-primary-50), #ffffff);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 14px;
  text-align: center;
}
.bonus-label {
  display: block;
  font-size: 0.75rem;
  color: var(--c-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 4px;
}
.bonus-amount {
  display: block;
  font-size: 1.05rem;
  color: var(--c-primary-700);
  font-weight: 800;
  line-height: 1.3;
}

.casino-cta { display: flex; align-items: center; justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-size: 0.98rem;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-600));
  color: #1a1f00;
  box-shadow: 0 4px 10px rgba(229, 184, 0, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-accent-600), var(--c-accent));
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(229, 184, 0, 0.4);
}
.btn-block { display: block; width: 100%; }

@media (max-width: 900px) {
  .casino-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px 18px;
  }
  .casino-thumb { width: 100%; height: 110px; margin: 0 auto; }
  .rank-badge { top: 10px; left: 10px; }
  .casino-bonus { padding: 12px; }
}

/* ------------------------------------------------------------------ TOC */
.toc {
  position: relative;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 24px 0 36px;
  transition: padding var(--t-fast);
}
.toc-title {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 44px;
  transition: margin var(--t-fast);
}
.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
}
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { color: var(--c-ink-soft); }
.toc a:hover { color: var(--c-primary); }
@media (max-width: 700px) {
  .toc ol { columns: 1; }
}

/* Close/toggle button in the top-right corner */
.toc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-ink-mute);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.toc-close:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
}
.toc-close:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.toc.is-collapsed { padding-bottom: 16px; }
.toc.is-collapsed .toc-title { margin-bottom: 0; }
.toc.is-collapsed ol { display: none; }

/* ------------------------------------------------------------------ Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
th { background: var(--c-bg-alt); font-weight: 700; color: var(--c-ink); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--c-bg-alt); }

/* ------------------------------------------------------------------ Review banner */
.review-banner {
  margin: 18px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.review-banner img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------------ Callouts */
.callout {
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 20px 0;
  border-left: 4px solid var(--c-primary);
  background: var(--c-primary-50);
}
.callout h3 { margin: 0 0 8px; color: var(--c-primary-700); font-size: 1rem; }
.callout.is-warning {
  border-left-color: var(--c-warn);
  background: #fff7d1;
}
.callout.is-warning h3 { color: var(--c-warn); }

/* ------------------------------------------------------------------ FAQ accordion */
.faq-accordion { margin: 12px 0 24px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--c-ink);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-weight: 800;
  text-align: center;
  line-height: 24px;
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item:hover summary { background: var(--c-bg-alt); }
.faq-answer { padding: 0 18px 16px; color: var(--c-ink-soft); }
.faq-answer p { margin: 0; }

/* ------------------------------------------------------------------ Author box */
.author-box {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 24px 0;
}
.author-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--sh);
}
.author-eyebrow {
  display: block;
  font-size: 0.75rem;
  color: var(--c-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 2px;
}
.author-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.author-name { margin: 0; font-size: 1.15rem; }
.author-role {
  display: block;
  font-size: 0.9rem;
  color: var(--c-ink-mute);
  margin: 0 0 8px;
}
.author-bio { margin: 8px 0 0; color: var(--c-ink-soft); font-size: 0.95rem; }
.author-email-btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 600;
}
.author-email-btn:hover { background: var(--c-primary-700); color: #fff; text-decoration: none; }
@media (max-width: 600px) {
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-avatar { margin: 0 auto; }
  .author-name-row { justify-content: center; }
}

/* ------------------------------------------------------------------ Related cards */
.related-title {
  text-align: center;
  margin: 36px 0 20px;
  font-size: 1.4rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--t);
  color: var(--c-ink);
}
.related-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--sh);
  color: var(--c-primary);
  text-decoration: none;
  transform: translateY(-2px);
}
.r-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  letter-spacing: 0.05em;
  font-weight: 700;
}
.r-title { font-size: 1.05rem; font-weight: 700; color: inherit; }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, #fff 100%);
  border-top: 1px solid var(--c-border);
  padding: 48px 0 24px;
  margin-top: 60px;
  color: var(--c-ink-soft);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--c-ink-soft); }
.site-footer a:hover { color: var(--c-primary); }
.site-footer .logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.responsible-badge {
  display: inline-block;
  background: var(--c-primary-50);
  color: var(--c-primary-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--c-ink-mute);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Header search (hidden - single market has no multi-market search) */
.header-search { display: none; }

/* ------------------------------------------------------------------ Reveal animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------ Hero → cards section */
.container section { margin-bottom: 20px; }

/* Content container */
.content > .container > section { margin-bottom: 36px; }
