/* style/arcade-games.css */

:root {
  --ll777-primary-color: #000000;
  --ll777-secondary-color: #FFFFFF;
  --ll777-accent-color: #FCBC45;
  --ll777-text-dark: #333333;
  --ll777-text-light: #ffffff;
  --header-offset: 120px; /* Default for desktop */
}

/* Responsive header offset for mobile */
@media (max-width: 768px) {
  :root {
    --header-offset: 100px; /* Adjust for mobile header height */
  }
}

.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--ll777-text-dark); /* Default for light background */
  background-color: var(--ll777-secondary-color); /* Matches body background */
}

.page-arcade-games__dark-bg {
  background-color: var(--ll777-primary-color);
  color: var(--ll777-text-light);
}

.page-arcade-games__light-bg {
  background-color: var(--ll777-secondary-color);
  color: var(--ll777-text-dark);
}

.page-arcade-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-arcade-games__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-arcade-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__text-center {
  text-align: center;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  min-height: 200px; /* Minimum size requirement */
}

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 60px;
  color: var(--ll777-text-light);
  max-width: 900px;
}

.page-arcade-games__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ll777-text-light);
}

.page-arcade-games__hero-description {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  margin-bottom: 30px;
  color: var(--ll777-text-light);
}

.page-arcade-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary,
.page-arcade-games__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-arcade-games__btn-primary {
  background-color: var(--ll777-primary-color);
  color: var(--ll777-text-light);
  border: 2px solid var(--ll777-primary-color);
}

.page-arcade-games__btn-primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-arcade-games__btn-secondary {
  background-color: var(--ll777-accent-color);
  color: var(--ll777-text-dark);
  border: 2px solid var(--ll777-accent-color);
}

.page-arcade-games__btn-secondary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-arcade-games__btn-tertiary {
  background-color: transparent;
  color: var(--ll777-accent-color);
  border: 2px solid var(--ll777-accent-color);
}

.page-arcade-games__btn-tertiary:hover {
  background-color: var(--ll777-accent-color);
  color: var(--ll777-text-dark);
}

/* Category Grid */
.page-arcade-games__categories-grid,
.page-arcade-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade-games__category-card,
.page-arcade-games__game-card {
  background-color: var(--ll777-secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 300px; /* Ensure cards have some height */
}

.page-arcade-games__dark-bg .page-arcade-games__category-card,
.page-arcade-games__dark-bg .page-arcade-games__game-card {
  background-color: #1a1a1a;
  color: var(--ll777-text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 30px; /* Allow small icons */
  min-height: 30px; /* Allow small icons */
}

.page-arcade-games__category-title,
.page-arcade-games__game-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-arcade-games__category-description,
.page-arcade-games__game-description {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade-games__game-iframe {
  width: 100%;
  height: 200px; /* Fixed height for iframe showcase */
  border: none;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size for content */
  min-height: 200px; /* Min image size for content */
}

/* How to Play Section */
.page-arcade-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-arcade-games__list-item {
  background-color: var(--ll777-secondary-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
}

.page-arcade-games__dark-bg .page-arcade-games__list-item {
  background-color: #1a1a1a;
  color: var(--ll777-text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__list-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--ll777-accent-color);
  color: var(--ll777-text-dark);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-arcade-games__list-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-arcade-games__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

/* FAQ Section */
.page-arcade-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__faq-item {
  background-color: var(--ll777-secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-arcade-games__dark-bg .page-arcade-games__faq-item {
  background-color: #1a1a1a;
  color: var(--ll777-text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ll777-text-dark);
}

.page-arcade-games__dark-bg .page-arcade-games__faq-question {
  color: var(--ll777-text-light);
}

.page-arcade-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-arcade-games__dark-bg .page-arcade-games__faq-question:hover {
  background-color: #2a2a2a;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1rem;
  color: #555555;
}

.page-arcade-games__dark-bg .page-arcade-games__faq-answer {
  color: #bbbbbb;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

/* CTA Section */
.page-arcade-games__cta-section {
  padding: 80px 0;
}

.page-arcade-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Global image responsiveness */
.page-arcade-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-arcade-games__hero-content {
    padding-bottom: 40px;
  }
  .page-arcade-games__hero-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__section {
    padding: 40px 0;
  }

  .page-arcade-games__section-title {
    font-size: 2rem;
  }

  .page-arcade-games__text-block {
    font-size: 1rem;
  }

  .page-arcade-games__main-title {
    font-size: 2.2rem;
  }

  .page-arcade-games__hero-description {
    font-size: 1.1rem;
  }

  .page-arcade-games__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-tertiary {
    width: 100%;
    max-width: 300px !important; /* Restrict max width for mobile buttons */
    padding: 12px 20px;
  }

  .page-arcade-games__categories-grid,
  .page-arcade-games__games-grid,
  .page-arcade-games__steps-list,
  .page-arcade-games__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade-games__list-item {
    padding-left: 50px;
  }

  .page-arcade-games__list-item::before {
    left: 15px;
    top: 20px;
  }

  .page-arcade-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-arcade-games__faq-answer {
    padding: 0 20px;
  }

  .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image adaptation */
  .page-arcade-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-arcade-games__section,
  .page-arcade-games__container,
  .page-arcade-games__category-card,
  .page-arcade-games__game-card,
  .page-arcade-games__list-item,
  .page-arcade-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO section padding for mobile */
  .page-arcade-games__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile specific offset */
  }

  .page-arcade-games__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}