/* style/fishing-games.css */

/* Custom Colors from palette */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-fishing-games {
  background-color: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text for contrast */
  font-family: 'Arial', sans-serif; /* Placeholder font */
  line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css, this page only adds content */
/* No padding-top: var(--header-offset) here */

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

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

.page-fishing-games__section-title {
  font-size: 2.8em; /* Using em for relative sizing, will be responsive */
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--color-background);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  height: auto; /* Ensures image maintains aspect ratio */
  position: relative;
  overflow: hidden;
}

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

.page-fishing-games__hero-content {
  position: relative; /* Changed from absolute to relative for "image-on-top, text-below" */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 2; /* Ensure text is above image if there's any overlap due to responsive behavior */
  background-color: rgba(8, 22, 15, 0.7); /* Slightly transparent background for readability */
  margin-top: -100px; /* Pull up over image slightly */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: translateY(-50px); /* Adjust position */
}

.page-fishing-games__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.7); /* Glow effect */
}

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

.page-fishing-games__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Buttons */
.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-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* For mobile responsiveness */
  word-wrap: break-word; /* For mobile responsiveness */
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--color-button-gradient-start);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--color-button-gradient-start);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Intro Section */
.page-fishing-games__intro-section {
  background-color: var(--color-card-bg); /* Darker background for contrast */
  padding: 80px 0;
  border-bottom: 1px solid var(--color-divider);
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-fishing-games__card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--color-deep-green);
  display: block; /* Ensure it behaves as a block element */
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  flex-grow: 1; /* Allow title to take available space */
}

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

/* Popular Games Section */
.page-fishing-games__popular-games {
  background-color: var(--color-card-bg);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-fishing-games__game-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 180px; /* Fixed height for game images */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--color-deep-green);
  display: block;
}

.page-fishing-games__game-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
  flex-grow: 1;
}

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

.page-fishing-games__game-btn {
  width: 100%;
  margin-top: auto;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background-color: var(--color-deep-green); /* Use deep green for this section */
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-fishing-games__step-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__step-text {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__tutorial-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain; /* Use contain for tutorial images */
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid var(--color-deep-green);
  display: block;
}

.page-fishing-games__step-btn {
  margin-top: auto;
  width: 100%;
}

/* Promotions Section */
.page-fishing-games__promotions {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-background);
}

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

.page-fishing-games__promo-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--color-deep-green);
  display: block;
}

.page-fishing-games__promo-title {
  font-size: 1.5em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  flex-grow: 1;
}

.page-fishing-games__promo-text {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.page-fishing-games__promo-btn {
  width: 100%;
  margin-top: auto;
}

.page-fishing-games__promo-footer-text {
  margin-top: 40px;
  font-size: 1.1em;
}

.page-fishing-games__promo-footer-text a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__promo-footer-text a:hover {
  text-decoration: underline;
}

/* Safety & Security Section */
.page-fishing-games__safety-security {
  background-color: var(--color-card-bg);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--color-divider);
}

.page-fishing-games__security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  list-style: none;
  padding: 0;
}

.page-fishing-games__security-item {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 8px var(--color-glow)); /* Add a subtle glow for icons */
  display: block;
}

.page-fishing-games__security-heading {
  font-size: 1.4em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  flex-grow: 1;
}

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

/* Mobile Experience Section */
.page-fishing-games__mobile-experience {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-background);
}

.page-fishing-games__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-fishing-games__mobile-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-fishing-games__mobile-heading {
  font-size: 2em;
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fishing-games__mobile-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.page-fishing-games__mobile-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-fishing-games__mobile-btn {
  min-width: 180px;
}

.page-fishing-games__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 3px solid var(--color-gold);
}

.page-fishing-games__mobile-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: var(--color-card-bg);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--color-divider);
}

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: var(--color-text-main);
  font-weight: bold;
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details tag */
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-divider); /* Separator */
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
  border-top: none; /* Remove border when open */
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-background);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__section-title {
    font-size: 2.2em;
  }
  .page-fishing-games__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-fishing-games__hero-content {
    margin-top: -80px;
    transform: translateY(-40px);
  }
}

@media (max-width: 768px) {
  /* 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__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__hero-content,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__security-item,
  .page-fishing-games__mobile-text,
  .page-fishing-games__mobile-image-wrapper,
  .page-fishing-games__faq-item,
  .page-fishing-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

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

  .page-fishing-games__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    padding: 0 5px;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
  }
  
  .page-fishing-games__hero-content {
    margin-top: -60px; /* Adjust for smaller screens */
    transform: translateY(-30px);
    padding: 30px 15px;
  }

  .page-fishing-games__hero-cta,
  .page-fishing-games__mobile-cta,
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fishing-games__section-text {
    font-size: 1em;
  }

  .page-fishing-games__grid,
  .page-fishing-games__game-list,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promo-grid,
  .page-fishing-games__security-list {
    grid-template-columns: 1fr; /* Single column layout on mobile */
  }

  .page-fishing-games__card-image,
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image,
  .page-fishing-games__tutorial-image,
  .page-fishing-games__security-icon,
  .page-fishing-games__mobile-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* Ensure images fill space but maintain aspect ratio */
  }

  .page-fishing-games__mobile-content {
    flex-direction: column;
  }
  .page-fishing-games__mobile-text {
    text-align: center;
  }
  .page-fishing-games__mobile-cta {
    justify-content: center;
  }
  .page-fishing-games__mobile-image-wrapper {
    margin-top: 30px;
  }

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

@media (max-width: 480px) {
  .page-fishing-games__hero-content {
    padding: 20px 10px;
    margin-top: -40px;
    transform: translateY(-20px);
  }
  .page-fishing-games__hero-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-fishing-games__section-title {
    font-size: 1.5em;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}