/* style/fishing-games.css */

/* Base styles for the page content area */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Inherit body background from shared.css */
}

/* Fixed header offset */
.page-fishing-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* General container for content */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-fishing-games__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden; /* Ensure hero image doesn't overflow */
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
  filter: none; /* Ensure no CSS filter is applied to images */
}

.page-fishing-games__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff; /* Default for dark sections */
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Slightly lighter for descriptions */
}

/* Color schemes for sections */
.page-fishing-games__dark-bg {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg .page-fishing-games__feature-title,
.page-fishing-games__dark-bg .page-fishing-games__tip-title,
.page-fishing-games__dark-bg .page-fishing-games__faq-question span:first-child {
    color: #ffffff;
}

.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__guide-title,
.page-fishing-games__light-bg .page-fishing-games__promo-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-fishing-games__light-bg .page-fishing-games__section-description,
.page-fishing-games__light-bg .page-fishing-games__guide-description,
.page-fishing-games__light-bg .page-fishing-games__promo-description,
.page-fishing-games__light-bg .page-fishing-games__faq-answer p {
    color: #333333;
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  box-sizing: border-box; /* Ensure proper box model for container */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  min-width: 150px; /* Ensure buttons have a reasonable min-width */
}

.page-fishing-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Specific button for Login/Register (if needed, using custom color) */
.page-fishing-games__btn-login {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-fishing-games__btn-login:hover {
  background-color: #c96806;
  border-color: #c96806;
}

/* Images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter is applied to images */
}

/* Video section */
.page-fishing-games__intro-video-section {
  padding: 60px 20px;
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 800px; /* Max width for video */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  width: 100%;
}

.page-fishing-games__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  filter: none; /* Ensure no CSS filter is applied to videos */
}

.page-fishing-games__cta-buttons--video {
    margin-top: 20px;
}

/* Features section */
.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-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__feature-icon {
  width: 200px; /* Adjusted to meet min size requirement */
  height: 200px; /* Adjusted to meet min size requirement */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 0;
  filter: none;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-fishing-games__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Gameplay Guide section */
.page-fishing-games__gameplay-guide-section {
    padding: 60px 20px;
}

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

.page-fishing-games__guide-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-fishing-games__guide-image {
    width: 100%;
    height: 250px; /* Ensure sufficient height */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: none;
}

.page-fishing-games__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-fishing-games__guide-description {
    font-size: 0.95em;
    color: #555555;
}

/* Tips and Tricks section */
.page-fishing-games__tips-tricks-section {
    padding: 60px 20px;
}

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

.page-fishing-games__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
}

.page-fishing-games__tip-image {
    width: 100%;
    height: 300px; /* Ensure sufficient height */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: none;
}

.page-fishing-games__tip-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-fishing-games__tip-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Promotions section */
.page-fishing-games__promotion-section {
    padding: 60px 20px;
}

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

.page-fishing-games__promo-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 250px; /* Ensure sufficient height */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: none;
}

.page-fishing-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-fishing-games__promo-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ section */
.page-fishing-games__faq-section {
  padding: 60px 20px;
}

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px;
}

.page-fishing-games__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #f0f0f0;
}

/* Final CTA section */
.page-fishing-games__cta-final-section {
    padding: 80px 20px;
}

.page-fishing-games__text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* Mobile-specific adjustments */
  .page-fishing-games__hero-section {
    padding: 60px 15px;
  }
  .page-fishing-games__hero-title {
    font-size: 2em;
  }
  .page-fishing-games__hero-description {
    font-size: 1em;
  }
  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__section-description {
    font-size: 1em;
  }

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

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

  .page-fishing-games__feature-icon {
    width: 200px !important; /* Enforce min size even on mobile */
    height: 200px !important;
  }

  .page-fishing-games__guide-image,
  .page-fishing-games__tip-image,
  .page-fishing-games__promo-image {
    height: auto !important;
    max-height: 250px; /* Optional max height */
  }

  /* Video responsiveness */
  .page-fishing-games__intro-video-section,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video section specific padding-top for mobile */
  .page-fishing-games__intro-video-section {
      padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsiveness */
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Card layouts for mobile */
  .page-fishing-games__features-grid,
  .page-fishing-games__guide-grid,
  .page-fishing-games__tips-grid,
  .page-fishing-games__promos-grid {
    grid-template-columns: 1fr;
  }

  .page-fishing-games__feature-card,
  .page-fishing-games__guide-step,
  .page-fishing-games__tip-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

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

  .page-fishing-games__faq-answer {
    padding: 0 20px;
  }

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