/* style/fishing-games.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-fishing-games {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top offset, this is decorative */
  text-align: center;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -200px; /* Overlap with image for visual effect, ensuring text is below image */
  background: linear-gradient(0deg, var(--page-bg-color) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  border-radius: 15px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-fishing-games__description {
  font-size: 1.15rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
}

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

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

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

.page-fishing-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(87, 227, 141, 0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* General Section Styling */
.page-fishing-games__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-fishing-games__subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__dark-section {
  background-color: var(--card-bg-color);
  padding: 80px 0;
}

.page-fishing-games__light-bg {
  background-color: var(--page-bg-color);
  padding: 80px 0;
}

.page-fishing-games__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

/* About Section */
.page-fishing-games__about-section .page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-fishing-games__about-section .page-fishing-games__text-block {
  flex: 1;
}

.page-fishing-games__about-section .page-fishing-games__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

.page-fishing-games__about-section .page-fishing-games__image-block {
  flex: 1;
  text-align: center;
}

.page-fishing-games__about-section .page-fishing-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Games List Section */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-fishing-games__game-card {
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-fishing-games__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-fishing-games__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 30px;
  margin-top: auto;
}

.page-fishing-games__view-all-button {
  text-align: center;
}

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

.page-fishing-games__feature-item {
  text-align: center;
  padding: 40px 20px;
}

.page-fishing-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-fishing-games__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-fishing-games__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

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

.page-fishing-games__step-item {
  text-align: center;
  padding: 30px;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  background-color: rgba(17, 39, 27, 0.5); /* Slightly lighter than card-bg for visual hierarchy */
}

.page-fishing-games__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--glow-color);
  margin-bottom: 15px;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--deep-green-color);
  border: 2px solid var(--glow-color);
}

.page-fishing-games__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 10px;
}

.page-fishing-games__step-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

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

.page-fishing-games__faq-item {
  background-color: var(--page-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-fishing-games__faq-item[open] {
  background-color: var(--deep-green-color);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-fishing-games__faq-question:hover {
  background-color: rgba(var(--border-color-rgb), 0.2);
}

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

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

.page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
}

.page-fishing-games__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-fishing-games__about-section .page-fishing-games__content-wrapper {
    flex-direction: column;
  }

  .page-fishing-games__about-section .page-fishing-games__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-fishing-games__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 0 15px !important;
  }

  .page-fishing-games__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-fishing-games__hero-content {
    padding: 20px 15px;
    margin-top: -60px; /* Adjust overlap for smaller screens */
  }

  .page-fishing-games__main-title {
    font-size: 2rem;
  }

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

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: 1.8rem;
  }

  .page-fishing-games__subtitle {
    font-size: 0.95rem;
  }

  .page-fishing-games__dark-section,
  .page-fishing-games__light-bg {
    padding: 40px 0;
  }

  .page-fishing-games__game-grid,
  .page-fishing-games__features-grid,
  .page-fishing-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-fishing-games__card-title {
    font-size: 1.3rem;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__step-title {
    font-size: 1.2rem;
  }

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

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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