/* style/index.css */

/* Base styles for the main content area */
.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #FFFFFF; /* Explicitly set background for page content area */
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-index__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

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

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

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

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

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index__features-title {
  font-size: 2.8em;
  margin-bottom: 60px;
  color: #000000;
  font-weight: bold;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 500px; /* Ensure cards are large enough */
  justify-content: space-between;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 400px; /* Max width for feature images */
  height: auto;
  min-height: 200px; /* Minimum height for feature images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  width: 400px; /* HTML width attribute for image */
  height: 300px; /* HTML height attribute for image */
}

.page-index__feature-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

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

.page-index__cta-button-wrapper {
  margin-top: 50px;
}

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

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

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  text-align: center;
}

.page-index__games-overview-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
  font-weight: bold;
}

.page-index__games-overview-description {
  font-size: 1.2em;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-card {
  background-color: #1a1a1a; /* Slightly lighter dark for card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 600px; /* Ensure cards are large enough */
  justify-content: space-between;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index__game-card-image {
  width: 100%;
  max-width: 800px; /* Max width for game images */
  height: auto;
  min-height: 200px; /* Minimum height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  width: 800px; /* HTML width attribute for image */
  height: 600px; /* HTML height attribute for image */
}

.page-index__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-card-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__game-card-text {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1; /* Allow text to take available space */
}

.page-index__button--secondary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-index__button--secondary:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

/* About Us Section (Detail Pages List) */
.page-index__about-us-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index__about-us-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-index__about-us-description {
  font-size: 1.2em;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-index__about-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__about-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 500px; /* Ensure cards are large enough */
  justify-content: space-between;
}

.page-index__about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-index__about-card-image {
  width: 100%;
  max-width: 600px; /* Max width for about images */
  height: auto;
  min-height: 200px; /* Minimum height for about images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  width: 600px; /* HTML width attribute for image */
  height: 400px; /* HTML height attribute for image */
}

.page-index__about-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__about-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__about-card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-index__button--tertiary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-index__button--tertiary:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-3px);
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-index__button--register-lg {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 20px 40px;
  font-size: 1.3em;
  min-width: 280px;
}

.page-index__button--register-lg:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-5px);
}

.page-index__cta-image {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  height: auto;
  min-height: 200px; /* Minimum height for CTA image */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  width: 1200px; /* HTML width attribute for image */
  height: 800px; /* HTML height attribute for image */
}


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

  .page-index__features-title,
  .page-index__games-overview-title,
  .page-index__about-us-title {
    font-size: 2.4em;
  }

  .page-index__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  }

  /* Mobile Overflow Prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__hero-section {
    padding: 40px 15px;
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__features-section,
  .page-index__games-overview-section,
  .page-index__about-us-section,
  .page-index__cta-section {
    padding: 60px 15px;
  }

  .page-index__features-title,
  .page-index__games-overview-title,
  .page-index__about-us-title {
    font-size: 2em;
  }

  .page-index__feature-card-title,
  .page-index__game-card-title,
  .page-index__about-card-title {
    font-size: 1.5em;
  }

  .page-index__cta-title {
    font-size: 2em;
  }

  .page-index__cta-description {
    font-size: 1.1em;
  }

  .page-index__button--register-lg {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }

  .page-index__features-title,
  .page-index__games-overview-title,
  .page-index__about-us-title {
    font-size: 1.6em;
  }

  .page-index__cta-title {
    font-size: 1.8em;
  }

  .page-index__hero-description,
  .page-index__games-overview-description,
  .page-index__about-us-description,
  .page-index__cta-description {
    font-size: 1em;
  }

  .page-index__feature-card-title,
  .page-index__game-card-title,
  .page-index__about-card-title {
    font-size: 1.3em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Ensure images meet minimum size requirements for content areas */
.page-index__hero-image,
.page-index__feature-icon,
.page-index__game-card-image,
.page-index__about-card-image,
.page-index__cta-image {
  min-width: 200px;
  min-height: 200px;
  /* Add explicit width/height to prevent CLS, CSS will handle responsiveness */
}

/* Ensure no filter properties are used on images */
.page-index img {
  filter: none !important; /* Strictly no filters */
}