/* style/fishing-games.css */

/* Thiết lập cơ bản cho trang Bắn Cá */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Mặc định chữ sáng trên nền tối */
  background-color: var(--primary-color);
}

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

.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Màu vàng phụ đạo */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

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

.page-fishing-games__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.page-fishing-games__btn--primary {
  background-color: #FFD700;
  color: #0A192F;
}

.page-fishing-games__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

.page-fishing-games__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-fishing-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 80px 0; /* padding-top 10px cho header cố định */
  margin-top: 0;
  background: linear-gradient(135deg, #0A192F, #001f3f);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  box-sizing: border-box;
}

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

.page-fishing-games__hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-fishing-games__image-wrapper {
  margin: 40px auto;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
  background-color: #1a2a44;
  color: #f0f0f0;
}

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

.page-fishing-games__feature-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 215, 0, 0.1);
}

.page-fishing-games__feature-icon {
  width: 120px; /* Tăng kích thước ảnh */
  height: 120px; /* Tăng kích thước ảnh */
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* How-to-Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-fishing-games__how-to-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto;
}

.page-fishing-games__how-to-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px;
  border-left: 5px solid #FFD700;
}

.page-fishing-games__how-to-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #0A192F;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.page-fishing-games__list-item-title {
  font-size: 22px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__how-to-list p {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

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

.page-fishing-games__tip-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__tip-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 215, 0, 0.05);
}

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

.page-fishing-games__tip-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-fishing-games__image-wrapper--center {
  margin-top: 60px;
  max-width: 1000px;
}

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

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-fishing-games__promo-list li {
  background: rgba(255, 215, 0, 0.1);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

.page-fishing-games__promo-list p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Security Section */
.page-fishing-games__security-section {
  padding: 80px 0;
  background-color: #1a2a44;
  color: #f0f0f0;
}

.page-fishing-games__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-fishing-games__security-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

.page-fishing-games__security-list p {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* 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: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height đảm bảo mở rộng */
.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 25px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 0 0 8px 8px;
}

/* Vấn đề style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  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, 215, 0, 0.15);
}

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

/* Vấn đề tiêu đề style */
.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; /* Ngăn chặn thẻ h3 chặn sự kiện click */
  color: #FFD700;
}

/* Icon chuyển đổi */
.page-fishing-games__faq-toggle {
  font-size: 28px;
  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; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 48px;
  }
  .page-fishing-games__hero-description {
    font-size: 20px;
  }
  .page-fishing-games__section-title {
    font-size: 34px;
  }
  .page-fishing-games__text-block {
    font-size: 17px;
  }
  .page-fishing-games__feature-icon {
    width: 100px;
    height: 100px;
  }
  .page-fishing-games__feature-title {
    font-size: 22px;
  }
  .page-fishing-games__how-to-list li {
    padding-left: 60px;
  }
  .page-fishing-games__how-to-list li::before {
    width: 30px;
    height: 30px;
    font-size: 18px;
    left: 15px;
  }
  .page-fishing-games__list-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-fishing-games__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-fishing-games__hero-section {
    padding: 10px 0 60px 0;
    min-height: 350px;
  }
  .page-fishing-games__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-fishing-games__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-fishing-games__text-block {
    font-size: 16px;
  }
  .page-fishing-games__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__security-section,
  .page-fishing-games__faq-section {
    padding: 60px 0;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__tip-card {
    padding: 25px;
  }
  .page-fishing-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-fishing-games__feature-title {
    font-size: 20px;
  }
  .page-fishing-games__how-to-list li {
    padding: 20px 25px;
    padding-left: 55px;
  }
  .page-fishing-games__how-to-list li::before {
    width: 28px;
    height: 28px;
    font-size: 16px;
    left: 15px;
  }
  .page-fishing-games__list-item-title {
    font-size: 18px;
  }
  .page-fishing-games__promo-list li,
  .page-fishing-games__security-list li {
    padding: 18px 20px;
  }
  .page-fishing-games__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 20px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px 20px !important;
  }

  /* Mobile image responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 5px;
  }
  .page-fishing-games__image-wrapper--center {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 30px;
  }
  .page-fishing-games__hero-description {
    font-size: 16px;
  }
  .page-fishing-games__section-title {
    font-size: 24px;
  }
  .page-fishing-games__feature-title {
    font-size: 18px;
  }
  .page-fishing-games__how-to-list li::before {
    left: 10px;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 15px;
  }
}