/* style/fishing-games.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #DC143C;
  --dark-background: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

/* 页面内容区域样式 - 根据 body 背景色为深色，使用浅色文字 */
.page-fishing-games {
  color: var(--light-text-color);
  background-color: var(--dark-background);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px;
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-fishing-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 必须添加桌面端padding-top，确保内容不被固定导航栏遮挡 */
  padding-top: 120px; /* 桌面端：根据导航栏实际高度调整 */
}

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

/* 🚨 视频点击链接样式（必须严格遵守） */
.page-fishing-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - 🚨 PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
}

/* 🚨 视频点击提示遮罩层样式（可选，增强用户体验） */
.page-fishing-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-fishing-games__video-link:hover .page-fishing-games__video-overlay {
  opacity: 1;
}

.page-fishing-games__video-click-hint {
  color: var(--light-text-color);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  background: rgba(var(--primary-color-rgb, 255, 215, 0), 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now按钮样式（必须严格遵守，位于视频下方中间位置） */
.page-fishing-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-fishing-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--dark-text-color); /* Vàng sáng trên nền đen, chữ đen để tăng độ tương phản */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-fishing-games__play-now-button:hover {
  background: var(--secondary-color); /* Màu đỏ đậm hơn khi hover */
  color: var(--light-text-color); /* Chữ trắng trên nền đỏ */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color); /* Tiêu đề màu vàng */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

.page-fishing-games__dark-section {
  background-color: rgba(255, 215, 0, 0.1); /* Nền vàng nhạt hơn, vẫn giữ độ tương phản */
  color: var(--light-text-color);
}

.page-fishing-games__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-fishing-games__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-fishing-games__content-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.8;
}

.page-fishing-games__content-text p {
  margin-bottom: 20px;
}

.page-fishing-games__content-text ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-fishing-games__content-text li {
  margin-bottom: 10px;
}

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

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* H1 Title Section */
.page-fishing-games__title-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-background) 0%, rgba(var(--secondary-color-rgb, 220, 20, 60), 0.2) 100%);
}

.page-fishing-games__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-fishing-games__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

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

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

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 16px 35px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  word-wrap: break-word;
}

.page-fishing-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--dark-text-color); /* Chữ đen trên nền vàng */
  border: 2px solid var(--primary-color);
}

.page-fishing-games__cta-button--primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--light-text-color); /* Chữ trắng trên nền đỏ */
  border: 2px solid var(--secondary-color);
}

.page-fishing-games__cta-button--secondary:hover {
  background: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Game Section */
.page-fishing-games__about-game-section {
  padding: 80px 20px;
}

.page-fishing-games__about-game-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Guide Section */
.page-fishing-games__guide-section {
  padding: 80px 20px;
  background-color: var(--dark-background);
}

.page-fishing-games__guide-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 20px;
}

.page-fishing-games__features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-fishing-games__feature-item {
  background: var(--card-background-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__feature-icon {
  width: 120px; /* Tăng kích thước icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-fishing-games__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
  font-size: 16px;
  color: var(--light-text-color);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 20px;
  background-color: var(--dark-background);
}

.page-fishing-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 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 25px;
  opacity: 0;
  color: var(--light-text-color);
}

/* 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: 25px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.05); /* Nền nhẹ để phân biệt */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.08); /* Nền tối hơn cho câu hỏi */
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  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.12);
  border-color: var(--primary-color);
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Tiêu đề câu hỏi màu vàng */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--light-text-color);
  background: var(--primary-color);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu trừ */
}

/* Brand Section */
.page-fishing-games__brand-section {
  padding: 80px 20px;
}

.page-fishing-games__brand-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.page-fishing-games__brand-content {
  font-size: 17px;
  line-height: 1.8;
  margin-top: 40px;
  color: var(--light-text-color);
}

.page-fishing-games__brand-content p {
  margin-bottom: 20px;
}

/* Blog Section */
.page-fishing-games__blog-section {
  padding: 80px 20px;
  background-color: var(--dark-background);
}

.page-fishing-games__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-fishing-games__blog-item {
  background: var(--card-background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__blog-link {
  display: block;
  text-decoration: none;
  color: var(--light-text-color);
}

.page-fishing-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__blog-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-fishing-games__blog-item-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 20px 15px;
}

.page-fishing-games__blog-item-date {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 20px 20px;
}

.page-fishing-games__cta-buttons--centered {
  margin-top: 50px;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-fishing-games__video-section {
    /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
    padding-top: 100px !important; /* 移动端：根据移动端导航栏实际高度调整 */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    /* 🚨 移动端必须确保不超出容器 */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-fishing-games__video-container {
    /* 🚨 移动端必须确保不超出容器 */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  /* 🚨 视频链接移动端适配（必须严格遵守） */
  .page-fishing-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-fishing-games__video-wrapper {
    /* 🚨 移动端必须确保不超出容器 */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-fishing-games__video {
    /* 🚨 移动端必须确保视频不超出容器 */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  /* 🚨 Play Now按钮移动端响应式适配（必须严格遵守） */
  .page-fishing-games__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-fishing-games__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* 🚨 视频点击提示遮罩层移动端适配 */
  .page-fishing-games__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

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

  .page-fishing-games__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-fishing-games__title-section {
    padding: 60px 15px;
  }

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

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

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

  .page-fishing-games__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 16px;
  }

  .page-fishing-games__about-game-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__features-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__brand-section,
  .page-fishing-games__blog-section {
    padding: 40px 15px;
  }

  .page-fishing-games__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__content-text,
  .page-fishing-games__content-image {
    flex: none;
    width: 100%;
  }

  .page-fishing-games__image {
    border-radius: 8px;
  }

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

  .page-fishing-games__feature-icon {
    width: 100px; /* Điều chỉnh kích thước icon trên mobile */
    height: 100px;
  }

  .page-fishing-games__feature-title {
    font-size: 20px;
  }

  .page-fishing-games__faq-question {
    padding: 15px 20px;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
  }
  
  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 20px !important;
  }

  .page-fishing-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-fishing-games__blog-item-title {
    font-size: 18px;
    margin: 15px 15px 8px;
  }

  .page-fishing-games__blog-item-excerpt,
  .page-fishing-games__blog-item-date {
    margin: 0 15px 15px;
    font-size: 14px;
  }
  
  /* 🚨 Tất cả hình ảnh trên mobile phải có max-width: 100% */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}