/* ==========================================================================
   UKSlotsRadar.co.uk — Premium Editorial Stylesheet
   Mobile-first, lightweight, semantic
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --navy: #0B1D3A;
  --navy-light: #122B52;
  --gold: #C5A55A;
  --gold-muted: #D4BC7C;
  --gold-bg: #FAF6ED;
  --white: #FFFFFF;
  --stone: #F4F2EE;
  --stone-dark: #E8E5DF;
  --charcoal: #2C2C2C;
  --charcoal-light: #555555;
  --border: #DDD8D0;
  --border-light: #ECEAE6;
  --green: #1B7A40;
  --green-light: #E8F5EC;
  --red-soft: #C0392B;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.06);
  --shadow-md: 0 4px 12px rgba(11,29,58,0.08);
  --shadow-lg: 0 8px 30px rgba(11,29,58,0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1180px;
  --header-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--gold); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .5em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .4em; }
h4 { font-size: 1.05rem; margin-bottom: .3em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.logo strong { font-weight: 700; }
.logo:hover { color: var(--navy); }
.logo svg { flex-shrink: 0; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav */
.primary-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  padding: calc(var(--header-height) + 20px) 24px 24px;
  transition: right .35s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 999;
}
.primary-nav.open { right: 0; }

.nav-list { display: flex; flex-direction: column; gap: 0; }
.nav-list > li > a {
  display: block;
  padding: 14px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border-light);
}
.nav-list > li > a.active { color: var(--gold); }
.nav-list > li > a:hover { color: var(--gold); }

.dropdown {
  display: none;
  padding-left: 16px;
  padding-bottom: 8px;
}
.has-dropdown.show-dropdown .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 0;
  font-size: .875rem;
  color: var(--charcoal-light);
}
.dropdown li a:hover { color: var(--gold); }

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,29,58,0.35);
  z-index: 998;
}
.nav-overlay.active { display: block; }

/* ---------- Desktop Nav ---------- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }
  .nav-list { flex-direction: row; gap: 0; align-items: center; }
  .nav-list > li > a {
    padding: 8px 16px;
    border-bottom: none;
    font-size: .9rem;
    border-radius: var(--radius-sm);
  }
  .nav-list > li > a:hover { background: var(--stone); }

  .has-dropdown { position: relative; }
  .has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    z-index: 100;
  }
  .has-dropdown:hover .dropdown { display: block; }
  .has-dropdown .dropdown li a { padding: 8px 16px; }
  .has-dropdown .dropdown li a:hover { background: var(--stone); }
  .has-dropdown.show-dropdown .dropdown { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: .925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s, box-shadow .2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-muted); color: var(--navy); box-shadow: var(--shadow-md); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--navy) 0%, #0F2847 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: .3em; }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 1.5em;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 768px) {
  .hero { padding: 80px 0 70px; }
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  background: var(--stone);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
}
.trust-strip-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section-alt { background: var(--stone); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.section-header p { color: var(--charcoal-light); }

@media (min-width: 768px) {
  .section { padding: 70px 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 14px 0;
  font-size: .82rem;
  color: var(--charcoal-light);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0; align-items: center; list-style: none; }
.breadcrumbs li::after { content: '/'; margin: 0 8px; color: var(--border); }
.breadcrumbs li:last-child::after { content: ''; margin: 0; }
.breadcrumbs a { color: var(--charcoal-light); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- Comparison Table ---------- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5em; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.comparison-table {
  min-width: 700px;
  font-size: .9rem;
}
.comparison-table thead { background: var(--navy); color: var(--white); }
.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--stone); }
.comparison-table .site-name { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--gold); }

.card-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Review Summary Card ---------- */
.review-summary {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 2rem;
}
.review-summary h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.review-meta { display: grid; gap: 12px; }
@media (min-width: 600px) { .review-meta { grid-template-columns: repeat(2, 1fr); } }
.review-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
}
.review-meta-label { font-weight: 600; color: var(--navy); }

/* ---------- Strengths & Weaknesses ---------- */
.pros-cons { display: grid; gap: 24px; margin: 2rem 0; }
@media (min-width: 600px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-list, .cons-list {
  padding: 24px;
  border-radius: var(--radius-md);
}
.pros-list { background: var(--green-light); border: 1px solid #B8E0C4; }
.cons-list { background: #FDF2F0; border: 1px solid #F0C4BF; }
.pros-list h3, .cons-list h3 { font-size: 1rem; margin-bottom: .75rem; }
.pros-list ul, .cons-list ul { padding-left: 1.2em; list-style: disc; }
.pros-list li, .cons-list li { margin-bottom: .4em; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-question {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  gap: 16px;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 0 18px; font-size: .92rem; color: var(--charcoal-light); line-height: 1.7; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(170deg, var(--navy) 0%, #0F2847 100%);
  color: var(--white);
  padding: 44px 0 38px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; }

@media (min-width: 768px) {
  .page-hero { padding: 56px 0 48px; }
}

/* ---------- Content ---------- */
.content { max-width: 800px; margin: 0 auto; }
.content h2 { margin-top: 2.5rem; }
.content h3 { margin-top: 1.8rem; }
.content ul, .content ol { padding-left: 1.4em; margin-bottom: 1em; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: .4em; }
.content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.content a:hover { color: var(--gold); }
.content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5em 0;
  padding: .8em 1.2em;
  background: var(--gold-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--charcoal-light);
}

/* ---------- Responsible Gambling Banner ---------- */
.rg-banner {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.rg-banner h2 { color: var(--white); margin-bottom: .5em; font-size: 1.3rem; }
.rg-banner p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 1em; font-size: .92rem; }

/* ---------- How We Review ---------- */
.review-process { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 600px) { .review-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .review-process { grid-template-columns: repeat(4, 1fr); } }
.review-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 20px 20px;
  counter-increment: step;
}
.review-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
  margin-bottom: 12px;
}
.review-step h3 { font-size: 1rem; }
.review-step p { font-size: .88rem; color: var(--charcoal-light); }

/* ---------- Contact Form ---------- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .92rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,165,90,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Affiliate Disclosure Inline ---------- */
.disclosure-inline {
  background: var(--gold-bg);
  border: 1px solid #E8DFC5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: .85rem;
  color: var(--charcoal-light);
  margin: 1.5rem 0;
}
.disclosure-inline strong { color: var(--navy); }

/* ---------- Support Resources ---------- */
.support-resources {
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) { .support-resources { grid-template-columns: repeat(2, 1fr); } }
.support-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}
.support-card h3 { font-size: 1rem; font-family: var(--font-body); margin-bottom: .3em; }
.support-card p { font-size: .88rem; color: var(--charcoal-light); margin-bottom: .5em; }
.support-card a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-heading {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.footer-col ul li { margin-bottom: .5em; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-legal-strip {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  margin-bottom: 28px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.footer-rg-notice, .footer-affiliate-notice {
  margin-bottom: 14px;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-rg-notice strong, .footer-affiliate-notice strong { color: rgba(255,255,255,0.85); }
.footer-rg-notice a, .footer-affiliate-notice a { color: var(--gold); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.footer-legal-links a { color: rgba(255,255,255,0.55); font-size: .8rem; }
.footer-legal-links a:hover { color: var(--gold); }
.copyright { font-size: .78rem; color: rgba(255,255,255,0.4); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  body { font-size: 12pt; color: #000; }
}
