/* ============================================
   H2bet Brazil - Professional Casino Style CSS
   Design System: Luxury Green & Gold
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Primary Colors - Green & Gold Luxury Theme */
  --color-primary: #1a5c3a;
  --color-primary-dark: #0d3d26;
  --color-primary-light: #2d8c5a;
  --color-accent: #d4af37;
  --color-accent-light: #e8c864;
  --color-accent-dark: #b8972e;

  /* Neutral Colors */
  --color-bg: #0a0a0a;
  --color-bg-secondary: #141414;
  --color-bg-card: #1a1a1a;
  --color-bg-elevated: #222222;
  --color-text: #f5f5f5;
  --color-text-secondary: #b0b0b0;
  --color-text-muted: #707070;
  --color-border: #333333;
  --color-border-light: #444444;

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Spacing (8px base grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
  position: relative;
  padding-bottom: var(--space-md);
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: var(--radius-full);
}

h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

main {
  padding: var(--space-3xl) 0;
}

section {
  margin-bottom: var(--space-3xl);
}

/* ============================================
   Header
   ============================================ */

.header {
  background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.header__logo-text span {
  color: var(--color-accent);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav__link {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
  background-color: var(--color-bg-elevated);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-sm);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(26, 92, 58, 0.7) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__rating {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.hero__stars {
  color: var(--color-accent);
  font-size: var(--text-2xl);
}

.hero__rating-text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-bg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.4);
  color: var(--color-bg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-light);
}

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

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

/* ============================================
   Cards & Content Blocks
   ============================================ */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.content-block {
  margin-bottom: var(--space-3xl);
}

.content-block--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.content-block--featured-left .content-block__image {
  order: -1;
}

.content-block__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-block__image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.content-block:hover .content-block__image img {
  transform: scale(1.02);
}

/* ============================================
   Content Grid
   ============================================ */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.content-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.grid-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.grid-item__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.grid-item__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.grid-item__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   Tables
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}

th, td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-elevated);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: var(--color-bg-elevated);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Lists
   ============================================ */

ul, ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

li {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

ul li::marker {
  color: var(--color-accent);
}

ol li::marker {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

/* Checklist Style */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--space-xl);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

/* ============================================
   Info Box / Alert
   ============================================ */

.info-box {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box--warning {
  border-color: var(--color-warning);
  background: rgba(245, 158, 11, 0.1);
}

.info-box--success {
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
}

.info-box__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

/* ============================================
   FAQ / Accordion
   ============================================ */

.faq-list {
  margin: var(--space-xl) 0;
}

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

.faq-question {
  width: 100%;
  background: var(--color-bg-card);
  border: none;
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

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

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-secondary);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============================================
   Rating Stars
   ============================================ */

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.rating__star {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.rating__star--empty {
  color: var(--color-text-muted);
}

.rating__value {
  margin-left: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.cta-section__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  height: 40px;
}

.footer__description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

.footer__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Responsible Gaming */
.responsible-gaming {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  text-align: center;
}

.responsible-gaming__title {
  color: var(--color-warning);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.responsible-gaming__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.responsible-gaming__links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.responsible-gaming__links a {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary-light); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.hidden { display: none; }

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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 40px;
    --text-4xl: 32px;
    --text-3xl: 26px;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-block--featured {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-5xl: 32px;
    --text-4xl: 28px;
    --text-3xl: 24px;
    --text-2xl: 20px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header__inner {
    padding: var(--space-sm) var(--space-md);
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-md);
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  table {
    font-size: var(--text-sm);
  }

  th, td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --text-5xl: 28px;
    --text-4xl: 24px;
    --text-3xl: 22px;
  }

  .hero {
    min-height: 400px;
  }

  .hero__badge {
    font-size: var(--text-xs);
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .footer,
  .btn,
  .nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
