/* style/fishing-games.css */

/* BEM Naming: page-fishing-games__element-name */
/* Colors: #11A84E, #22C768, #08160F, #11271B, #F2FFF6, #A7D9B8, #2E7A4E, #57E38D, #F2C14E, #1E3A2A, #0A4B2C */

.page-fishing-games {
  background-color: var(--background-color, #08160F); /* Fallback to custom background color */
  color: var(--text-main-color, #F2FFF6); /* Fallback to custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-fishing-games__section:nth-child(even) {
  background-color: var(--card-bg-color, #11271B);
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
  line-height: 1.2;
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure sufficient height */
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  overflow: hidden;
}

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

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-fishing-games__main-title {
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

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

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Card Styles */
.page-fishing-games__card {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color, #F2FFF6);
}

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

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

.page-fishing-games__feature-text {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Popular Games Section */
.page-fishing-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__game-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-fishing-games__game-title {
  font-size: 1.3em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__game-text {
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 0.95em;
}

.page-fishing-games__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* How to Play Section */
.page-fishing-games__content-flex {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-fishing-games__steps-list {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__step-item {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
}

.page-fishing-games__step-item::before {
  content: attr(data-step-number);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--main-color, #11A84E);
  color: #F2FFF6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-fishing-games__step-item:nth-child(1)::before { content: '1'; }
.page-fishing-games__step-item:nth-child(2)::before { content: '2'; }
.page-fishing-games__step-item:nth-child(3)::before { content: '3'; }
.page-fishing-games__step-item:nth-child(4)::before { content: '4'; }

.page-fishing-games__step-title {
  font-size: 1.3em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 8px;
}

.page-fishing-games__step-text {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-fishing-games__image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-fishing-games__tutorial-image,
.page-fishing-games__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
}

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

.page-fishing-games__strategy-item {
  padding: 25px;
}

.page-fishing-games__strategy-title {
  font-size: 1.4em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__strategy-text {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Promotions Section */
.page-fishing-games__promotion-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

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

.page-fishing-games__promo-title {
  font-size: 1.4em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__promo-text {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Security Section */
.page-fishing-games__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-fishing-games__security-info {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__security-item {
  margin-bottom: 25px;
}

.page-fishing-games__security-title {
  font-size: 1.3em;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 8px;
}

.page-fishing-games__security-text {
  color: var(--text-secondary-color, #A7D9B8);
}

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

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

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  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;
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1em;
}

/* Conclusion Section */
.page-fishing-games__conclusion {
  text-align: center;
}

/* Images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__section-title {
    font-size: 2em;
  }

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

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

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

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

  .page-fishing-games__hero-section {
    min-height: 450px;
    padding: 10px 0 40px 0;
  }

  .page-fishing-games__hero-content {
    padding: 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__promo-list,
  .page-fishing-games__strategy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__content-flex,
  .page-fishing-games__content-flex--reverse {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__image-container {
    order: -1; /* Image first on mobile for tutorial */
  }

  .page-fishing-games__content-flex--reverse .page-fishing-games__image-container {
    order: -1; /* Image first on mobile for security */
  }

  .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,
  .page-fishing-games__hero-content,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-wrapper,
  .page-fishing-games__content-flex,
  .page-fishing-games__content-flex--reverse,
  .page-fishing-games__image-container,
  .page-fishing-games__steps-list,
  .page-fishing-games__security-info,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px !important;
  }

  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
  }
}

/* Ensure content area images are never smaller than 200px display size */
.page-fishing-games__game-image,
.page-fishing-games__tutorial-image,
.page-fishing-games__security-image,
.page-fishing-games__promotion-image {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast safety */
.page-fishing-games__card {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__section-title,
.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__step-title,
.page-fishing-games__strategy-title,
.page-fishing-games__promo-title,
.page-fishing-games__security-title {
  color: var(--gold-color, #F2C14E);
}

.page-fishing-games__section-description,
.page-fishing-games__feature-text,
.page-fishing-games__game-text,
.page-fishing-games__step-text,
.page-fishing-games__strategy-text,
.page-fishing-games__promo-text,
.page-fishing-games__security-text,
.page-fishing-games__faq-answer {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-fishing-games__faq-question {
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__btn-primary {
  color: #F2FFF6; /* Ensure light text on dark button */
}

.page-fishing-games__btn-secondary {
  color: var(--main-color, #11A84E); /* Ensure dark text on light/transparent button */
}