/* style/fishing-games.css */

/* Custom properties for colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #26A9E0; /* Using primary color for dark sections */
  --btn-login-color: #EA7C07;
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background: var(--secondary-color); /* Default body background is white/light */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-fishing-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-fishing-games__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-fishing-games__text-block {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-fishing-games__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #5bc0de); /* Gradient background for visual appeal */
  color: var(--text-light);
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}

.page-fishing-games__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-fishing-games__intro-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
  background: var(--secondary-color); /* White button */
  color: var(--primary-color); /* Blue text */
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-fishing-games__introduction {
  background: var(--secondary-color);
  color: var(--text-dark);
}

/* Game Features Section */
.page-fishing-games__game-features {
  background: var(--bg-dark); /* Use primary color for dark section background */
  color: var(--text-light);
}

.page-fishing-games__game-features .page-fishing-games__section-title {
  color: var(--text-light);
}

.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-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light); /* Light text for dark background */
}

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

.page-fishing-games__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-fishing-games__card-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__game-features .page-fishing-games__highlight {
  color: var(--secondary-color);
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.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-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-fishing-games__step-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-fishing-games__step-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-fishing-games__cta-center {
  margin-top: 60px;
}

/* Tips & Strategies Section */
.page-fishing-games__tips-strategies {
  background: var(--bg-light); /* Light grey background */
  color: var(--text-dark);
}

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

.page-fishing-games__tip-card {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__tip-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-fishing-games__promotions {
  background: var(--bg-dark); /* Primary color background */
  color: var(--text-light);
}

.page-fishing-games__promotions .page-fishing-games__section-title {
  color: var(--text-light);
}

.page-fishing-games__promotions .page-fishing-games__text-block {
  color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__promotions .page-fishing-games__highlight {
  color: var(--secondary-color);
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-fishing-games__promo-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__promo-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-fishing-games__promo-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__promo-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Safety & Support Section */
.page-fishing-games__safety-support {
  background: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-fishing-games__support-item {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__support-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__support-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* FAQ Section */
.page-fishing-games__faq {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--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(--text-dark);
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__main-title {
    font-size: 40px;
  }
  .page-fishing-games__intro-text {
    font-size: 18px;
  }
  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

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

  .page-fishing-games__section {
    padding: 40px 0;
  }

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

  .page-fishing-games__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section Mobile */
  .page-fishing-games__hero-section {
    padding: 30px 15px;
  }

  .page-fishing-games__hero-image {
    margin-bottom: 20px;
  }

  .page-fishing-games__hero-image img {
    border-radius: 4px;
  }

  .page-fishing-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-fishing-games__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to the container, not button itself if it's full width */
  }

  .page-fishing-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center button if it's in a flex column */
  }

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