/* style/guide.css */

/* Thiết lập cơ bản cho trang Hướng Dẫn */
.page-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Màu chữ nhạt cho nền tối */
  background-color: #121212; /* Nền tối từ shared.css */
  padding-top: 120px; /* Khoảng cách cho header cố định */
}

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

.page-guide__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-guide__section--registration,
.page-guide__section--withdrawal,
.page-guide__section--app-download {
  background-color: #1A1A1A; /* Nền phụ tối */
}

.page-guide__dark-bg {
  background-color: #0d0d0d; /* Nền rất tối */
  color: #ffffff;
}

.page-guide__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Màu vàng thương hiệu */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-guide__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-guide__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700; /* Màu vàng thương hiệu */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-guide__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* HERO Banner */
.page-guide__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a); /* Nền gradient tối */
  gap: 40px;
  padding-top: calc(80px + 120px); /* Adjust for fixed header */
}

.page-guide__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-guide__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-guide__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-guide__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Grid layout cho các phần */
.page-guide__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-guide__grid-2-cols--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-guide__text-block {
  padding: 20px;
  background-color: #222222;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-guide__image-wrapper {
  text-align: center;
}

.page-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-guide__list,
.page-guide__ordered-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-guide__list li,
.page-guide__ordered-list li {
  background-color: #333333;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-left: 4px solid #FFD700;
  border-radius: 5px;
  font-size: 17px;
  color: #e0e0e0;
}

.page-guide__ordered-list li {
  counter-increment: list-counter;
}

.page-guide__ordered-list li::before {
  content: counter(list-counter) ". ";
  color: #FFD700;
  font-weight: bold;
  margin-right: 8px;
}

.page-guide__list-item-title {
  color: #FFD700;
}

/* Buttons */
.page-guide__btn-primary,
.page-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.page-guide__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border-color: #FFD700;
}

.page-guide__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

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

.page-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

/* Game Grid */
.page-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guide__game-card,
.page-guide__promotion-card {
  background-color: #222222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-guide__game-card:hover,
.page-guide__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.page-guide__game-image,
.page-guide__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-guide__game-title,
.page-guide__promotion-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-guide__game-description,
.page-guide__promotion-description {
  font-size: 16px;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* App Download Section */
.page-guide__grid-2-cols--app .page-guide__image-wrapper--qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #222222;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-guide__qr-caption {
  font-size: 18px;
  color: #f0f0f0;
  margin-top: 15px;
  font-weight: 600;
}

/* Promotions Grid */
.page-guide__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #222222;
  border: 1px solid #333333;
}

.page-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A1A1A;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-guide__faq-question:hover {
  background: #2a2a2a;
}

.page-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-guide__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-guide__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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-guide__faq-item.active .page-guide__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-guide__faq-item.active .page-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #2a2a2a;
  border-top: 1px solid #333333;
  border-radius: 0 0 8px 8px;
}

.page-guide__faq-item.active .page-guide__faq-toggle {
  color: #ffffff;
  transform: rotate(0deg); /* Reset rotation if needed, or simply change content */
}

.page-guide__faq-answer p {
  margin: 0;
}

.page-guide__contact-info {
  margin-top: 60px;
  text-align: center;
  background-color: #222222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-guide__contact-info .page-guide__sub-title {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-guide__contact-info .page-guide__list {
  display: inline-block;
  text-align: left;
}

.page-guide__contact-info .page-guide__list li {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 18px;
  color: #e0e0e0;
}

.page-guide__contact-info .page-guide__list-item-title {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-guide {
    padding-top: 100px; /* Adjust for smaller fixed header */
  }

  .page-guide__hero-banner {
    flex-direction: column;
    text-align: center;
    padding-top: calc(60px + 100px);
  }

  .page-guide__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-guide__hero-title {
    font-size: 40px;
  }

  .page-guide__hero-description {
    font-size: 18px;
  }

  .page-guide__image-wrapper {
    max-width: 80%;
    margin-top: 30px;
  }

  .page-guide__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-guide__grid-2-cols--reverse {
    grid-template-columns: 1fr;
  }

  .page-guide__text-block {
    padding: 15px;
  }

  .page-guide__section-title {
    font-size: 32px;
  }

  .page-guide__sub-title {
    font-size: 22px;
  }

  .page-guide__game-grid,
  .page-guide__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-guide__game-image,
  .page-guide__promotion-image {
    height: 180px;
  }

  .page-guide__faq-question h3 {
    font-size: 17px;
  }

  .page-guide__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .page-guide {
    padding-top: 100px !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-guide__container {
    padding: 15px;
  }

  .page-guide__section {
    padding: 40px 0;
  }

  .page-guide__hero-banner {
    padding: 40px 15px;
    padding-top: calc(40px + 100px);
  }

  .page-guide__hero-title {
    font-size: 32px;
  }

  .page-guide__hero-description {
    font-size: 16px;
  }

  .page-guide__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-guide__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-guide__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-guide__text-block {
    padding: 15px;
  }

  .page-guide__list li,
  .page-guide__ordered-list li {
    font-size: 15px;
    padding: 10px 12px;
  }

  .page-guide__btn-primary,
  .page-guide__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-guide__game-grid,
  .page-guide__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-guide__game-image,
  .page-guide__promotion-image {
    height: 150px;
  }

  .page-guide__faq-question {
    padding: 15px;
  }

  .page-guide__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-guide__faq-answer {
    padding: 0 15px;
  }

  .page-guide__faq-item.active .page-guide__faq-answer {
    padding: 15px !important;
  }

  .page-guide__contact-info {
    padding: 20px;
  }

  .page-guide__contact-info .page-guide__sub-title {
    font-size: 22px;
  }

  .page-guide__contact-info .page-guide__list li {
    font-size: 16px;
  }

  /* Force responsive images */
  .page-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-guide__section,
  .page-guide__card,
  .page-guide__container,
  .page-guide__hero-banner,
  .page-guide__text-block,
  .page-guide__image-wrapper,
  .page-guide__game-card,
  .page-guide__promotion-card,
  .page-guide__faq-item,
  .page-guide__contact-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}