/*
Theme Name: CA9 HitnSpin (ACF) — Canada
Theme URI: https://example.com/
Author: Your Team
Description: Red hero + search + provider dropdown + category pills + casino tiles grid + slots slider. All URLs from ACF Options. Canada locale.
Version: 1.0.0
Text Domain: ca9-hitnspin-ca
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#120011;
  --bg1:#0c0b12;
  --panel:#14121a;
  --card:#181523;
  --line: rgba(255,255,255,.10);

  --text:#fff;
  --muted: rgba(255,255,255,.72);

  --red:#ff2d55;
  --red2:#ff4d2d;
  --orange:#ff8a00;
  --pink:#ff2fd6;

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

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow2: 0 14px 34px rgba(255,45,85,.12);

  --wrap: 1240px;

  --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(1100px 600px at 70% 10%, rgba(255,45,85,.18), transparent 60%),
    radial-gradient(900px 520px at 20% 20%, rgba(255,138,0,.10), transparent 56%),
    radial-gradient(800px 520px at 55% 90%, rgba(255,47,214,.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(255,138,0,.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;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  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,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,138,0,.22); }

.btn--primary{
  background: linear-gradient(180deg, #ffb11f, var(--orange));
  color: #1c0b0f;
  box-shadow: var(--shadow2);
}
.btn--primary:hover{ filter: brightness(1.05); }

.btn--login{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

.link{
  color: rgba(255,255,255,.94);
  text-decoration: underline;
  text-decoration-color: rgba(255,138,0,.45);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(255,138,0,.90); }

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

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(190,0,68,.95), rgba(255,90,0,.92));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hrow{
  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: 34px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.hnav{
  display:flex;
  justify-content:center;
  flex: 1 1 auto;
}
.hnav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap: 12px;
  overflow:auto;
  scrollbar-width:none;
}
.hnav__list::-webkit-scrollbar{ display:none; }

.hnav__a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.96);
  white-space: nowrap;
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.hnav__a:hover{ background: rgba(0,0,0,.16); border-color: rgba(255,255,255,.18); }
.hnav__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.92; display:block; }

.hright{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  min-width: 280px;
}
.lang{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.12);
  font-weight: 950;
  color: rgba(255,255,255,.96);
}
.lang__chev{ opacity:.85; }

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

/* Hero */
.hero{
  position: relative;
  border-radius: var(--radius2);
  overflow:hidden;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.hero__bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.92;
  filter: saturate(1.1) contrast(1.05);
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 30% 30%, rgba(255,45,85,.30), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(255,138,0,.22), transparent 58%),
    linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
}
.hero__inner{
  position:relative;
  padding: 22px 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items:center;
  min-height: 280px;
}
@media (min-width: 980px){
  .hero__inner{ grid-template-columns: 1.1fr .9fr; padding: 44px 26px; min-height: 360px; }
}
.hero__title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.05;
}
.hero__sub{
  margin: 0 0 16px;
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-weight: 800;
  line-height: 1.55;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap: 10px; }
.hero__meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 13px;
}
.hero__meta span{ background: rgba(0,0,0,.20); border:1px solid rgba(255,255,255,.12); padding: 8px 10px; border-radius: 999px; }

/* Searchbar area (like screenshot) */
.searchbar{
  margin-top: -26px;
  position: relative;
  z-index: 5;
}
.searchbar__row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 980px){
  .searchbar__row{ grid-template-columns: 1fr 320px; }
}
.searchbox, .providersbox{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.searchbox{
  padding: 14px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.searchbox__icon{ color:#1a0b0f; opacity:.7; font-weight: 1000; }
.searchbox input{
  border:0; outline:none;
  width:100%;
  font-weight: 800;
  color:#1a0b0f;
  background: transparent;
}
.searchbox input::placeholder{ color: rgba(26,11,15,.55); }

.providersbox{
  padding: 8px 12px;
  background: rgba(255,255,255,.96);
}
.providersbox summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 950;
  color:#1a0b0f;
  padding: 8px 6px;
}
.providersbox summary::-webkit-details-marker{ display:none; }
.providerslist{
  margin: 8px 0 0;
  padding: 8px 6px 6px;
  border-top: 1px solid rgba(26,11,15,.10);
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.providerslist a{
  color:#1a0b0f;
  font-weight: 850;
}
.providerslist a:hover{ text-decoration: underline; text-decoration-color: rgba(255,90,0,.55); }

/* Pills row */
.pills{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  overflow:auto;
  padding: 8px 2px 2px;
  scrollbar-width:none;
}
.pills::-webkit-scrollbar{ display:none; }
.pill{
  flex: 0 0 auto;
}
.pill__a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight: 950;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
}
.pill__a:hover{ background: rgba(255,138,0,.12); border-color: rgba(255,138,0,.20); }
.pill__a--primary{
  background: linear-gradient(180deg, rgba(255,45,85,.95), rgba(255,45,85,.75));
  border-color: rgba(255,255,255,.18);
}
.pill__icon svg{ width:18px; height:18px; fill: currentColor; opacity:.92; display:block; }

/* Sections */
.section{ padding: 16px 0 0; }
.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: 16px;
}
.section-head__more{
  color: rgba(255,255,255,.74);
  font-weight: 950;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,138,0,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(255,138,0,.65); }

/* Tiles grid */
.tiles{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.tiles__inner{ padding: 12px; }
.tilegrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width: 720px){
  .tilegrid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1100px){
  .tilegrid{ grid-template-columns: repeat(6, minmax(0,1fr)); }
}
.tcard{
  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;
}
.tcard:hover{ transform: translateY(-1px); border-color: rgba(255,138,0,.22); background: rgba(255,255,255,.04); }
.tmedia{
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.25);
  position:relative;
}
.tmedia img{ width:100%; height:100%; object-fit: cover; }
.tbadge{
  position:absolute;
  top: 10px; left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,138,0,.16);
  border: 1px solid rgba(255,138,0,.28);
  font-weight: 1000;
  font-size: 12px;
}
.tbody{ padding: 10px 12px 12px; }
.ttitle{ margin:0; font-weight: 1000; font-size: 13px; line-height: 1.25; }

/* Slots 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;
}
.scard{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 190px;
  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);
}
.simg{
  height: 120px;
  background: rgba(0,0,0,.25);
}
.simg img{ width:100%; height:100%; object-fit: cover; }
.smeta{ padding: 10px 12px 12px; display:flex; flex-direction:column; gap: 6px; }
.stitle{ margin:0; font-weight: 1000; font-size: 13px; line-height: 1.25; }
.ssub{ margin:0; color: rgba(255,255,255,.66); font-weight: 850; font-size: 11px; }

.sctrl{
  display:flex;
  justify-content:center;
  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(255,255,255,.92);
  font-size: 20px;
  cursor:pointer;
}
.sbtn:hover{ background: rgba(255,138,0,.10); border-color: rgba(255,138,0,.20); }

/* SEO */
.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(255,255,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(255,255,255,.80); }
.prose a{
  color:#fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,138,0,.42);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: rgba(255,138,0,.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,138,0,.10); color: rgba(255,255,255,.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,255,255,.62);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(255,255,255,.52); font-weight: 850; margin-top: 6px; }