/* style/fishing-games.css */

/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-fishing-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__dark-bg {
  background-color: #1a1a1a; /* Darker background for sections */
  color: #ffffff;
}

.page-fishing-games__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-fishing-games__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #017439; /* Brand green for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for main title for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0; /* Light grey for paragraphs */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px; /* Adjusted padding to accommodate header offset */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #017439 0%, #004d2c 100%); /* Gradient brand color */
  color: #ffffff;
}

.page-fishing-games__hero-content {
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.page-fishing-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  filter: brightness(0.7); /* Darken image to ensure text contrast */
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow font */
  border: 2px solid #C30808;
}

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

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login yellow font */
  border: 2px solid #C30808;
}

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

.page-fishing-games__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #017439;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.page-fishing-games__btn-small:hover {
  background-color: #004d2c;
}

.page-fishing-games__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Content Images */
.page-fishing-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-fishing-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-fishing-games__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategy List */
.page-fishing-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #017439;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #ffffff;
}

.page-fishing-games__list-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-fishing-games__list-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Enhance icon visibility on dark background */
}

.page-fishing-games__feature-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

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

/* Guide List */
.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__guide-list .page-fishing-games__list-item {
  counter-increment: guide-counter;
  position: relative;
  padding-left: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
}

.page-fishing-games__guide-list .page-fishing-games__list-item::before {
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439; /* Brand green for question */
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid 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.06);
}

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

.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, padding 0.3s ease;
  color: #f0f0f0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 20px;
}

.page-fishing-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

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

  .page-fishing-games__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-fishing-games__main-title {
    font-size: 2.5em;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }

  .page-fishing-games__paragraph {
    font-size: 0.95em;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin-left: auto;
    margin-right: auto;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-small,
  .page-fishing-games__btn-large,
  .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;
  }

  .page-fishing-games__grid-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-fishing-games__card,
  .page-fishing-games__feature-item {
    padding: 25px;
  }

  .page-fishing-games__card-title {
    font-size: 1.5em;
  }

  .page-fishing-games__features-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-fishing-games__list-item {
    padding: 15px 20px;
    margin: 0 15px 15px;
  }

  .page-fishing-games__guide-list .page-fishing-games__list-item {
    padding-left: 50px;
    margin: 0 15px 15px;
  }

  .page-fishing-games__guide-list .page-fishing-games__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

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

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

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

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

  /* Ensure all images are responsive in content areas */
  .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-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__section {
    padding: 50px 0;
  }

  .page-fishing-games__hero-image {
    filter: brightness(0.5); /* Darken more for better contrast on small screens */
  }

  /* Video responsiveness (if any video is added) */
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Floating login/register buttons */
  .page-fishing-games__floating-buttons {
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
  }
}

/* Floating Login/Register Buttons (Mobile Specific) */
.page-fishing-games__floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.page-fishing-games__floating-buttons .page-fishing-games__btn-primary,
.page-fishing-games__floating-buttons .page-fishing-games__btn-secondary {
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 120px; /* Ensure buttons are not too small */
}

@media (min-width: 769px) {
  .page-fishing-games__floating-buttons {
    display: none; /* Hide floating buttons on desktop */
  }
}