/* ============================================================
   EU Casino UK — Redesigned stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #0b0d17;
  --bg-elevated:   #141827;
  --bg-card:       #1b2033;
  --bg-soft:       #232942;

  --text:          #e8eaf2;
  --text-muted:    #a3aac0;
  --text-dim:      #737a92;

  --primary:       #2740ee;
  --primary-dark:  #1a2fc4;
  --accent:        #d06c36;
  --accent-dark:   #b45a2b;
  --highlight:     #f6bb00;
  --success:       #71ded8;
  --danger:        #e05c5c;

  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 2px rgba(0,0,0,.35);
  --shadow:        0 8px 28px rgba(0,0,0,.42);
  --shadow-lg:     0 20px 55px rgba(0,0,0,.55);

  --maxw:          1180px;
  --gutter:        24px;
  --font:          'Rubik', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head:     'Karla', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; transition: color .22s ease, opacity .22s ease; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: #fff;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-top: 1.8em; }
h2:first-child, h3:first-child { margin-top: 0; }

/* ---------- Layout ---------- */
.px6hcc { padding: 0; }

.wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,23,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand a { display: inline-block; line-height: 0; }
.brand img { width: 200px; height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, opacity .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(39,64,238,.35);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(39,64,238,.5);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(208,108,54,.35);
}
.btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 26px rgba(208,108,54,.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(39,64,238,.12);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Page title ---------- */
.page-title {
  text-align: center;
  color: var(--accent);
  margin: 40px 0 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 46px;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__text p { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  margin: 34px 0 40px;
}
.split--reverse { grid-template-columns: 1.15fr 1fr; }
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__text p { color: var(--text-muted); }

/* ---------- Cards / grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0 36px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); font-size: .96rem; }

.card--pro { border-top: 3px solid var(--success); }
.card--con { border-top: 3px solid var(--danger); }

/* ---------- Lists ---------- */
.list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: .96rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.list li:last-child { margin-bottom: 0; }

/* ---------- Casino cards ---------- */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 30px 0 42px;
}

.casino-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 24px;
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.casino-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208,108,54,.5);
  box-shadow: var(--shadow);
}

.casino-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.casino-card__brand figure { flex: 0 0 150px; }
.casino-card__brand img { width: 100%; border-radius: 6px; }

.casino-card__bonus { text-align: right; }
.casino-card__label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.casino-card__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--highlight);
  line-height: 1.3;
}

.casino-card__actions {
  display: flex;
  gap: 12px;
}
.casino-card__actions .btn { flex: 1; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 560px;
}
.table-wrap th,
.table-wrap td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table-wrap thead th {
  background: rgba(39,64,238,.14);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
.table-wrap tbody tr:hover { background: rgba(39,64,238,.08); }
.table-wrap td { color: var(--text-muted); }

/* ---------- Blockquote ---------- */
.user-feedback {
  position: relative;
  margin: 36px 0 44px;
  padding: 34px 36px;
  background: linear-gradient(150deg, rgba(39,64,238,.16), rgba(208,108,54,.1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}
.user-feedback__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--highlight);
  margin-bottom: 12px;
}
.user-feedback p { color: var(--text-muted); }
.user-feedback p + p { margin-top: .9em; }

/* ---------- TOC ---------- */
.auto-toc {
  margin: 44px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.auto-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid transparent;
}
.auto-toc._open .auto-toc__head { border-bottom-color: var(--border); }
.auto-toc__head > span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.auto-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform .28s ease, color .22s ease, border-color .22s ease;
}
.auto-toc__toggle:hover { color: #fff; border-color: var(--accent); }
.auto-toc._open .auto-toc__toggle { transform: rotate(180deg); }

.auto-toc__body {
  display: none;
  padding: 18px 24px 22px;
}
.auto-toc._open .auto-toc__body { display: block; }

.auto-toc__body ol {
  margin: 0;
  padding-left: 22px;
  counter-reset: toc;
  list-style: none;
}
.auto-toc__body ol li {
  position: relative;
  counter-increment: toc;
  padding-left: 8px;
  margin-bottom: 8px;
}
.auto-toc__body ol li::before {
  content: counter(toc) ".";
  position: absolute;
  left: -22px;
  color: var(--accent);
  font-weight: 700;
  font-size: .88rem;
}
.auto-toc__body a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .18s ease;
}
.auto-toc__body a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq { margin: 28px 0 40px; }

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.faq__item[open] {
  border-color: rgba(208,108,54,.45);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 24px;
  position: relative;
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  transition: color .18s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(39,64,238,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(39,64,238,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(39,64,238,.12) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 70%);
  background-repeat: no-repeat;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__brand img { width: 250px; height: auto; }

.site-footer__copy {
  display: inline-flex;
  align-items: center;
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem;
}
.site-footer__copy p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero,
  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 26px; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__media { order: 2; }
  .casino-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }

  h2 { margin-top: 2em; }

  .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px var(--gutter);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .header-actions .btn { width: 100%; }

  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }

  .casino-card__brand { flex-direction: column; align-items: flex-start; }
  .casino-card__brand figure { flex: 0 0 auto; width: 160px; }
  .casino-card__bonus { text-align: left; }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    padding: 40px var(--gutter) 32px;
  }

  .page-title { margin-top: 26px; }
}

@media (max-width: 480px) {
  .casino-card__actions { flex-direction: column; }
  .btn { padding: 11px 20px; font-size: 13px; }
}