/* style/fishing-games.css */

/* Base styles for the page-fishing-games */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Defaults to #F2FFF6 */
  background-color: var(--background-color); /* From shared.css, expected #08160F */
}

/* Color variables based on provided palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* General Section Styling */
.page-fishing-games__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-fishing-games__section-title {
  font-size: 2.8em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0; /* Image wrapper handles height */
  background-color: var(--background-color);
  position: relative;
  min-height: 100vh; /* Ensure it takes full viewport height on desktop */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image slightly for visual effect */
  background: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(0%);
}

.page-fishing-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--gold-color);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--gold-color);
}

/* Why Choose Section */
.page-fishing-games__why-choose {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-fishing-games__why-choose .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__why-choose .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

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

.page-fishing-games__feature-item {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__feature-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

/* Popular Games Section */
.page-fishing-games__popular-games {
  background-color: var(--background-color);
}

.page-fishing-games__popular-games .page-fishing-games__section-title {
  color: var(--text-main-color);
}

.page-fishing-games__popular-games .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

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

.page-fishing-games__game-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin: 20px 15px 10px;
}

.page-fishing-games__game-card-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__game-card-title a:hover {
  color: var(--glow-color);
}

.page-fishing-games__game-card-description {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  padding: 0 15px 20px;
}

.page-fishing-games__game-card .page-fishing-games__btn-secondary {
  margin-bottom: 20px;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-fishing-games__game-card .page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-fishing-games__how-to-play .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__how-to-play .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

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

.page-fishing-games__step-item {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
  border: 1px solid var(--border-color);
}

.page-fishing-games__step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  background: var(--button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__step-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-fishing-games__step-text {
  font-size: 1em;
  color: var(--text-secondary-color);
}

.page-fishing-games__cta-center {
  margin-top: 50px;
}

/* Promotions Section */
.page-fishing-games__promotions {
  background-color: var(--background-color);
}

.page-fishing-games__promotions .page-fishing-games__section-title {
  color: var(--text-main-color);
}

.page-fishing-games__promotions .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 50px auto;
  text-align: left;
}

.page-fishing-games__promo-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 1.1em;
  color: var(--text-main-color);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-item::before {
  content: '⭐'; /* Unicode star or similar icon */
  margin-right: 15px;
  font-size: 1.2em;
  color: var(--gold-color);
}

/* Tips Section */
.page-fishing-games__tips {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-fishing-games__tips .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__tips .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

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

.page-fishing-games__tip-card {
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-fishing-games__tip-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__tip-card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin: 20px 15px 10px;
}

.page-fishing-games__tip-card-text {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  padding: 0 15px 20px;
}

/* FAQ Section */
.page-fishing-games__faq {
  background-color: var(--background-color);
}

.page-fishing-games__faq .page-fishing-games__section-title {
  color: var(--text-main-color);
}

.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 50px auto;
  text-align: left;
}

.page-fishing-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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: var(--gold-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* Details element specific styling */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-fishing-games__conclusion {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-fishing-games__conclusion .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__conclusion .page-fishing-games__section-description {
  color: var(--text-secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    margin-top: -100px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-fishing-games__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__section {
    padding: 60px 0;
  }
  .page-fishing-games__hero-image-wrapper {
    height: 40vh;
    min-height: 300px;
  }
  .page-fishing-games__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-fishing-games__hero-description,
  .page-fishing-games__section-description {
    font-size: 1em;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important; /* Enforce full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__tip-card {
    padding: 25px;
  }

  .page-fishing-games__promo-item,
  .page-fishing-games__faq-question,
  .page-fishing-games__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }
  
  /* Video responsiveness (if any video elements were 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;
  }

  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-fishing-games__hero-content {
    margin-top: -60px;
  }
  .page-fishing-games__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -15px;
    left: 15px;
  }
  .page-fishing-games__step-title {
    margin-top: 10px;
  }
}