/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #0d2840;        /* Deep ocean blue */
  --bg-secondary: #1a3a52;      /* Darker sea blue */
  --bg-card: #081d2e;           /* Night ocean */
  --text-primary: #ffffff;
  --text-secondary: #a8dadc;    /* Powder blue */
  --accent: #ff6b6b;            /* Coral pink */
  --accent-hover: #ff8787;      /* Light coral hover */
  --border-muted: #1b4965;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  
  /* Border Radius */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  
  /* Typography */
  --font-sans: ui-sans-serif, Inter, system-ui, Arial, Helvetica, sans-serif;
  --h1: clamp(28px, 5vw, 42px);
  --h2: clamp(20px, 3vw, 28px);
  --h3: clamp(18px, 2.5vw, 22px);
  --body: 16px;
  --lead: 18px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bg {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-card) 100%);
  background-attachment: fixed;
  position: relative;
}

body.bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/public/img/bg/confetti.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-3) 0;
  line-height: 1.25;
}

h1 {
  font-size: var(--h1);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-size: var(--h2);
  font-weight: 700;
  text-transform: uppercase;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-3) 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section {
  padding: var(--space-8) 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.header-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--body);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--accent);
}

.lang-selector {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 14px 48px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 195, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-9) 0;
  text-align: center;
}

.hero-title {
  margin-bottom: var(--space-2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--lead);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Info Panel
   ============================================ */
.info-panel {
  padding: var(--space-8) 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  max-width: 1160px;
  margin: 0 auto;
}

.info-content {
  color: var(--text-secondary);
}

.info-content p {
  margin-bottom: var(--space-3);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3) 0;
}

.info-list li {
  margin-bottom: var(--space-1);
}

.info-small {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-small i {
  color: var(--accent);
  margin-right: var(--space-1);
}

.link-accent {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: var(--space-3);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.link-accent:hover {
  color: var(--accent-hover);
}

/* ============================================
   How It Works Section
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  text-align: center;
}

.step-badge {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto var(--space-3);
}

.how-card h3 {
  margin: 0;
  font-size: var(--h3);
}

.how-cta {
  text-align: center;
}

/* ============================================
   Why Section
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 200px;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto var(--space-3);
}

.why-card h3 {
  margin: 0;
  font-size: var(--h3);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent);
}

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

.faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--text-secondary);
}

.faq-answer[hidden] {
  display: none;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: var(--space-4);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: var(--body);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.contact-illus {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-illus img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
}

/* ============================================
   Responsible Gaming Section
   ============================================ */
.responsible-gaming {
  background: var(--bg-card);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  font-size: 15px;
}

.responsible-gaming h2 {
  font-size: 20px;
  margin-bottom: var(--space-3);
}

.responsible-gaming h3 {
  font-size: 18px;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.responsible-gaming p {
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.responsible-gaming a {
  color: var(--accent);
}

.rg-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin: var(--space-5) 0;
  flex-wrap: wrap;
}

.age-badge {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.age-badge-large {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.rg-notice {
  font-weight: 600;
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-muted);
  padding: var(--space-7) 0 var(--space-3) 0;
  font-size: 14px;
}

.footer-legal-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-legal-logos a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-legal-logos a:hover {
  opacity: 0.8;
}

.footer-legal-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  display: block;
}

.footer-links {
  text-align: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.footer-links nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.footer-links nav a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.footer-links nav a:hover {
  color: var(--accent);
}

.footer-links nav span {
  color: var(--text-secondary);
}

.footer-contact {
  text-align: center;
  font-style: normal;
}

.footer-contact h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.footer-contact a {
  color: var(--text-primary);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-final {
  text-align: center;
  padding: var(--space-4) 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================
   Page Content (for static pages)
   ============================================ */
.page-content {
  padding: var(--space-9) 0;
}

.page-content h1 {
  text-align: center;
  margin-bottom: var(--space-7);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-5);
}

.content-card h2 {
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.content-card h3 {
  font-size: 18px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.content-card ul {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
}

.content-card li {
  margin-bottom: var(--space-1);
}

.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin: var(--space-5) 0;
  flex-wrap: wrap;
}

.cert-text {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
}

.page-back {
  text-align: center;
  margin-top: var(--space-7);
}

/* ============================================
   Responsive Design
   ============================================ */

/* 576px and up */
@media (min-width: 576px) {
  .container {
    padding: 0 var(--space-5);
  }
}

/* 768px and up */
@media (min-width: 768px) {
  section {
    padding: var(--space-9) 0;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-nav {
    gap: var(--space-6);
  }
}

/* 992px and up */
@media (min-width: 992px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr min(420px, 40vw);
    align-items: center;
  }
}

/* 1200px and up */
@media (min-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile responsive fixes */
@media (max-width: 575px) {
  .header-nav {
    gap: var(--space-2);
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 12px 32px;
    font-size: 14px;
  }
  
  .hero {
    padding: var(--space-7) 0;
  }
}

