/* style/fishing-games.css */

/* Base styles for the page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Fallback to Text Main */
  background-color: var(--background-color); /* Fallback to Background */
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green-color); /* Fallback to Deep Green */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-fishing-games__hero-content {
  width: 100%;
  max-width: 900px;
  z-index: 1;
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-main-color); /* Text Main */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-fishing-games__subtitle {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color); /* Text Secondary */
}

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

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

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: var(--text-main-color); /* Text Main */
  border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: var(--card-bg-color); /* Card BG */
  color: var(--text-main-color); /* Text Main */
  border: 2px solid var(--border-color); /* Border */
}

.page-fishing-games__btn-secondary:hover {
  background: var(--border-color); /* Border */
  color: var(--text-main-color); /* Text Main */
  transform: translateY(-2px);
}

/* General Section Styling */
.page-fishing-games__section {
  padding: 60px 20px;
  background-color: var(--background-color); /* Background */
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__dark-section {
  background-color: var(--card-bg-color); /* Card BG */
  color: var(--text-main-color); /* Text Main */
}

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

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* Featured Games */
.page-fishing-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background-color: var(--deep-green-color); /* Deep Green */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color); /* Text Main */
}

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

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

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

.page-fishing-games__card-button {
  width: auto;
  padding: 12px 25px;
}

/* How to Play */
.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__step-item {
  background-color: var(--card-bg-color); /* Card BG */
  border: 1px solid var(--border-color); /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__step-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--glow-color); /* Glow */
}

.page-fishing-games__step-description {
  font-size: 1rem;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* Tips Section */
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-fishing-games__tip-item {
  background-color: var(--deep-green-color); /* Deep Green */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__tip-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color); /* Gold */
}

.page-fishing-games__tip-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* Why Choose Section */
.page-fishing-games__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-fishing-games__advantage-item {
  background-color: var(--card-bg-color); /* Card BG */
  border: 1px solid var(--border-color); /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__advantage-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--glow-color); /* Glow */
}

.page-fishing-games__advantage-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* Download App Section */
.page-fishing-games__download-app {
  text-align: center;
}

.page-fishing-games__download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-fishing-games__download-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 30px;
}

.page-fishing-games__faq-item {
  background-color: var(--deep-green-color); /* Deep Green */
  border: 1px solid var(--border-color); /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color); /* Text Main */
}

.page-fishing-games__faq-item summary {
  list-style: none;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--glow-color); /* Glow */
  background-color: var(--deep-green-color); /* Deep Green */
  border-bottom: 1px solid var(--divider-color); /* Divider */
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: var(--divider-color); /* Divider */
}

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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: 1rem;
  color: var(--text-secondary-color); /* Text Secondary */
  background-color: var(--card-bg-color); /* Card BG */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-fishing-games__hero-section {
    padding: 40px 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2rem, 5vw + 1rem, 3rem);
  }

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

  .page-fishing-games__section {
    padding: 40px 15px;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.6rem, 4vw + 1rem, 2.5rem);
    margin-bottom: 30px;
  }

  .page-fishing-games__game-list,
  .page-fishing-games__tips-list,
  .page-fishing-games__advantages-list {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Images responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__game-card,
  .page-fishing-games__download-app,
  .page-fishing-games__container,
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__download-options {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-fishing-games__cta-button,
  .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__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: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-fishing-games__game-card {
    padding: 15px;
  }

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

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

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

/* Custom Colors */
: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;
}

/* Ensuring contrast for all text elements */
.page-fishing-games h1,
.page-fishing-games h2,
.page-fishing-games h3,
.page-fishing-games h4,
.page-fishing-games h5,
.page-fishing-games h6 {
  color: var(--text-main-color);
}

.page-fishing-games p,
.page-fishing-games li,
.page-fishing-games__faq-answer p {
  color: var(--text-secondary-color);
}

.page-fishing-games__hero-content .page-fishing-games__main-title,
.page-fishing-games__hero-content .page-fishing-games__subtitle {
  color: var(--text-main-color); /* Ensure main text is bright on dark hero */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  color: var(--text-main-color); /* Buttons text always bright */
}

.page-fishing-games__card-title {
  color: var(--gold-color); /* Specific gold for card titles */
}

.page-fishing-games__tip-title,
.page-fishing-games__advantage-title {
  color: var(--glow-color); /* Specific glow for section titles */
}

.page-fishing-games__faq-question {
  color: var(--glow-color); /* FAQ questions use glow color */
}

.page-fishing-games__faq-answer {
  color: var(--text-secondary-color);
}