/* style/fishing-games.css */

/* CSS Variables for theme colors */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f5;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  --border-color: #e0e0e0;
}

/* Page-specific styling for fishing-games */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body bg */
}

/* Container for consistent width and centering */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-fishing-games__hero-section,
.page-fishing-games__features-section,
.page-fishing-games__games-showcase-section,
.page-fishing-games__guide-section,
.page-fishing-games__tips-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final-section {
  padding: 60px 0;
}

/* Ensure first content section has padding-top for fixed header */
.page-fishing-games__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  background: linear-gradient(135deg, var(--secondary-color), #00004d); /* Dark blue gradient */
  color: var(--text-light);
  text-align: center;
}

.page-fishing-games__dark-bg {
  background: linear-gradient(135deg, var(--secondary-color), #00004d); /* Dark blue gradient */
  color: var(--text-light);
}

.page-fishing-games__light-bg {
  background: var(--card-bg-light);
  color: var(--text-dark);
}

/* Titles */
.page-fishing-games__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color); /* Primary color for section titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description,
.page-fishing-games__section-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: var(--text-light);
}

.page-fishing-games__section-description strong {
    color: var(--primary-color);
}

.page-fishing-games__hero-description strong {
    color: var(--primary-color);
}

/* Call to Action Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark blue text on gold button */
}

.page-fishing-games__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Feature 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-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games__feature-icon {
  width: 150px; /* Min size 200x200, but icon style can be smaller source, then scaled up */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px; /* Added for visual appeal */
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Dark blue for feature titles */
}

.page-fishing-games__feature-item p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-fishing-games__feature-item p strong {
    color: var(--secondary-color);
}

/* Games Showcase 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 {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__game-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-fishing-games__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-fishing-games__game-description strong {
    color: var(--secondary-color);
}

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

.page-fishing-games__guide-step {
  text-align: left;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-fishing-games__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-fishing-games__guide-step p strong {
    color: var(--secondary-color);
}

.page-fishing-games__guide-step a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__guide-step a:hover {
    color: var(--secondary-color);
}

/* Tips Section */
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-fishing-games__tips-list li {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

/* FAQ container style */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--card-bg-light); /* Light background for FAQ items */
  color: var(--text-dark);
}

/* FAQ default state - answer hidden */
.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 15px;
  opacity: 0;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height to ensure expansion */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer p strong {
    color: var(--secondary-color);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-fishing-games__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--secondary-color); /* Dark blue for FAQ questions */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color); /* Gold color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Text highlight for keywords */
.page-fishing-games .text-highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* General image responsive styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__hero-description,
  .page-fishing-games__section-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* Ensure main content has padding-top for fixed header on mobile */
  .page-fishing-games__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual mobile header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fishing-games__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-fishing-games__hero-description,
  .page-fishing-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* CTA Buttons responsive */
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 0 15px; /* Add padding to container to prevent buttons touching edges */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-fishing-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Feature items */
  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__guide-steps {
    gap: 20px;
  }

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

  .page-fishing-games__feature-title {
    font-size: 1.3em;
  }

  .page-fishing-games__game-title {
    font-size: 1.4em;
  }

  .page-fishing-games__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-fishing-games__tips-list {
    padding: 0 15px;
  }

  .page-fishing-games__tips-list li {
    padding: 15px;
    font-size: 0.95em;
  }

  /* FAQ responsive */
  .page-fishing-games__faq-list {
    padding: 0 15px;
  }

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }

  /* Image responsive enforcement */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__features-section,
  .page-fishing-games__games-showcase-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-final-section,
  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__guide-step,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
}