/*
Theme Name: CA8 Cocoa Style (ACF) — Australia
Theme URI: https://example.com/
Author: Your Team
Description: Brown/cocoa casino catalog UI with sidebar, promo row, search + filter pills, game grid, SEO block. ACF Options-driven. AU locale.
Version: 1.0.0
Text Domain: ca8-cocoa-au
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#1a0f0a;
  --bg1:#120a06;
  --panel:#24130c;
  --panel2:#1e110b;
  --card:#2a160e;
  --line: rgba(255,255,255,.10);

  --text:#fff2e8;
  --muted: rgba(255,242,232,.72);

  --gold:#d9b27c;
  --gold2:#f1d5aa;
  --brown:#6a3e24;
  --accent:#ffcf6a;

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow2: 0 12px 24px rgba(217,178,124,.12);

  --wrap: 1260px;
  --sidebar: 260px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 650px at 60% 0%, rgba(217,178,124,.10), transparent 60%),
    radial-gradient(900px 520px at 15% 20%, rgba(255,207,106,.05), transparent 56%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid rgba(255,207,106,.75);
  outline-offset: 2px;
  border-radius: 12px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 16px;
}

/* Buttons / link states */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing:.2px;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,242,232,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.07); border-color: rgba(255,207,106,.22); }

.btn--gold{
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #2a160e;
  box-shadow: var(--shadow2);
}
.btn--gold:hover{ filter: brightness(1.05); }

.link{
  color: rgba(255,242,232,.92);
  text-decoration: underline;
  text-decoration-color: rgba(255,207,106,.40);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(255,207,106,.88); }
.link:active{ opacity:.88; }

.flag{ display:block; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(18,10,6,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.brand__logo{ height: 30px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
}
.topbar__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 8px;
  min-width: 240px;
}
.locale{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,242,232,.86);
}

/* Layout */
.layout{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 16px 26px;
  display:grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar{
  position: sticky;
  top: 74px;
}
@media (max-width: 980px){
  .sidebar{ position: static; top:auto; }
}
.sidebar__box{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sidebar__title{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.25px;
  font-size: 12px;
  color: rgba(255,242,232,.78);
}
.smenu{ padding: 10px; }
.smenu__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.smenu__a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 950;
  color: rgba(255,242,232,.90);
}
.smenu__a:hover{ background: rgba(255,207,106,.07); border-color: rgba(255,207,106,.20); }
.smenu__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

/* Content */
.content{ min-width:0; }

.block{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.block__inner{ padding: 16px; }
@media (min-width: 980px){ .block__inner{ padding: 22px; } }

/* Promo row */
.promos{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 980px){
  .promos{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.promo{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 120px;
}
.promo img{ width:100%; height: 140px; object-fit: cover; }
.promo__overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.60), rgba(0,0,0,.15));
}
.promo__meta{
  position:absolute;
  left: 14px; right: 14px; bottom: 12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}
.promo__title{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: none;
  font-size: 14px;
}
.promo__btn{ flex: 0 0 auto; }

/* Search + filter pills */
.toolbar{
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.search__icon{ opacity:.78; }
.search input{
  border:0; outline:none;
  background: transparent;
  color: rgba(255,242,232,.92);
  font-weight: 850;
  width: 100%;
}
.search input::placeholder{ color: rgba(255,242,232,.55); }

.pills{
  display:flex;
  gap: 10px;
  overflow:auto;
  padding: 12px 2px 2px;
  margin: 0;
  list-style:none;
  scrollbar-width:none;
}
.pills::-webkit-scrollbar{ display:none; }
.pill__a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}
.pill__a:hover{ background: rgba(255,207,106,.07); border-color: rgba(255,207,106,.20); }
.pill__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

/* Grid games */
.grid{
  margin-top: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.grid__inner{ padding: 12px; }
.glist{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width: 720px){
  .glist{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1100px){
  .glist{ grid-template-columns: repeat(5, minmax(0,1fr)); }
}
.gcard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.gcard:hover{ transform: translateY(-1px); border-color: rgba(255,207,106,.20); background: rgba(255,255,255,.04); }
.gmedia{
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.25);
  position:relative;
}
.gmedia img{ width:100%; height:100%; object-fit: cover; }
.gbadge{
  position:absolute;
  top: 10px; left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,207,106,.16);
  border: 1px solid rgba(255,207,106,.28);
  font-weight: 1000;
  font-size: 12px;
}
.gbody{
  padding: 10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.gtitle{
  margin:0;
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: 13px;
  line-height: 1.25;
}
.gsub{
  margin:0;
  color: rgba(255,242,232,.66);
  font-weight: 850;
  font-size: 11px;
}
.grid__actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* SEO box */
.seo{
  margin-top: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 380px at 80% 20%, rgba(255,207,106,.10), transparent 60%),
    radial-gradient(900px 380px at 20% 40%, rgba(217,178,124,.12), transparent 60%),
    rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding: 16px;
}
@media (min-width: 980px){ .seo{ padding: 22px; } }
.seo__title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.25px;
}

/* Prose for internal/SEO content */
.prose{
  max-width: 960px;
  color: rgba(255,242,232,.86);
}
.prose h2,.prose h3,.prose h4{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: uppercase;
  margin: 22px 0 10px;
}
.prose p{ margin: 0 0 12px; line-height: 1.7; color: rgba(255,242,232,.80); }
.prose a{
  color:#fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,207,106,.42);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: rgba(255,207,106,.86); }
.prose ul,.prose ol{ margin: 0 0 14px 18px; padding:0; }
.prose li{ margin: 6px 0; }
.prose table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 18px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.prose th,.prose td{ padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.prose th{ background: rgba(255,207,106,.10); color: rgba(255,242,232,.95); }
.prose tr:last-child td{ border-bottom: none; }

/* Footer */
.site-footer{
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  padding: 22px 0 30px;
}
.footer-note{
  color: rgba(255,242,232,.62);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(255,242,232,.52); font-weight: 850; margin-top: 6px; }

a {
    color: #dfbb87;
}