/* style/index.css */
.page-index {
  color: #000000; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  min-height: 550px; /* Minimum height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.page-index__button--register {
  background-color: #000000; /* Main color for Register background */
  color: #FFFFFF; /* Text color for Register */
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

.page-index__button--login {
  background-color: #FCBC45; /* Custom color for Login background */
  color: #000000; /* Text color for Login */
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFD700;
  border-color: #000000;
}

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

.page-index__button--primary:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

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

.page-index__button--secondary:hover {
  background-color: #F0F0F0;
  border-color: #FCBC45;
}

.page-index__button--small {
  padding: 10px 20px;
  min-width: unset;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

.page-index__button--small:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

.page-index__button--large {
  padding: 20px 40px;
  font-size: 1.2em;
  min-width: 250px;
}

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

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

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

.page-index__about-section,
.page-index__security-section,
.page-index__support-section,
.page-index__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

.page-index__game-card,
.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  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 {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

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

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

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

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

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

.page-index__mobile-content .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__mobile-content .page-index__section-text {
  color: #F0F0F0;
  text-align: left;
  margin: 0 0 20px 0;
}

.page-index__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__mobile-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.page-index__icon--checkmark {
  color: #FCBC45;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #000000, #333333);
  color: #FFFFFF;
}

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

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__game-categories,
  .page-index__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-index__mobile-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-content .page-index__section-title,
  .page-index__mobile-content .page-index__section-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px);
  }
  .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__button {
    min-width: unset;
    width: 80%;
    margin: 0 auto;
  }
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 180px;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title {
    font-size: 1.3em;
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  /* Mobile content area image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__mobile-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    max-width: 100%;
    height: auto; /* ensure images scale down */
  }
}

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