/* ============================================
   wino2rbit.com — Dark Neon Theme
   Vanilla CSS — Reset, Variables, Keyframes
   ============================================ */

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
}

/* --- THEME VARIABLES (Dark Neon) --- */
:root {
  /* Backgrounds */
  --bg-deep: #0a0a0f;
  --bg-card: #1a1a2e;
  --bg-elevated: #16213e;
  /* Neon accents */
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00aa;
  --neon-purple: #8b5cf6;
  --neon-green: #00ff88;
  /* Text */
  --text-primary: #f0f0f5;
  --text-muted: #a0a0b0;
  --text-dim: #6b6b7b;
  /* Borders & glows */
  --border-subtle: rgba(0, 245, 255, 0.2);
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4);
  --glow-magenta: 0 0 20px rgba(255, 0, 170, 0.3);
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

/* --- BASE --- */
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.2), transparent 50%),
              radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 245, 255, 0.06), transparent),
              radial-gradient(ellipse 60% 40% at 0% 50%, rgba(255, 0, 170, 0.06), transparent),
              rgba(10, 10, 15, 0.75);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* --- HEADER: Centered logo + split nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) var(--space-xl);
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.site-header .nav-left {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-lg);
}

.site-header .header-logo {
  display: flex;
  justify-content: center;
}

.site-header .nav-right {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-lg);
}

.site-header .nav-left a,
.site-header .nav-right a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.site-header .nav-left a:hover,
.site-header .nav-right a:hover {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

@media (max-width: 768px) {
  .site-header .inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-header .header-logo { order: 1; grid-column: 1 / -1; justify-content: center; }
  .site-header .nav-left { order: 2; justify-content: center; }
  .site-header .nav-right { order: 3; justify-content: center; grid-column: 1 / -1; }
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGlow 4s ease-in-out infinite;
}

.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

@keyframes heroGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* --- PRE-GRID: 3 trust blocks --- */
.pre-grid-trust-trio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust-trio-block {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.trust-trio-block:hover {
  box-shadow: var(--glow-cyan);
}

.trust-trio-block .trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--neon-cyan);
}

.trust-trio-block h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.trust-trio-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 700px) {
  .pre-grid-trust-trio {
    grid-template-columns: 1fr;
  }
}

/* Pre-Grid: extra sections (How We Pick, Editor's Choice, Why Compare) */
.pre-grid-section {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-xl);
  text-align: center;
}

.pre-grid-heading {
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
  color: var(--neon-cyan);
}

.pre-grid-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-consent a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: var(--space-md);
}

.cookie-consent-buttons button {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.cookie-consent-buttons button:first-child {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #0a0a0f;
  border: none;
}

.cookie-consent-buttons button:hover {
  opacity: 0.9;
}

/* --- MAIN CONTENT --- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

/* --- CASINO GRID (3-column cards) --- */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .casino-grid {
    grid-template-columns: 1fr;
  }
}

.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.casino-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.casino-card .card-hero {
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.casino-card .card-hero .card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
}

.casino-card .card-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.casino-card .card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.casino-card .card-offer {
  color: var(--neon-green);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.casino-card .card-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--neon-cyan);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.casino-card .card-cta {
  margin-top: auto;
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.casino-card .card-cta:hover {
  opacity: 0.95;
  box-shadow: var(--glow-cyan);
}

/* --- AGE VERIFICATION MODAL --- */
.age-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.age-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--glow-magenta);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.age-modal h2 {
  margin-bottom: var(--space-md);
  color: var(--neon-cyan);
  font-size: 1.35rem;
}

.age-modal p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.age-modal-buttons {
  display: flex;
  gap: var(--space-md);
}

.age-modal-buttons button {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  transition: opacity var(--transition);
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
}

.age-modal-buttons button:hover {
  opacity: 0.9;
}

.age-modal-buttons .btn-confirm {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #0a0a0f;
}

.age-modal-buttons .btn-decline {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* --- LEGAL / CONTENT PAGES --- */
.legal-page,
.support-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.legal-page h1,
.support-page h1 {
  margin-bottom: var(--space-lg);
  color: var(--neon-cyan);
  font-size: 1.75rem;
}

.legal-page h2,
.support-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.legal-page p,
.support-page p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.support-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.support-list li {
  margin-bottom: var(--space-xs);
}

.support-list a {
  color: var(--neon-cyan);
}

.support-list a:hover {
  text-decoration: underline;
}

/* --- UK COMPLIANCE FOOTER --- */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-regulators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-regulators a {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.footer-regulators a:hover {
  opacity: 0.85;
}

.footer-regulators img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-badges span {
  font-weight: 700;
  color: var(--neon-cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* --- POST-GRID: Author Bio + Responsible Gambling Guide --- */
.post-grid-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.author-bio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.author-bio-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 2rem;
}

.author-bio-box h3 {
  margin-bottom: var(--space-xs);
  color: var(--neon-cyan);
}

.author-bio-box p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .author-bio-box {
    grid-template-columns: 1fr;
  }
}

.responsible-gambling-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.responsible-gambling-guide h3 {
  margin-bottom: var(--space-md);
  color: var(--neon-cyan);
  font-size: 1.25rem;
}

.responsible-gambling-guide p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.responsible-gambling-guide p:last-child {
  margin-bottom: 0;
}

.responsible-gambling-guide a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.responsible-gambling-guide a:hover {
  opacity: 0.9;
}

/* --- UTILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
