/* style/fishing-games.css */

/* Variables for consistent styling */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --body-bg-color: #121212;
  --section-bg-dark: rgba(255, 255, 255, 0.05);
  --section-bg-light: rgba(255, 255, 255, 0.08);
  --faq-item-bg: rgba(255, 255, 255, 0.03);
  --faq-question-bg: rgba(255, 255, 255, 0.05);
  --faq-answer-bg: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content */
.page-fishing-games {
  background-color: var(--body-bg-color);
  color: var(--text-light);
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure all links within the main content have good contrast */
.page-fishing-games a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Highlight span for keywords */
.page-fishing-games .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Sections and containers */
.page-fishing-games__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--section-bg-dark); /* Slightly lighter background for sections */
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section--dark {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-fishing-games__container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Headings */
.page-fishing-games h1, 
.page-fishing-games h2, 
.page-fishing-games h3 {
  color: #ffffff; /* White for headings on dark background */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-fishing-games h1 {
  font-size: 3.2em;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games h2 {
  font-size: 2.5em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 25px;
}

.page-fishing-games h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-fishing-games p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-fishing-games ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-fishing-games li {
  margin-bottom: 8px;
  font-size: 1.1em;
}

/* Buttons (CTA) */
.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin-top: 20px;
  margin-right: 15px;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-fishing-games__cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

/* Images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Ensure no CSS filter is used to change image color */
  filter: none; /* Explicitly ensure no filters are applied */
}

/* FAQ section styles */
.page-fishing-games__faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: var(--section-bg-light); /* Slightly lighter background for FAQ */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__faq-title {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--faq-item-bg); /* Even lighter for individual items */
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--faq-question-bg); /* Slightly different background for question */
  border: 1px solid var(--border-color);
  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, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none;
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Use secondary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transform: rotate(0deg); /* Initial state */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg); /* Rotate for active state */
}

.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 20px;
  opacity: 0;
  background: var(--faq-answer-bg); /* Very subtle background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light); /* Light text for answer */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Responsive design for desktop, tablet, mobile */
@media (max-width: 1024px) {
  .page-fishing-games h1 {
    font-size: 2.8em;
  }
  .page-fishing-games h2 {
    font-size: 2.2em;
  }
  .page-fishing-games h3 {
    font-size: 1.6em;
  }
  .page-fishing-games p, .page-fishing-games li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-fishing-games__section {
    padding: 30px 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .page-fishing-games h1 {
    font-size: 2.2em;
    padding: 0 10px;
  }
  .page-fishing-games h2 {
    font-size: 1.8em;
    padding: 0 10px;
  }
  .page-fishing-games h3 {
    font-size: 1.4em;
    padding: 0 10px;
  }

  .page-fishing-games__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
    margin-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* Add margin between stacked buttons */
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .page-fishing-games__cta-button:last-child {
    margin-bottom: 0;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* FAQ mobile styles */
  .page-fishing-games__faq-section {
    padding: 30px 15px;
    margin: 40px auto;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

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

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 1.1em;
    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;
  }
}