/* =============================================================
   NonGamstop.UK — main.css  |  CLEAN CONVERT v3
   ============================================================= */

@font-face{font-family:'Inter';src:local('Inter');font-display:swap}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --accent: #16A34A;
  --dark: #0f172a;
  --dark2: #1e293b;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-nav a:hover { color: #fff; text-decoration: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav { display: none; }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }

  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark2);
    padding: 16px;
    gap: 12px;
    z-index: 99;
  }

  .mobile-nav a {
    color: #cbd5e1;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1, .hero-desc { color: #f1f5f9; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.stars { font-size: 1.1rem; }

.hero-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.author-mini-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16A34A, #15803d);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  animation: pulse 2s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
  text-decoration: none !important;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

/* ── SECTIONS ── */
.content-section { padding: 64px 0; }

.bg-white { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--dark); color: #f1f5f9; }

.content-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  display: block;
  width: 100%;
  float: none;
  clear: both;
}

.bg-dark h2 { color: #f1f5f9; }

.section-body { margin-top: 24px; }

.section-body p { margin-bottom: 16px; }

.section-body ul, .section-body ol {
  margin: 16px 0 16px 24px;
}

.section-body li { margin-bottom: 8px; }

/* ── H2 BANNERS ── */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
  clear: both;
  margin-bottom: 24px;
}

.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}

.h2-banner-wrap figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 4px 8px 0;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .h2-banner-img { aspect-ratio: 1/1; object-position: center top; }
}

/* ── TABLES ── */
.section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.section-body thead tr {
  background: var(--dark);
  color: #fff;
}

.section-body th, .section-body td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.section-body tbody tr:hover { background: #f0fdf4; }

/* ── VITRINA ── */
.vitrina-section { padding: 64px 0; }

.vitrina-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 32px;
  text-align: center;
}

.vitrina-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .vitrina-grid { grid-template-columns: 1fr; }
}

.casino-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.casino-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.casino-card.top-pick {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.casino-rank {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.casino-badge {
  display: inline-block;
  background: rgba(22,163,74,0.15);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.casino-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
}

.casino-license {
  font-size: 0.85rem;
  color: #94a3b8;
}

.casino-bonus {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fbbf24;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  background: rgba(255,255,255,0.07);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.casino-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.casino-rating {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
}

/* ── AUTHOR ── */
.author-section { padding: 64px 0; }

.author-box {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

.author-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.author-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.author-title {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.author-bio {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.author-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.author-expertise strong { color: #cbd5e1; }

.expertise-tag {
  background: rgba(22,163,74,0.15);
  color: #4ade80;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
}

.author-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── REVIEWED BY ── */
.reviewed-section { padding: 64px 0; }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  text-align: center;
}

.reviewed-by-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .reviewed-by-cards { grid-template-columns: 1fr; }
}

.reviewer-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.reviewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.reviewer-header strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
}

.reviewer-header span {
  font-size: 0.8rem;
  color: var(--muted);
}

.reviewer-stars { margin-bottom: 12px; }

.reviewer-quote {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.reviewer-card time {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── FAQ ── */
.faq-section { padding: 64px 0; }

.faq-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  text-align: center;
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-answer {
  display: none;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.faq-answer.open { display: block; }

.faq-answer p {
  color: var(--text);
  line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .logo { color: #fff; margin-bottom: 8px; display: block; }
.footer-tagline { font-size: 0.85rem; color: #64748b; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-disclaimer p { margin-bottom: 8px; }
.footer-disclaimer a { color: #94a3b8; }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: none;
}

.sticky-cta.visible { display: block; }

.sticky-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ── POPUP ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-overlay[hidden] { display: none; }

.popup-box {
  background: var(--dark2);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  color: #f1f5f9;
}

.popup-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.popup-box p { color: #94a3b8; margin-bottom: 20px; }

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
}

.popup-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 24px; }
  .content-section { padding: 48px 0; }
  .casino-cta { justify-content: center; }
  .h2-banner-wrap { width: calc(100% + 32px); margin-left: -16px; }
}
