/* style/index.css */

.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 */
}

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark background */
  padding: 60px 0;
  text-align: center;
}

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

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

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

.page-index__btn--register:hover {
  background-color: #E0E0E0;
  color: #000000;
}

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

.page-index__btn--login:hover {
  background-color: #E0A030;
  color: #000000;
}

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

.page-index__btn--secondary:hover {
  background-color: #333333;
  color: #FFFFFF;
}

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

.page-index__btn--download:hover {
  background-color: #E0A030;
  color: #000000;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.page-index__btn--small:hover {
  background-color: #333333;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-index__section-text {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-index__about-section, .page-index__promotions-section, .page-index__blog-section, .page-index__call-to-action {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__games-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

.page-index__game-card, .page-index__promo-card, .page-index__blog-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image, .page-index__promo-card-image, .page-index__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__blog-card-title {
  font-size: 1.5em;
  color: #000000;
  margin: 10px 15px;
  flex-grow: 0;
}

.page-index__game-card-title a, .page-index__promo-card-title a, .page-index__blog-card-title a {
  text-decoration: none;
  color: #000000;
}

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

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

.page-index__app-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-index__app-container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-index__app-content {
  flex: 1;
}

.page-index__app-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__app-section .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__app-section .page-index__section-text {
  color: #F0F0F0;
  text-align: left;
  margin-left: 0;
}

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

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-section .page-index__section-title,
  .page-index__app-section .page-index__section-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-categories, .page-index__promo-cards, .page-index__blog-cards {
    grid-template-columns: 1fr;
  }
  .page-index__app-image {
    max-width: 100%;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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