/*
Theme Name: GoldenBet Australia
Theme URI: https://golden-bet-australia.com/
Author: golden-bet-australia.com
Description: Lightweight review theme for golden-bet-australia.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: au-goldline-0458
*/

/* ── Палитра (макет A — Dark Gold Premium, цвета с живого сайта бренда) ── */
:root {
  --c-bg: #000000;
  --c-card: #141215;
  --c-note: #16141A;
  --c-row-alt: #0D0C0E;
  --c-border: #3A3335;
  --c-text: #FFFFFF;
  --c-strong: #FFFFFF;
  --c-muted: #9E9698;
  --c-accent: #F1AC33;
  --c-link: #F1AC33;
  --c-cta-1: #F1AC33;
  --c-cta-2: #D08E1C;
  --c-cta-text: #1A1405;
  --c-header: #0A090A;
  --c-header-border: #3A3335;
  --c-header-text: #F3EFEA;
  --c-th: #2A2427;
  --c-th-text: #F1AC33;
  --c-footer: #070607;
  --c-footer-text: #C9C2C4;
  --c-danger: #C1272D;
  --c-ok: #2FA36B;
  --s-sm: 8px;
  --s-md: 18px;
  --s-lg: 28px;
  --r-sm: 10px;
  --r-md: 14px;
}

/* ── Reset + base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4.4vw, 2.65rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-top: 2.2rem; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.6rem; }
h4 { font-size: 1.05rem; margin-top: 1.2rem; }
p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .45rem; }
strong { font-weight: 700; color: var(--c-strong); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--s-md);
}
main#main { display: block; padding-bottom: 3rem; }
section { margin: 2.4rem 0; }
.grid { display: grid; gap: var(--s-md); }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--c-card);
  border-radius: var(--r-md);
  overflow: hidden;
}
th, td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
th { background: var(--c-th); color: var(--c-th-text); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--c-row-alt); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover, .cta-button:hover { transform: translateY(-2px); text-decoration: none; filter: brightness(1.06); }
.btn-primary, .cta-button {
  background: linear-gradient(180deg, var(--c-cta-1), var(--c-cta-2));
  color: var(--c-cta-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-ghost {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--c-header);
  border-bottom: 1px solid var(--c-header-border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.hdr-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; font-weight: 900; font-size: 1.15rem; color: var(--c-header-text); }
.logo img { height: 42px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.nav-menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 1.4vw, 1.25rem);
}
.nav-menu > a, .nav-more-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--c-header-text);
  font-weight: 600;
  font-size: clamp(.86rem, 1.05vw, .97rem);
  padding: .4rem 0;
  cursor: pointer;
}
.nav-menu > a:hover, .nav-more-toggle:hover { color: var(--c-accent); text-decoration: none; }
.nav-item { position: relative; flex: 0 0 auto; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--c-header);
  border: 1px solid var(--c-header-border);
  border-radius: var(--r-sm);
  padding: .4rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  z-index: 999;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .dropdown.open { display: flex; }
.dropdown a { color: var(--c-header-text); padding: .5rem .7rem; border-radius: 6px; font-size: .93rem; white-space: nowrap; }
.dropdown a:hover { background: rgba(255, 255, 255, .08); color: var(--c-accent); text-decoration: none; }
.hdr-cta { flex: 0 0 auto; display: flex; gap: .55rem; align-items: center; }
.hdr-cta .btn { padding: .62rem 1.05rem; font-size: .92rem; }
.burger {
  display: none;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--c-header-border);
  color: var(--c-header-text);
  font-size: 1.35rem;
  line-height: 1;
  padding: .35rem .6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Content blocks ───────────────────────────────────────── */
.content-img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 1.5rem auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
}
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
}
.note, .callout {
  background: var(--c-note);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-sm);
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-md);
  margin: 1.5rem 0;
}
.games-grid > * { min-width: 0; }
.game-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
  padding-bottom: .7rem;
}
.game-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.game-card span { display: block; padding: .55rem .4rem 0; font-size: .9rem; font-weight: 700; }
.chart-fig { margin: 1.6rem 0; }
.chart-fig svg, svg.chart { max-width: 100%; height: auto; display: block; }
.chart-fig figcaption { font-size: .88rem; color: var(--c-muted); text-align: center; margin-top: .5rem; }
.review-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  margin: 1.6rem 0;
}
.review-block .stars { color: var(--c-accent); letter-spacing: 2px; }
.review-block blockquote { margin: .7rem 0 0; font-style: italic; color: var(--c-muted); }
.byline { font-size: .92rem; color: var(--c-muted); margin-bottom: 1.2rem; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: .9rem 0; }
.faq-item h3 { margin: 0 0 .4rem; font-size: 1.06rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  padding: 2.6rem 0 1.6rem;
  margin-top: 3rem;
  border-top: 1px solid var(--c-header-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-lg);
}
.footer-grid > * { min-width: 0; }
.footer-col a { display: block; color: var(--c-footer-text); padding: .22rem 0; font-size: .93rem; opacity: .85; }
.footer-col a:hover { opacity: 1; color: var(--c-accent); }
.footer-title { font-weight: 800; margin-bottom: .6rem; color: #fff; }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-header-border);
  font-size: .85rem;
  color: var(--c-muted);
}
.rg-badges { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.rg-badges span {
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .78rem;
  font-weight: 700;
}

/* ── Cookie notice ────────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--c-footer);
  color: var(--c-footer-text);
  border-top: 2px solid var(--c-accent);
  padding: .9rem var(--s-md);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.cookie-notice .btn { padding: .5rem 1.1rem; font-size: .88rem; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .burger { display: inline-flex; }
  .hdr-inner { flex-wrap: wrap; padding-block: .6rem; gap: .6rem; min-height: 0; }
  .logo { order: 1; margin-right: auto; }
  .burger { order: 2; }
  .nav-menu {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--c-header);
    border-bottom: 1px solid var(--c-header-border);
    padding: .5rem var(--s-md) .9rem;
    gap: 0;
    max-height: 78vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a, .nav-more-toggle { padding: .7rem 0; border-bottom: 1px solid var(--c-header-border); font-size: 1rem; }
  .nav-item { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 .8rem;
    background: transparent;
  }
  .hdr-cta { order: 3; width: 100%; display: flex; gap: .5rem; }
  .hdr-cta .btn { flex: 1 1 0; padding: .78rem .5rem; font-size: .95rem; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  h2 { margin-top: 1.8rem; }
}

@media (max-width: 600px) {
  :root { --s-md: 14px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card img { height: 96px; }
  th, td { padding: .55rem .6rem; font-size: .88rem; }
  /* Мобил-страховка под inline-гриды в контенте */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
