/* style/game-guides.css */
/* Tổng quan */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Văn bản chính trên nền body tối */
  background-color: #0a0a0a; /* Nền body tối từ shared.css */
  line-height: 1.6;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Phần Hero Banner (đầu trang) */
.page-game-guides__hero-banner {
  background: linear-gradient(135deg, #000080, #1a1a3a); /* Nền màu xanh đậm */
  padding: 120px 0 60px; /* Thêm padding-top để tránh header cố định */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Màu vàng nổi bật */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Các Section chung */
.page-game-guides__section {
  padding: 60px 0;
  background-color: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__section--dark {
  background-color: #1a1a1a; /* Nền tối hơn cho các section xen kẽ */
}

.page-game-guides__heading {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-game-guides__sub-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-game-guides__link-inline {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-game-guides__link-inline:hover {
  color: #ffd700cc;
}

.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-game-guides__image--full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Nút CTA */
.page-game-guides__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.page-game-guides__btn--primary {
  background-color: #FFD700;
  color: #000000; /* Đảm bảo tương phản cao trên nền vàng */
  border-color: #FFD700;
}

.page-game-guides__btn--primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  transform: translateY(-3px);
}

.page-game-guides__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-game-guides__btn--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-3px);
}

.page-game-guides__btn--center {
  display: block;
  margin: 40px auto 20px;
  max-width: 300px;
}

.page-game-guides__btn--small {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 30px;
}

.page-game-guides__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Lưới game (Game Grid) */
.page-game-guides__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__game-card {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.page-game-guides__game-card-image {
  width: 100%;
  height: 250px; /* Cố định chiều cao ảnh */
  object-fit: cover;
  display: block;
}

.page-game-guides__game-card-content {
  padding: 25px;
}

.page-game-guides__game-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__game-card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1c1c1c;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background: #2a2a2a;
  border-color: #FFD700;
}

.page-game-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #121212;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* CTA cuối trang */
.page-game-guides__section--cta {
  background-color: #000080; /* Nền xanh đậm */
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__container--cta {
  max-width: 800px;
}

.page-game-guides__heading--cta {
  color: #FFD700;
  margin-bottom: 25px;
}

.page-game-guides__paragraph--cta {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

  .page-game-guides__heading {
    font-size: 2em;
  }

  .page-game-guides__sub-heading {
    font-size: 1.6em;
  }

  .page-game-guides__game-card-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-banner {
    padding: 100px 0 40px; /* Điều chỉnh padding-top cho mobile */
  }

  .page-game-guides__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-game-guides__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn {
    width: 80%;
    margin: 0 auto;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__sub-heading {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-game-guides__paragraph,
  .page-game-guides__ordered-list li,
  .page-game-guides__unordered-list li,
  .page-game-guides__game-card-description {
    font-size: 0.95em;
  }

  .page-game-guides__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__game-card-image {
    height: 200px;
  }

  .page-game-guides__game-card-title {
    font-size: 1.3em;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-game-guides__faq-question h3 {
    font-size: 1.1em;
    width: calc(100% - 40px);
  }

  .page-game-guides__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px !important;
  }

  .page-game-guides__section--cta {
    padding: 60px 0;
  }

  .page-game-guides__heading--cta {
    font-size: 2em;
  }

  .page-game-guides__paragraph--cta {
    font-size: 1.1em;
  }

  /* 移动端图片强制适配 */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__hero-banner { /* Override padding for hero to ensure full width */
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-game-guides__hero-container {
      padding-left: 15px;
      padding-right: 15px;
  }
}