/* style/index-hot-games.css */

/* Biến CSS cho màu sắc */
:root {
  --page-index-hot-games-primary-color: #017439;
  --page-index-hot-games-secondary-color: #FFFFFF;
  --page-index-hot-games-dark-text: #333333;
  --page-index-hot-games-light-text: #ffffff;
  --page-index-hot-games-login-btn-bg: #C30808;
  --page-index-hot-games-register-btn-bg: #C30808;
  --page-index-hot-games-login-register-text: #FFFF00;
  --page-index-hot-games-body-bg: #121212; /* Lấy từ shared.css */
}

/* --- General Page Styles --- */
.page-index-hot-games {
  color: var(--page-index-hot-games-light-text); /* body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--page-index-hot-games-body-bg);
}

.page-index-hot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-hot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-index-hot-games__dark-bg {
  background-color: var(--page-index-hot-games-primary-color);
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__light-bg {
  background-color: var(--page-index-hot-games-secondary-color);
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit;
}

.page-index-hot-games__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-index-hot-games__section-description a {
  color: var(--page-index-hot-games-login-register-text);
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-index-hot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* shared.css provides padding for body */
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.page-index-hot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-index-hot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-index-hot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* --- Buttons --- */
.page-index-hot-games__btn-primary,
.page-index-hot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-hot-games__btn-primary {
  background-color: var(--page-index-hot-games-register-btn-bg);
  color: var(--page-index-hot-games-login-register-text);
  border: 2px solid var(--page-index-hot-games-register-btn-bg);
}

.page-index-hot-games__btn-primary:hover {
  background-color: darken(var(--page-index-hot-games-register-btn-bg), 10%);
  transform: translateY(-2px);
}

.page-index-hot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-index-hot-games-login-register-text);
  border: 2px solid var(--page-index-hot-games-register-btn-bg);
}

.page-index-hot-games__btn-secondary:hover {
  background-color: var(--page-index-hot-games-register-btn-bg);
  color: var(--page-index-hot-games-light-text);
  transform: translateY(-2px);
}

.page-index-hot-games__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* --- Game Categories Grid --- */
.page-index-hot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-hot-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-index-hot-games-light-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index-hot-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index-hot-games__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__game-card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.8);
}

.page-index-hot-games__game-card-description a {
  color: var(--page-index-hot-games-login-register-text);
  text-decoration: underline;
}

/* --- Why Choose Us Section --- */
.page-index-hot-games__why-choose-us .page-index-hot-games__section-title {
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__why-choose-us .page-index-hot-games__section-description {
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__feature-list {
  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-hot-games__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--page-index-hot-games-primary-color);
}

.page-index-hot-games__feature-text {
  font-size: 1em;
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__feature-text a {
  color: var(--page-index-hot-games-primary-color);
  text-decoration: underline;
}

/* --- Getting Started Section --- */
.page-index-hot-games__getting-started .page-index-hot-games__section-title,
.page-index-hot-games__getting-started .page-index-hot-games__section-description {
  color: var(--page-index-hot-games-light-text);
}

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

.page-index-hot-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: var(--page-index-hot-games-light-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-hot-games__step-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index-hot-games__step-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__step-card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.8);
}

.page-index-hot-games__step-card-description a {
  color: var(--page-index-hot-games-login-register-text);
  text-decoration: underline;
}

/* --- Promotions Section --- */
.page-index-hot-games__promotions .page-index-hot-games__section-title,
.page-index-hot-games__promotions .page-index-hot-games__section-description {
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__promotion-banner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  background-color: var(--page-index-hot-games-primary-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__promotion-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index-hot-games__promotion-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-index-hot-games__promotion-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__promotion-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- FAQ Section --- */
.page-index-hot-games__faq-section .page-index-hot-games__section-title,
.page-index-hot-games__faq-section .page-index-hot-games__section-description {
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__faq-section .page-index-hot-games__section-description a {
  color: var(--page-index-hot-games-login-register-text);
}

.page-index-hot-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-index-hot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-index-hot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-hot-games__faq-question-text {
  margin: 0;
  color: var(--page-index-hot-games-light-text);
}

.page-index-hot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-index-hot-games-login-register-text);
}

.page-index-hot-games__faq-item.active .page-index-hot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-index-hot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}

.page-index-hot-games__faq-item.active .page-index-hot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px;
}

.page-index-hot-games__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-index-hot-games__faq-answer a {
  color: var(--page-index-hot-games-login-register-text);
  text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-index-hot-games__cta-final .page-index-hot-games__section-title,
.page-index-hot-games__cta-final .page-index-hot-games__section-description {
  color: var(--page-index-hot-games-dark-text);
}

.page-index-hot-games__cta-final .page-index-hot-games__section-description a {
  color: var(--page-index-hot-games-primary-color);
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index-hot-games__hero-title {
    font-size: 3em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1.2em;
  }
  .page-index-hot-games__section-title {
    font-size: 2.2em;
  }
  .page-index-hot-games__promotion-banner {
    flex-direction: column;
  }
  .page-index-hot-games__promotion-image,
  .page-index-hot-games__promotion-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index-hot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index-hot-games__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
  }
  .page-index-hot-games__hero-title {
    font-size: 2.5em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1em;
  }
  .page-index-hot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-hot-games__btn-primary,
  .page-index-hot-games__btn-secondary,
  .page-index-hot-games a[class*="button"],
  .page-index-hot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-hot-games__hero-cta-buttons,
  .page-index-hot-games__button-group,
  .page-index-hot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index-hot-games__section {
    padding: 40px 15px;
  }
  .page-index-hot-games__section-title {
    font-size: 1.8em;
  }
  .page-index-hot-games__section-description {
    font-size: 0.95em;
  }
  .page-index-hot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-hot-games__section,
  .page-index-hot-games__card,
  .page-index-hot-games__container,
  .page-index-hot-games__game-card,
  .page-index-hot-games__step-card,
  .page-index-hot-games__promotion-banner,
  .page-index-hot-games__promotion-content,
  .page-index-hot-games__faq-container,
  .page-index-hot-games__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-hot-games__promotion-image {
    width: 100%;
    height: auto;
  }
  .page-index-hot-games__promotion-content {
    padding: 20px 15px;
    align-items: center;
    text-align: center;
  }
  .page-index-hot-games__promotion-title {
    font-size: 1.5em;
  }
  .page-index-hot-games__promotion-text {
    font-size: 1em;
  }
  .page-index-hot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-index-hot-games__faq-answer {
    padding: 0 20px;
  }
  .page-index-hot-games__faq-item.active .page-index-hot-games__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-hot-games__hero-title {
    font-size: 2em;
  }
  .page-index-hot-games__section-title {
    font-size: 1.5em;
  }
  .page-index-hot-games__btn-primary,
  .page-index-hot-games__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}