:root {
  --brand-purple: #6B46C1;
  --brand-black: #111827;
  --brand-yellow: #F59E0B;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--brand-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-black);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.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;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--brand-purple);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--brand-black);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
}

.btn-secondary:hover {
  background-color: var(--brand-purple);
  color: var(--white);
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--error);
  color: var(--white);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--brand-black);
}

.license-note {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 1rem;
}

.features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.shrink {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand h1 {
  font-size: 1.5rem;
  margin: 0;
}

.nav-brand a {
  color: var(--brand-purple);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--brand-purple);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 0.875rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-black) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 4rem 0;
}

.hero h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-200);
  max-width: 500px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-image {
    width: 100%;
  }
}

/* Sections */
section {
  padding: 4rem 0;
}

.featured {
  background-color: var(--gray-50);
}

.featured h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--brand-black);
}

/* How We Review */
.how-we-review {
  background-color: var(--white);
}

.how-we-review h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.criteria-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .criteria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .criteria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.criteria-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--gray-50);
  border-radius: 0.75rem;
}

.criteria-item h3 {
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--gray-50);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--brand-purple);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.testimonial cite {
  font-weight: 600;
  color: var(--brand-purple);
  font-style: normal;
}

/* Responsible Gambling */
.responsible-gambling {
  background-color: var(--error);
  color: var(--white);
  text-align: center;
}

.responsible-gambling .badge {
  background-color: var(--white);
  color: var(--error);
  margin-bottom: 1rem;
}

.responsible-gambling h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.responsible-gambling p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.rg-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rg-links a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

.rg-links a:hover {
  color: var(--gray-200);
}

.rg-logo {
  height: 60px;
  width: auto;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.rg-logo:hover {
  transform: scale(1.05);
}

/* Contact Form */
.contact {
  background-color: var(--white);
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.2);
}

/* Footer */
.footer {
  background-color: var(--brand-black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-300);
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
}

.footer-legal p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.affiliate-disclosure {
  font-weight: 600;
  color: var(--brand-yellow) !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.modal-close:hover {
  color: var(--gray-700);
  background-color: var(--gray-100);
}

.modal h3 {
  color: var(--success);
  margin-bottom: 1rem;
}

.age-verification-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .age-verification-buttons {
    flex-direction: column;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--brand-black);
  color: var(--white);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-link {
  color: var(--gray-300);
  text-decoration: underline;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    min-width: auto;
  }
}

/* Legal Pages */
.legal-page {
  padding: 2rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-purple);
}

.legal-page section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page section:last-child {
  border-bottom: none;
}

.legal-page ul,
.legal-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.cookie-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--brand-black);
}

.legal-disclaimer {
  background-color: var(--gray-50);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--warning);
  margin-top: 2rem;
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 1px solid var(--gray-400);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}