/* style/index.css */
.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: #1A202C;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Constrain container width */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  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.3;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

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

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

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

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

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A202C;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
}

.page-index__button--secondary {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-index__button--link {
  color: #FFD700;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 1em;
  min-width: unset;
}

.page-index__button--link:hover {
  color: #e6c200;
}

.page-index__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__security-section,
.page-index__mobile-section,
.page-index__cta-section {
  background-color: #1A202C;
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 0 20px 10px;
  line-height: 1.4;
}

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

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

.page-index__game-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
  margin: 0 20px;
}

.page-index__promo-banner,
.page-index__security-image,
.page-index__mobile-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
}

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

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

@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__game-card-image {
    height: 200px;
  }
}

@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__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__promo-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile content area image constraints */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-content {
    padding: 30px 15px;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__content-wrapper {
    padding: 40px 15px;
  }
}