/* style/fishing-games.css */

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

/* Base styles for the page content, adapting to dark body background */
.page-fishing-games {
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-dark); /* Ensure sections blend or contrast appropriately */
}

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

.page-fishing-games a:hover {
  text-decoration: underline;
}

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

.page-fishing-games__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-light); /* Default for dark sections */
}

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

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

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim image for text readability */
}

.page-fishing-games__hero-content {
  position: absolute;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text on image */
  border-radius: 10px;
}

.page-fishing-games__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Use clamp for H1 */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-fishing-games__cta-button,
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-fishing-games__btn-primary {
  background-color: var(--login-button-color); /* Use specific login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

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

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

/* Sections */
.page-fishing-games__about-section,
.page-fishing-games__popular-games,
.page-fishing-games__tips-strategies,
.page-fishing-games__faq-section {
  padding: 80px 0;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Light background for contrast */
}

.page-fishing-games__dark-section {
  padding: 80px 0;
  color: var(--text-light);
  background-color: var(--background-dark); /* Dark background */
}

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

.page-fishing-games__dark-section .page-fishing-games__text-block {
  color: var(--text-light);
}

.page-fishing-games__dark-section .page-fishing-games__btn-link {
  color: var(--primary-color);
}

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

.page-fishing-games__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light background on dark section */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-fishing-games__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
}

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

.page-fishing-games__game-card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  color: var(--text-dark);
  padding: 15px 15px 0;
}

.page-fishing-games__game-card .page-fishing-games__card-title a {
  color: var(--text-dark);
}

.page-fishing-games__game-card .page-fishing-games__card-text {
  color: var(--text-dark);
  padding: 0 15px 15px;
}

/* How to Play & Tips */
.page-fishing-games__steps-list,
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__list-item {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-light); /* For dark section */
}

.page-fishing-games__light-bg .page-fishing-games__list-item {
  color: var(--text-dark); /* For light section */
}

.page-fishing-games__list-item::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-fishing-games__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light background on dark section */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
  color: var(--primary-color);
}

.page-fishing-games__promo-card .page-fishing-games__card-title a {
  color: var(--primary-color);
}

.page-fishing-games__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.page-fishing-games__btn-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-fishing-games__faq-answer {
  padding: 0 25px 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-fishing-games__faq-answer p {
  margin-top: 10px;
}

/* General button group spacing */
.page-fishing-games__button-group {
  margin-top: 40px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }

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

  .page-fishing-games__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-fishing-games__section-title {
    font-size: clamp(26px, 3.8vw, 42px);
  }

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

  .page-fishing-games__card-title {
    font-size: 22px;
  }

  .page-fishing-games__card-text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* Mobile responsive video */
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__hero-section,
  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__popular-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__tips-strategies,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container,
  .page-fishing-games__container,
  .page-fishing-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-fishing-games__hero-content {
    position: relative; /* Make content relative on mobile to prevent overlap */
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.7); /* Stronger background for text readability */
    margin-top: 20px; /* Separate from image */
  }
  
  .page-fishing-games__hero-image-wrapper {
    max-height: 300px;
  }

  .page-fishing-games__hero-image {
    filter: brightness(0.8); /* Less dim when text is not directly on top */
  }

  .page-fishing-games__main-title {
    font-size: 32px; /* Fixed for mobile */
    margin-bottom: 15px;
  }

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

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

  .page-fishing-games__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }

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

  .page-fishing-games__text-block,
  .page-fishing-games__list-item,
  .page-fishing-games__card-text,
  .page-fishing-games__faq-answer p {
    font-size: 15px;
  }

  .page-fishing-games__card-image {
    height: 200px;
  }

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

  .page-fishing-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-fishing-games__faq-toggle {
    font-size: 20px;
  }

  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__popular-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__tips-strategies,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 0;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }
}