/* Base Styles & Variables */
:root {
  --bodyBackgroundColor: #636465;
  --bodyColor: #fff;
  --cardBackground: #4F0B0B;
  --color-primary: #E42313;
  --color-white: #FFFFFF;
  --color-text-dark-gray: #2D3748;
  --color-background-light-gray: #F7FAFC;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --theme-gradient: radial-gradient(circle, #E42313 0%, #4F0B0B 85%);
  --box-shadow: 0 4px 15px rgba(79, 11, 11, 0.3);
  --box-shadow-hover: 0 6px 20px rgba(228, 35, 19, 0.5);
  --burger-line: 3px;
  --burger-width: 26px;
  --burger-height: 18px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--bodyColor);
  background-color: var(--bodyBackgroundColor);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-primary);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #f5f5f5;
}

.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 30px 0;
}

.heigh-75 {
  height: 75vh;
}

.d-flex {
  display: flex;
}

#skip-link {
  background-color: var(--color-primary);
  border-radius: 12px;
  border: none;
  bottom: 20px;
  color: var(--color-white);
  cursor: pointer;
  display: none;
  font-size: 20px;
  line-height: 1;
  outline: none;
  padding: 15px;
  position: fixed;
  right: 30px;
  transition: top 0.3s ease;
  z-index: 99;
}

#skip-link:hover {
  background-color: var(--color-text-dark-gray); /* Add a dark-grey background on hover */
}

/* Accessibility */

/* Header Styles */
.header {
  background: var(--color-primary);
  padding: 10px 20px;
  position: relative;

  .container {
    margin: 0 auto;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/dots.svg');
  animation: float 20s ease-in-out infinite;
}

.header-content {
  display: flex;
  align-items: center;
  position: relative;
  gap: 15px;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}

.header-links {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 15px;
  position: relative;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-button {
  padding: 10px 20px;
  border: 2px solid white;
  background: transparent;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: white;
  color: var(--color-primary);
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  position: relative;
  width: var(--burger-width);
  height: var(--burger-height);
  cursor: pointer;
  border: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  padding: 8px;
}
.burger span {
  position: absolute;
  left: 0; right: 0;
  height: var(--burger-line);
  background: var(--color-white);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: top .25s ease, transform .25s ease, opacity .2s ease;
}

.burger span:nth-child(1) { top: 0%; }
.burger span:nth-child(2) { top: 50%; }
.burger span:nth-child(3) { top: 100%; }

/* Locale dropdown */

.lang__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-bonus {
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--box-shadow);
}

.cta:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* Top Games Section */

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

.game-card {
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  text-decoration: none;

  &.square {
    height: 200px;
  }
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.game-card img {
  object-fit: cover;
}

/* Main Content Sections */

.image-container {
  overflow: hidden;
}

.content-section {
  max-width: 1300px;
  margin: 20px auto;
  padding: 0 20px;
  width: 100%;
}

.content-section-rows {
  display: flex;
  align-items: flex-start;
  gap: 20px;

  .container {
    flex: 2;
  }

  .image-container {
    flex: 1;
  }
}

.content-section h2 {
  color: var(--color-primary);
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list {
  margin-left: 20px;
  margin-bottom: 15px;
}

ol.list {
  list-style: decimal;
}

ul.list {
  list-style: circle;
}

.list-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Registration Steps */
.registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 340px));
  justify-content: center;
  align-items: start;
  gap: 20px;
  margin: 30px 0;
}

.registration-cta {
  text-align: center;
  .cta {
    width: 275px;
  }
}

figcaption {
  font-size: 0.9375rem;
}

.step-card {
  background: var(--cardBackground);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  position: relative;
}

.step-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.875rem;
}

.step-card:nth-child(1)::before { content: '1'; }
.step-card:nth-child(2)::before { content: '2'; }
.step-card:nth-child(3)::before { content: '3'; }

.step-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* .step-title {
  font-weight: 600;
  color: var(--color-text-dark-gray);
  margin-bottom: 10px;
}

.step-description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
} */

/* Bonus Cards */

.section-background {
  overflow: hidden;
  position: relative;

  &.colored {
    background: var(--theme-gradient);

    &.animate::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      animation: float 25s ease-in-out infinite;
      height: inherit;
    }

    &.animate-abstract::before {
      background-image: url('images/abstract.svg');
    }

    &.animate-star::before {
      background-image: url('images/star.svg');
    }
  }

  &.image {
    background-repeat: no-repeat;
    background-size: cover;
  }

  h2 {
    color: var(--color-white);
  }

  & > .content-section {
    margin: 40px auto;
  }
}

/* Games Categories */

/* Payments Table */

/* Mobile App Section */

/* Pros & Cons */

/* Footer */
.footer {
  background: var(--color-text-dark-gray);
  padding: 40px 0 20px;
  color: white;
}

.footer-title {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-subtitle {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #ccc;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .content-section h2 {
    font-size: 1.75rem;
  }

  .content-section h3 {
    font-size: 1.125rem;
  }

  body {
    font-size: 0.9375rem;
  }

  th {
    font-size: 0.9375rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .hero-bonus {
    font-size: 1rem;
  }

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

  .registration-steps {
    grid-template-columns: repeat(auto-fit, minmax(100px, 140px));
  }

  .step-card {
    background: none;
    padding: 0;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1rem;
  }

  body {
    font-size: 0.875rem;
  }

  th {
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-bonus {
    font-size: 0.9375rem;
  }

  .header-content {
    justify-content: space-between;
    gap: 20px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .table {
    overflow-x: auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .content-section {
    .image-container {
      width: 60%;
      margin: 0 auto;
    }
  }

  .content-section-rows {
    flex-direction: column;
    align-items: stretch;

    &:has(.image-container:first-child) {
      flex-direction: column-reverse;
    }
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--color-primary);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    margin-left: 0;
    align-items: flex-start;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease;
  }

  .burger {
    display: inline-block;
  }

  .header-links {
    justify-content: flex-end;
  }

  .registration-steps {
    grid-template-columns: repeat(auto-fit, minmax(100px, 115px));
  }

  .step-card {
    background: none;
    padding: 0;
    box-shadow: none;
  }

  figcaption {
    font-size: 0.6375rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .content-section h2 {
    font-size: 1.25rem;
  }

  .content-section h3 {
    font-size: 0.875rem;
  }

  body {
    font-size: 0.8125rem;
  }

  th {
    font-size: 0.8125rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-bonus {
    font-size: 0.875rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .burger span, nav { transition: none; }
}