/* =============================================
   32Red Casino UK — style.css
   Brand colours: Deep Red #CC0000 | Gold #FFD700
   Dark BG: #0f0f0f | Card BG: #1a1a1a
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --red-light: #ff2222;
  --gold: #FFD700;
  --gold-dark: #c9a900;
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card2: #222222;
  --bg-header: #0a0a0a;
  --text: #e8e8e8;
  --text-muted: #999;
  --text-light: #ccc;
  --border: #2d2d2d;
  --border-red: rgba(204,0,0,0.35);
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 4px 24px rgba(0,0,0,0.45);
  --font-body: 'Segoe UI', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-dark); }

img { display: block; max-width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-light); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: #111;
}
.btn-gold:hover { background: #ffe033; color: #111; }

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo { flex-shrink: 0; }
.logo svg { display: block; }

.nav-toggle-input {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-burger:hover {
  background: rgba(204,0,0,0.15);
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
  transform-origin: center;
}

.nav-toggle-input:checked ~ .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}
.nav-toggle-input:checked ~ .nav-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle-input:checked ~ .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}

.header-nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  flex: 1;
  order: 2;
}
.header-nav a {
  color: var(--text-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.header-nav a:hover {
  background: rgba(204,0,0,0.15);
  color: var(--gold);
}
.header-cta {
  flex-shrink: 0;
  order: 3;
}

/* ===== BONUS BANNER TOP ===== */
.bonus-banner-top {
  background: linear-gradient(135deg, #8b0000 0%, #CC0000 50%, #8b0000 100%);
  border-bottom: 2px solid var(--gold);
}
.bonus-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}
.bonus-banner-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bonus-banner-text strong {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 900;
}
.bonus-banner-text .bonus-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.bonus-tag {
  background: var(--gold);
  color: #111;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(160deg, #1a0000 0%, #0f0f0f 60%);
  border-bottom: 1px solid var(--border-red);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero-section h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.rating-score {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
}
.rating-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(204,0,0,0.15);
  border: 1px solid var(--border-red);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.toc-nav .container {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.toc-title {
  color: var(--red);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.1rem;
  list-style: none;
  counter-reset: toc;
  flex: 1;
}
.toc-list li {
  counter-increment: toc;
}
.toc-list a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.toc-list a::before {
  content: counter(toc) ". ";
  opacity: 0.6;
}
.toc-list a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 0 20px;
}

.content-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }

.content-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1.75rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.content-section ul,
.content-section ol {
  margin: 0.75rem 0 1rem 1.4rem;
  color: var(--text-light);
}
.content-section li { margin-bottom: 0.5rem; }

/* ===== TABLES ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 540px;
}
thead tr {
  background: var(--red-dark);
}
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
tbody tr:hover { background: rgba(204,0,0,0.07); }
tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--text-light);
  line-height: 1.5;
}
tbody td:first-child { font-weight: 600; color: var(--text); }

/* ===== FEATURE CARDS ===== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--border-red);
  box-shadow: 0 4px 20px rgba(204,0,0,0.12);
}
.feature-icon { margin-bottom: 0.75rem; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.feature-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ===== PROS CONS ===== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.pros-block, .cons-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pros-block { border-top: 3px solid #2e8b57; }
.cons-block { border-top: 3px solid var(--red); }
.pros-block h3 { color: #4caf80; font-size: 1rem; margin: 0 0 1rem; }
.cons-block h3 { color: #ff6666; font-size: 1rem; margin: 0 0 1rem; }
.pros-block ul, .cons-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-light);
}
.pros-block li, .cons-block li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== MID BONUS BANNER ===== */
.bonus-banner-mid {
  background: linear-gradient(135deg, #200000 0%, #3d0000 50%, #200000 100%);
  border: 1px solid rgba(204,0,0,0.5);
  border-radius: var(--radius);
  margin: 2.5rem 0;
}
.bonus-mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}
.bonus-mid-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bonus-mid-text strong {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
}
.bonus-mid-text span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.bonus-tag-dark {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-red); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(204,0,0,0.08); }
.faq-question[aria-expanded="true"] { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204,0,0,0.15);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--red);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
  padding: 0 1.25rem;
  border-top: 1px solid transparent;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-header);
  border-top: 2px solid var(--red-dark);
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.footer-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-copy {
  font-size: 0.78rem;
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    position: relative;
    align-items: center;
  }

  .nav-burger {
    display: flex;
    order: 3;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .header-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: var(--bg-header);
    border-top: 1px solid transparent;
    padding: 0;
    margin-top: 0;
  }

  .nav-toggle-input:checked ~ .header-nav {
    max-height: 320px;
    border-top-color: var(--border);
    padding: 0.5rem 0;
  }

  .header-nav a {
    display: block;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-light);
  }
  .header-nav a:last-child {
    border-bottom: none;
  }
  .header-nav a:hover {
    background: rgba(204,0,0,0.12);
    color: var(--gold);
  }
  .hero-section { padding: 2.5rem 0 2rem; }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .bonus-mid-inner {
    padding: 1.25rem;
    justify-content: center;
    text-align: center;
  }
  .bonus-mid-text { align-items: center; }
  .bonus-banner-inner {
    justify-content: center;
    text-align: center;
  }
  .bonus-banner-text {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }
  .toc-nav .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .content-section { padding: 2rem 0; }
  table { font-size: 0.82rem; }
  thead th { padding: 0.6rem 0.75rem; }
  tbody td { padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.9rem; }
  .rating-score { font-size: 1.2rem; }
  .btn-lg { padding: 0.75rem 1.6rem; font-size: 0.95rem; }
  .bonus-banner-text strong { font-size: 1rem; }
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:focus-visible { outline: 2px solid var(--gold); }

/* ===== SCROLLBAR STYLING ===== */
.table-scroll::-webkit-scrollbar { height: 5px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg-card); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }
