/* style/fishing-games.css */

/* Base styles for the fishing games page */
.page-fishing-games {
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-fishing-games__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-fishing-games__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-fishing-games__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Hero Intro Section */
.page-fishing-games__hero-intro-section {
  background: linear-gradient(135deg, #1A202C, #0a0a0a); /* Dark gradient */
  padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
  padding-bottom: 60px;
}

.page-fishing-games__hero-intro-section .page-fishing-games__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-fishing-games__hero-content {
  flex: 1;
}

.page-fishing-games__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 19px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-fishing-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-fishing-games__hero-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-fishing-games__hero-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-fishing-games__feature-card {
  background-color: #222222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-fishing-games__feature-title {
  font-size: 24px;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__feature-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
}

/* Featured Games Section */
.page-fishing-games__featured-games-section {
  background-color: #121212;
  padding: 60px 0;
}

.page-fishing-games__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-fishing-games__game-card {
  background-color: #222222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-fishing-games__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

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

.page-fishing-games__game-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  padding: 15px 10px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tips Section */
.page-fishing-games__tips-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-fishing-games__tip-item {
  background-color: #222222;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  height: 100%;
}

.page-fishing-games__tip-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__tip-item p {
  font-size: 16px;
  color: #cccccc;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: #121212;
  padding: 60px 0;
}

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

.page-fishing-games__promo-list li {
  background-color: #222222;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  color: #f0f0f0;
  border-left: 5px solid #FFD700;
}

.page-fishing-games__promo-list li strong {
  color: #FFD700;
}

/* CTA Section */
.page-fishing-games__cta-section {
  background: linear-gradient(90deg, #1A202C, #FFD700);
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
  color: #1A202C; /* Dark title on light background */
  margin-bottom: 25px;
}

.page-fishing-games__cta-section .page-fishing-games__text-block {
  color: #1A202C;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-fishing-games__cta-section .page-fishing-games__btn--primary {
  background-color: #1A202C;
  color: #FFD700;
  border-color: #1A202C;
}

.page-fishing-games__cta-section .page-fishing-games__btn--primary:hover {
  background-color: #000000;
  border-color: #000000;
}

.page-fishing-games__cta-section .page-fishing-games__btn--secondary {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-fishing-games__cta-section .page-fishing-games__btn--secondary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-fishing-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #222222;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C; /* Main color */
  border: 1px solid #333333;
  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: #2a303c;
  border-color: #555555;
}

.page-fishing-games__faq-question:active {
  background: #0a0a0a;
}

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold text for question */
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

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

/* General image responsiveness */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-intro-section .page-fishing-games__container {
    flex-direction: column;
    text-align: center;
  }

  .page-fishing-games__hero-content {
    order: 2;
  }

  .page-fishing-games__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-fishing-games__hero-title {
    font-size: 42px;
  }

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

  .page-fishing-games__hero-cta-buttons {
    justify-content: center;
  }

  .page-fishing-games__section-title {
    font-size: 30px;
  }

  .page-fishing-games__feature-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-fishing-games__game-card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 30px 15px;
  }

  .page-fishing-games__hero-intro-section {
    padding-top: var(--header-offset-mobile, 80px); /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-fishing-games__hero-title {
    font-size: 36px;
  }

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

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

  .page-fishing-games__btn {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Ensure full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-fishing-games__text-block {
    font-size: 15px;
  }

  .page-fishing-games__feature-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__game-card-image {
    height: 160px;
  }

  .page-fishing-games__game-card-title {
    font-size: 16px;
  }

  .page-fishing-games__promo-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-fishing-games__cta-section {
    padding: 60px 0;
  }

  .page-fishing-games__cta-section .page-fishing-games__text-block {
    color: #1A202C;
    font-size: 15px;
  }

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 15px;
    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;
  }

  /* Mobile image responsiveness for all images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding/border included in width */
  }

  /* All containers with images/buttons */
  .page-fishing-games__hero-intro-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__featured-games-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__container,
  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__feature-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__tips-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Ensure no padding on section if container already has it */
  .page-fishing-games__hero-intro-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__featured-games-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}