/* style/fishing-games.css */

/* Base styles for the page */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark background */
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* Fixed header spacing for the first content module */
.page-fishing-games__hero-banner {
  padding-top: 120px; /* Desktop spacing for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A202C 0%, #0d0d0d 100%); /* Dark background gradient */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__hero-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-fishing-games__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

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

.page-fishing-games__section {
  padding: 80px 20px;
  margin-bottom: 0;
}

.page-fishing-games__section--about {
  background-color: #1A202C;
}

.page-fishing-games__section--how-to-play {
  background-color: #0d0d0d;
}

.page-fishing-games__section--game-types {
  background-color: #1A202C;
}

.page-fishing-games__section--promotions {
  background-color: #0d0d0d;
}

.page-fishing-games__section--faq {
  background-color: #1A202C;
}

.page-fishing-games__section--cta {
  background: linear-gradient(90deg, #FFD700, #ffc107);
  padding: 60px 20px;
  text-align: center;
  color: #1A202C; /* Dark text for light background */
}

.page-fishing-games__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-fishing-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-fishing-games__section--cta .page-fishing-games__section-title {
  color: #1A202C;
  text-shadow: none;
}

.page-fishing-games__section--cta .page-fishing-games__section-title::after {
  background-color: #1A202C;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  color: #e0e0e0;
}

.page-fishing-games__text-block a {
  color: #FFD700;
  text-decoration: underline;
}

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

/* Buttons */
.page-fishing-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-fishing-games__btn--primary {
  background-color: #FFD700;
  color: #1A202C; /* Dark text for gold background */
  border-color: #FFD700;
}

.page-fishing-games__btn--primary:hover {
  background-color: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.page-fishing-games__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-fishing-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.page-fishing-games__btn--center {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

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

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

.page-fishing-games__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.page-fishing-games__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-fishing-games__feature-description {
  color: #c0c0c0;
  font-size: 0.95em;
}

.page-fishing-games__feature-description a {
  color: #FFD700;
  text-decoration: underline;
}

/* How to Play Steps */
.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0;
  max-width: 900px;
}

.page-fishing-games__steps-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  margin-bottom: 25px;
  padding: 25px 30px;
  border-radius: 8px;
  position: relative;
  color: #e0e0e0;
}

.page-fishing-games__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #1A202C;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-fishing-games__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  margin-left: 30px; /* Adjust for counter */
}

.page-fishing-games__steps-list li p {
  margin: 0;
  margin-left: 30px; /* Adjust for counter */
}

.page-fishing-games__steps-list li a {
  color: #FFD700;
  text-decoration: underline;
}

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__game-title {
  font-size: 1.4em;
  color: #FFD700;
  padding: 20px 20px 10px;
}

.page-fishing-games__game-description {
  color: #c0c0c0;
  padding: 0 20px 20px;
  font-size: 0.95em;
}

.page-fishing-games__game-description a {
  color: #FFD700;
  text-decoration: underline;
}

/* Promotions List */
.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0;
  max-width: 900px;
}

.page-fishing-games__promo-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  margin-bottom: 25px;
  padding: 25px 30px;
  border-radius: 8px;
  color: #e0e0e0;
}

.page-fishing-games__promo-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__promo-list li p {
  margin: 0;
}

.page-fishing-games__promo-list li a {
  color: #FFD700;
  text-decoration: underline;
}

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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #d0d0d0;
}

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

.page-fishing-games__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-fishing-games__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold color for question titles */
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Image responsive styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-fishing-games__hero-banner {
    padding-top: 100px; /* Mobile spacing for fixed header */
    padding-bottom: 40px;
  }

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

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

  .page-fishing-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn {
    width: 100%;
    max-width: 300px;
  }

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

  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__step-title {
    font-size: 1.3em;
  }

  .page-fishing-games__steps-list li {
    padding: 20px 25px;
  }

  .page-fishing-games__steps-list li::before {
    left: -15px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-fishing-games__step-title,
  .page-fishing-games__steps-list li p {
    margin-left: 20px;
  }

  /* Mobile image forced responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-list li,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
}