/* style/fishing-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-color-light: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --body-background: #0a0a0a; /* From shared.css, dark background */
}

.page-fishing-games {
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--body-background);
}

.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  color: var(--text-color-light);
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-fishing-games__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  /* clamp for responsive font size, avoid fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-fishing-games__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-fishing-games__introduction-section,
.page-fishing-games__promotions-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__faq-section {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
  padding: 60px 20px;
}

.page-fishing-games__features-section,
.page-fishing-games__game-types-section,
.page-fishing-games__tips-section {
  background-color: var(--body-background);
  color: var(--text-color-light);
  padding: 60px 20px;
}

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

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-fishing-games__introduction-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__how-to-play-section .page-fishing-games__section-title,
.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: var(--primary-color);
}

.page-fishing-games__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-fishing-games__feature-card,
.page-fishing-games__game-card,
.page-fishing-games__tip-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__feature-image,
.page-fishing-games__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

.page-fishing-games__how-to-play-section ol {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-fishing-games__how-to-play-section .page-fishing-games__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: var(--text-color-dark);
}

.page-fishing-games__how-to-play-section .page-fishing-games__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
  background-color: rgba(38, 169, 224, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__how-to-play-section .page-fishing-games__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__how-to-play-section .page-fishing-games__list-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-dark);
}

.page-fishing-games__promo-list {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--text-color-dark);
}

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

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

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

.page-fishing-games__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark);
}

.page-fishing-games__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-item summary:hover {
  background-color: #f0f8ff;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-fishing-games__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-dark);
  border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding: 40px 15px;
  }

  .page-fishing-games__hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-fishing-games__hero-description {
    font-size: 1rem;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-fishing-games__introduction-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section {
    padding: 40px 15px;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block,
  .page-fishing-games__promo-list,
  .page-fishing-games__promo-list li,
  .page-fishing-games__faq-item summary,
  .page-fishing-games__faq-answer {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-fishing-games__how-to-play-section .page-fishing-games__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .page-fishing-games__how-to-play-section .page-fishing-games__list-item::before {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__container,
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__tip-card,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__tip-card {
    padding: 20px;
  }

  .page-fishing-games__how-to-play-section .page-fishing-games__list-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__faq-item summary {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}