/*
Theme Name: CA11 SurfPlay (ACF) — Canada
Theme URI: https://example.com/
Author: Your Team
Description: Dark casino UI with left sidebar, topbar search + auth, hero carousel, category strip, popular slider, slots grid. All URLs from ACF Options. Canada locale.
Version: 1.0.0
Text Domain: ca11-surfplay-ca
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#0b1320;
  --bg1:#0a0f1a;

  --panel:#0e1626;
  --panel2:#0c1322;
  --card:#101b2d;

  --line: rgba(255,255,255,.08);
  --text:#eef4ff;
  --muted: rgba(238,244,255,.70);

  --cyan:#19d6ff;
  --cyan2:#00b9ff;
  --blue:#2f6bff;
  --green:#29ffb0;

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

  --shadow: 0 18px 50px rgba(0,0,0,.48);
  --shadow2: 0 12px 28px rgba(25,214,255,.10);

  --wrap: 1280px;
  --sidebar: 250px;

  --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(1000px 520px at 70% 10%, rgba(47,107,255,.12), transparent 60%),
    radial-gradient(900px 520px at 25% 20%, rgba(25,214,255,.10), transparent 56%),
    radial-gradient(900px 520px at 55% 90%, rgba(41,255,176,.05), transparent 55%),
    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, summary:focus-visible{
  outline: 3px solid rgba(25,214,255,.75);
  outline-offset: 2px;
  border-radius: 12px;
}
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 16px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.flag{ display:block; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* Buttons */
.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(238,244,255,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.07); border-color: rgba(25,214,255,.22); }

.btn--cyan{
  background: linear-gradient(180deg, rgba(25,214,255,.98), rgba(0,185,255,.92));
  color: #061018;
  box-shadow: var(--shadow2);
}
.btn--cyan:hover{ filter: brightness(1.04); }

.link{
  color: rgba(238,244,255,.92);
  text-decoration: underline;
  text-decoration-color: rgba(25,214,255,.40);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(25,214,255,.88); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(10,15,26,.76);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 170px;
}
.brand__logo{ height: 30px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
}

.tmid{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content:center;
}
.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  width: min(520px, 100%);
}
.search__icon{ opacity:.78; }
.search input{
  border:0; outline:none;
  background: transparent;
  color: rgba(238,244,255,.92);
  font-weight: 850;
  width: 100%;
}
.search input::placeholder{ color: rgba(238,244,255,.55); }

.tright{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content:flex-end;
  min-width: 280px;
}
.locale{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  color: rgba(238,244,255,.92);
  font-size: 13px;
}

@media (max-width: 980px){
  .tmid{ display:none; }
  .tright{ min-width: 0; }
}

/* Shell layout */
.shell{
  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){
  .shell{ grid-template-columns: 1fr; }
}
.sidebar{
  position: sticky;
  top: 76px;
}
@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__top{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sbtn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  width: 100%;
  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;
}
.sbtn:hover{ background: rgba(25,214,255,.08); border-color: rgba(25,214,255,.18); }
.smenu{ padding: 10px 10px 14px; }
.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: 900;
  color: rgba(238,244,255,.90);
}
.smenu__a:hover{ background: rgba(25,214,255,.08); border-color: rgba(25,214,255,.18); }
.smenu__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

.content{ min-width: 0; }

/* Hero carousel */
.hero{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hview{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.hview::-webkit-scrollbar{ display:none; }
.htrack{
  display:flex;
  gap: 12px;
  padding: 12px;
}
.hslide{
  scroll-snap-align: start;
  flex: 0 0 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  position:relative;
  min-height: 170px;
}
@media (min-width: 980px){
  .hslide{ min-height: 190px; }
}
.hbg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.92;
  filter: saturate(1.1) contrast(1.05);
}
.hoverlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 30% 30%, rgba(25,214,255,.14), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(47,107,255,.18), transparent 58%),
    linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.10));
}
.hinner{
  position:relative;
  padding: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 980px){
  .hinner{ grid-template-columns: 1.2fr .8fr; align-items:center; padding: 18px; }
}
.htitle{
  margin:0 0 8px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: clamp(18px, 2.2vw, 26px);
}
.hsub{
  margin:0 0 12px;
  color: rgba(238,244,255,.78);
  font-weight: 800;
  line-height: 1.5;
}
.hctrl{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 0 12px 12px;
}
.hbtn{
  width: 44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,244,255,.92);
  font-size: 20px;
  cursor:pointer;
}
.hbtn:hover{ background: rgba(25,214,255,.10); border-color: rgba(25,214,255,.18); }

/* Categories strip */
.section{ padding-top: 14px; }
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0 10px;
}
.section-head__title{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(238,244,255,.88);
}
.section-head__more{
  color: rgba(238,244,255,.70);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid rgba(25,214,255,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(25,214,255,.65); }

.cstrip{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cview{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.cview::-webkit-scrollbar{ display:none; }
.ctrack{
  display:flex;
  gap: 12px;
  padding: 12px;
}
.cat{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:center;
  text-align:center;
}
.caticon{
  width: 54px; height:54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.caticon img{ width:100%; height:100%; object-fit: cover; }
.caticon svg{ width:22px; height:22px; fill: rgba(238,244,255,.92); opacity:.95; }
.catlabel{ font-weight: 950; font-size: 12px; color: rgba(238,244,255,.92); }

/* Popular slider */
.slider{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sview{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.sview::-webkit-scrollbar{ display:none; }
.strack{
  display:flex;
  gap: 12px;
  padding: 12px;
}
.pcard{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 180px;
  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);
}
@media (min-width: 980px){
  .pcard{ width: 210px; }
}
.pimg{ height: 120px; background: rgba(0,0,0,.25); }
.pimg img{ width:100%; height:100%; object-fit: cover; }
.pmeta{ padding: 10px 12px 12px; display:flex; flex-direction:column; gap: 6px; }
.ptitle{ margin:0; font-weight: 1000; font-size: 13px; line-height: 1.25; }
.psub{ margin:0; color: rgba(238,244,255,.66); font-weight: 850; font-size: 11px; }
.tag{
  position:absolute;
  top: 10px; left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(25,214,255,.14);
  border: 1px solid rgba(25,214,255,.22);
  font-weight: 1000;
  font-size: 11px;
}
.pwrap{ position:relative; }
.sctrl{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 0 12px 12px;
}
.sbtn{
  width: 44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,244,255,.92);
  font-size: 20px;
  cursor:pointer;
}
.sbtn:hover{ background: rgba(25,214,255,.10); border-color: rgba(25,214,255,.18); }

/* Slots GRID (CA11 decision) */
.grid{
  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(6, 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(25,214,255,.18); background: rgba(255,255,255,.04); }
.gmedia{
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.25);
}
.gmedia img{ width:100%; height:100%; object-fit: cover; }
.gbody{ padding: 10px 12px 12px; }
.gtitle{ margin:0; font-weight: 1000; font-size: 13px; line-height: 1.25; }

/* SEO + Footer */
.seo{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: 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{
  max-width: 980px;
  color: rgba(238,244,255,.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(238,244,255,.80); }
.prose a{
  color:#FF0000;
  text-decoration: underline;
  text-decoration-color: #FF0000;
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: #FF0000; }

.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(238,244,255,.62);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(238,244,255,.52); font-weight: 850; margin-top: 6px; }

a {
    color: #03afee;
}