/* style/fishing-games.css */

/* Biến màu sắc */
:root {
  --page-fishing-games-primary-color: #FFD700; /* Vàng sang trọng */
  --page-fishing-games-secondary-color: #DC143C; /* Đỏ mạnh mẽ */
  --page-fishing-games-text-light: #ffffff; /* Chữ sáng cho nền tối */
  --page-fishing-games-text-dark: #333333; /* Chữ tối cho nền sáng */
  --page-fishing-games-bg-dark: var(--dark-bg-1); /* Từ shared.css */
  --page-fishing-games-card-bg: rgba(255, 255, 255, 0.1); /* Nền thẻ hơi trong suốt */
  --page-fishing-games-border-color: rgba(255, 255, 255, 0.2); /* Viền thẻ */
}

/* Đảm bảo nội dung trang không bị che bởi header cố định */
.page-fishing-games {
  padding-top: 0; /* HERO section sẽ xử lý padding đầu tiên */
  color: var(--page-fishing-games-text-light); /* Màu chữ mặc định cho nền tối */
  background-color: var(--page-fishing-games-bg-dark);
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: var(--header-height, 80px); /* Đẩy nội dung xuống dưới header cố định */
}

.page-fishing-games__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin: 0;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Các phần chung cho trang */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-fishing-games__main-title,
.page-fishing-games__section-title {
  color: var(--page-fishing-games-primary-color);
  font-size: 3em;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__highlight {
  color: var(--page-fishing-games-primary-color);
  font-weight: bold;
}

.page-fishing-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-fishing-games__btn--primary {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-dark);
  border: 2px solid var(--page-fishing-games-primary-color);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-fishing-games__btn--primary:hover {
  background-color: darken(var(--page-fishing-games-primary-color), 10%); /* Sử dụng hàm darken nếu có preprocessor */
  background-color: #e6c200; /* Fallback */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.page-fishing-games__btn--secondary {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-light);
  border: 2px solid var(--page-fishing-games-secondary-color);
  box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.page-fishing-games__btn--secondary:hover {
  background-color: darken(var(--page-fishing-games-secondary-color), 10%); /* Sử dụng hàm darken nếu có preprocessor */
  background-color: #b31030; /* Fallback */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 20, 60, 0.6);
}

.page-fishing-games__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-fishing-games__link {
  color: var(--page-fishing-games-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-fishing-games__link:hover {
  color: var(--page-fishing-games-secondary-color);
  text-decoration: underline;
}

/* Feature Section */
.page-fishing-games__features-section {
  background-color: rgba(0, 0, 0, 0.2); /* Nền hơi tối */
  padding: 60px 0;
}

.page-fishing-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-card {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__feature-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__card-title {
  color: var(--page-fishing-games-primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-fishing-games__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-fishing-games-text-light);
}

/* How-To-Play Section */
.page-fishing-games__how-to-play-section {
  padding: 60px 0;
}

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__step-card {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-dark);
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-fishing-games__promo-section {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 60px 0;
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__promo-list li {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-list li::before {
  content: '⚡'; /* Icon */
  margin-right: 15px;
  font-size: 1.2em;
  color: var(--page-fishing-games-primary-color);
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  padding: 60px 0;
}

.page-fishing-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__strategy-list li {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__strategy-list li strong {
  color: var(--page-fishing-games-primary-color);
}

/* Other Games Section */
.page-fishing-games__other-games-section {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 60px 0;
}

.page-fishing-games__game-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-fishing-games__game-list li {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1.1em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-fishing-games__game-list li:hover {
  transform: translateY(-5px);
}

.page-fishing-games__game-list li a {
  text-decoration: none;
  color: var(--page-fishing-games-primary-color);
  font-weight: bold;
}

.page-fishing-games__game-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
}

.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-fishing-games__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-fishing-games-primary-color);
  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: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--page-fishing-games-secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-fishing-games__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: var(--page-fishing-games-text-light);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ cao cho mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03); /* Nền câu trả lời hơi khác */
  border-radius: 0 0 5px 5px;
}

/* CTA Section */
.page-fishing-games__cta-section {
  background-color: var(--page-fishing-games-secondary-color);
  padding: 80px 0;
  text-align: center;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__cta-content {
  max-width: 900px;
}

.page-fishing-games__cta-title {
  color: var(--page-fishing-games-text-light);
  font-size: 2.8em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title,
  .page-fishing-games__section-title {
    font-size: 2.5em;
  }
  .page-fishing-games__cta-title {
    font-size: 2.2em;
  }
  .page-fishing-games__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    margin-top: var(--header-height-mobile, 60px); /* Đẩy nội dung xuống dưới header di động */
  }
  .page-fishing-games__main-title,
  .page-fishing-games__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-fishing-games__paragraph {
    font-size: 1em;
    line-height: 1.7;
  }
  .page-fishing-games__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-fishing-games__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__feature-card img {
    max-width: 250px;
  }
  .page-fishing-games__card-title {
    font-size: 1.3em;
  }
  .page-fishing-games__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-fishing-games__promo-list li,
  .page-fishing-games__strategy-list li,
  .page-fishing-games__game-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-fishing-games__promo-list li::before {
    font-size: 1em;
    margin-right: 10px;
  }
  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
  .page-fishing-games__cta-title {
    font-size: 1.8em;
  }
  /* Mobile image specific rules */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-fishing-games__container,
  .page-fishing-games__feature-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-list li,
  .page-fishing-games__strategy-list li,
  .page-fishing-games__game-list li,
  .page-fishing-games__faq-item,
  .page-fishing-games__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-image {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__main-title,
  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__cta-title {
    font-size: 1.6em;
  }
  .page-fishing-games__btn {
    width: 100%;
  }
  .page-fishing-games__feature-grid, .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
  }
}