/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text on light background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

.page-index__section-title,
.page-index__cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-intro,
.page-index__cta-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--register:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-left: 15px;
}

.page-index__button--login:hover {
  background-color: #e0a538;
  transform: translateY(-2px);
}

.page-index__button--promo,
.page-index__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--promo:hover,
.page-index__button--cta:hover {
  background-color: #e0a538;
  transform: translateY(-2px);
}

.page-index__button--primary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--primary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--small:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__button--app {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px 20px;
  margin: 10px;
  min-width: 220px;
}

.page-index__button--app:hover {
  background-color: #333333;
}

.page-index__app-icon {
  margin-right: 10px;
  width: 48px; /* Enforce 48x48 for specific icons, still > 200px rule applies to content images */
  height: 48px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background-color: #f8f8f8;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FCBC45;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-index__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Games Section */
.page-index__games-section,
.page-index__promo-section,
.page-index__about-section,
.page-index__testimonials-section,
.page-index__cta-section,
.page-index__app-download-section,
.page-index__faq-section,
.page-index__legal-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__games-section {
  background-color: #f9f9f9;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card-image {
  width: 100%;
  height: 267px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  color: #FCBC45;
}

.page-index__game-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promo Section */
.page-index__promo-section {
  background-color: #f0f0f0;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__promo-card-title a:hover {
  color: #FCBC45;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* About Section */
.page-index__about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #666666;
}

.page-index__cta-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #f9f9f9;
}

.page-index__testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-index__testimonial-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #FCBC45;
}

.page-index__testimonial-text {
  font-style: italic;
  color: #333333;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-index__cta-title {
  color: #FCBC45;
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* App Download Section */
.page-index__app-download-section {
  background-color: #FFFFFF;
}

.page-index__app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #f0f0f0;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px;
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #666666;
}

/* Legal Section */
.page-index__legal-section {
  background-color: #000000;
  color: #f0f0f0;
  text-align: center;
  padding: 40px 0;
}

.page-index__legal-section .page-index__section-title {
  color: #FCBC45;
  font-size: 1.8em;
}

.page-index__legal-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

.page-index__legal-links a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1em;
}

.page-index__legal-links a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__copyright {
  margin-top: 30px;
  font-size: 0.9em;
  color: #aaaaaa;
}

/* Floating Buttons */
.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.page-index__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 45px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.0em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index__floating-button--register {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__floating-button--register:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__floating-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__floating-button--login:hover {
  background-color: #e0a538;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title,
  .page-index__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__button--login {
    margin-left: 0;
  }
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__about-section,
  .page-index__testimonials-section,
  .page-index__cta-section,
  .page-index__app-download-section,
  .page-index__faq-section,
  .page-index__legal-section {
    padding: 60px 0;
  }
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__about-features,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__button--app {
    width: 100%;
    margin: 10px 0;
  }
  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Specific overrides for small icons if they appear in content areas, though they are forbidden */
  .page-index__feature-icon, .page-index__testimonial-avatar {
    width: 200px; /* Maintain minimum size */
    height: 200px;
  }
  .page-index__app-icon {
    width: 48px;
    height: 48px;
  }
  .page-index__floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
  .page-index__floating-button {
    width: 90px;
    height: 40px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title,
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__legal-links {
    flex-direction: column;
    gap: 10px;
  }
}