/* style/fishing-games.css */

/* Biến màu sắc */
:root {
  --page-fishing-games-primary-color: #26A9E0;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-text-dark: #333333;
  --page-fishing-games-text-light: #FFFFFF;
  --page-fishing-games-login-button-color: #EA7C07;
  --page-fishing-games-background-light: #FFFFFF;
  --page-fishing-games-background-dark: #26A9E0;
}

/* Cấu trúc chung */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-fishing-games-text-dark); /* Mặc định chữ tối trên nền sáng */
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-fishing-games-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-fishing-games__hero-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__cta-section .page-fishing-games__section-title {
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__content-area p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

/* Phần Hero */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ để tránh trùng với padding-top của body */
  min-height: 600px;
  text-align: center;
  background: linear-gradient(135deg, var(--page-fishing-games-primary-color) 0%, #1a7fb0 100%);
  overflow: hidden;
}

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

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Làm mờ ảnh nền để text nổi bật */
  display: block;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--page-fishing-games-text-light);
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Nền nhẹ cho text để tăng độ tương phản */
  border-radius: 10px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-fishing-games-text-light);
}

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

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-fishing-games__btn-primary {
  background: var(--page-fishing-games-login-button-color); /* Màu cam cho nút chính */
  color: var(--page-fishing-games-text-light);
  border: 2px solid var(--page-fishing-games-login-button-color);
}

.page-fishing-games__btn-primary:hover {
  background: darken(var(--page-fishing-games-login-button-color), 10%);
  border-color: darken(var(--page-fishing-games-login-button-color), 10%);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--page-fishing-games-text-light);
  border: 2px solid var(--page-fishing-games-text-light);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--page-fishing-games-text-light);
  color: var(--page-fishing-games-primary-color);
}

/* Các phần chung */
.page-fishing-games__intro-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__featured-games-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__tips-strategies-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
  padding: 80px 0;
}

.page-fishing-games__dark-section {
  background: var(--page-fishing-games-background-dark);
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__light-bg {
  background: var(--page-fishing-games-background-light);
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__dark-section p {
  color: var(--page-fishing-games-text-light);
}

/* Phần tính năng */
.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__feature-item p {
  font-size: 1em;
  color: var(--page-fishing-games-text-light);
}

/* Phần game nổi bật */
.page-fishing-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background: var(--page-fishing-games-background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-title {
  font-size: 1.6em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__game-description {
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
  margin: 0 15px 20px;
  padding: 12px 25px;
  font-size: 1em;
}

/* Phần hướng dẫn */
.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__step-item {
  background: var(--page-fishing-games-background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-fishing-games-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__step-item p {
  margin-bottom: 20px;
}

/* Phần mẹo và chiến thuật */
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__tips-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__tips-list strong {
  color: var(--page-fishing-games-text-light);
}

/* Phần khuyến mãi */
.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__promo-card {
  background: var(--page-fishing-games-background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__promo-title {
  font-size: 1.6em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__promo-card p {
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-fishing-games__promo-card .page-fishing-games__btn-primary {
  margin: 0 15px 20px;
  padding: 12px 25px;
  font-size: 1em;
}

.page-fishing-games__promo-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* Phần FAQ */
.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  background: var(--page-fishing-games-background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-fishing-games-primary-color);
  cursor: pointer;
  list-style: none;
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-question:hover {
  background-color: #f5f5f5;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Phần CTA cuối trang */
.page-fishing-games__cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1a7fb0 0%, var(--page-fishing-games-primary-color) 100%);
  color: var(--page-fishing-games-text-light);
  padding: 80px 20px;
}

.page-fishing-games__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    min-height: 500px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-fishing-games__intro-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__container {
    padding: 0 15px;
  }

  .page-fishing-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã xử lý header offset */
    min-height: 400px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-fishing-games__intro-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-fishing-games__intro-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__featured-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-strategies-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 50px 0;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

  .page-fishing-games__feature-image,
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__step-title,
  .page-fishing-games__promo-title {
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .page-fishing-games__tips-list li {
    padding: 15px;
    font-size: 1em;
  }

  .page-fishing-games__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-fishing-games__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* Responsive cho tất cả img trong .page-fishing-games */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive cho tất cả các container chứa hình ảnh/nội dung */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__step-item,
  .page-fishing-games__faq-item,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__promo-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-fishing-games__hero-section .page-fishing-games__hero-content {
    padding: 15px;
  }
}

/* Đảm bảo độ tương phản cho văn bản trên nền tối */
.page-fishing-games__dark-bg {
  color: var(--page-fishing-games-text-light); /* Chữ sáng trên nền tối */
}

.page-fishing-games__dark-section p,
.page-fishing-games__dark-section li {
  color: var(--page-fishing-games-text-light);
}

/* Đảm bảo độ tương phản cho văn bản trên nền sáng */
.page-fishing-games__light-bg {
  color: var(--page-fishing-games-text-dark); /* Chữ tối trên nền sáng */
}

/* Nút màu thương hiệu, chữ trắng */
.page-fishing-games__btn-primary {
  background: var(--page-fishing-games-login-button-color);
  color: var(--page-fishing-games-text-light);
}

/* Nút phụ, chữ màu thương hiệu */
.page-fishing-games__btn-secondary {
  background: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-primary-color);
  border: 2px solid var(--page-fishing-games-primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-secondary-color);
}

/* Fix cho details summary */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}