/* style/fishing-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-login-text: #FFFF00;
  --background-color: #FFFFFF;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-color);
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Minimal top padding, rely on body for header offset */
  background-color: var(--primary-color);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-fishing-games__hero-content-wrapper {
  width: 100%;
  padding: 40px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-fishing-games__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-fishing-games__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-login-text);
  border: 2px solid var(--button-register-bg);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__features-section .page-fishing-games__section-title {
  color: var(--text-light);
}

.page-fishing-games__features-section .page-fishing-games__section-description {
  color: var(--text-light);
}

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

.page-fishing-games__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

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

/* Game Showcase Section */
.page-fishing-games__game-showcase-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-fishing-games__game-tile {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-fishing-games__game-tile:hover {
  transform: translateY(-5px);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-fishing-games__game-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-fishing-games__btn-play {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 25px;
  font-size: 1em;
}

.page-fishing-games__btn-play:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

/* Guide Section */
.page-fishing-games__guide-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-fishing-games__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-fishing-games__guide-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__guide-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

.page-fishing-games__guide-list li {
  margin-bottom: 25px;
  padding-left: 40px;
  position: relative;
}

.page-fishing-games__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-fishing-games__guide-step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__strategy-section .page-fishing-games__section-title,
.page-fishing-games__strategy-section .page-fishing-games__section-description {
  color: var(--text-light);
}

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

.page-fishing-games__strategy-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-fishing-games__strategy-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-fishing-games__strategy-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__strategy-text {
  font-size: 0.95em;
  color: var(--text-light);
  padding: 0 15px;
}

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

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

.page-fishing-games__promo-card {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-fishing-games__promo-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__promo-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-fishing-games__btn-promo {
  background-color: var(--button-register-bg);
  color: var(--button-login-text);
  border: 2px solid var(--button-register-bg);
  padding: 10px 25px;
  font-size: 1em;
}

.page-fishing-games__btn-promo:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-fishing-games__cta-section .page-fishing-games__section-title,
.page-fishing-games__cta-section .page-fishing-games__section-description {
  color: var(--text-light);
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-fishing-games__faq-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  background-color: #f9f9f9;
}

.page-fishing-games__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

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

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

  .page-fishing-games__hero-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }

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

  .page-fishing-games__features-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-fishing-games__guide-content {
    flex-direction: column;
  }

  .page-fishing-games__guide-image {
    max-width: 100%;
  }

  .page-fishing-games__hero-buttons,
  .page-fishing-games__cta-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-fishing-games__hero-image {
    object-fit: contain !important; /* Mobile hero image contain, not cover */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-fishing-games__hero-title {
    font-size: 2em !important;
  }

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

  .page-fishing-games__hero-buttons,
  .page-fishing-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-play,
  .page-fishing-games__btn-promo,
  .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 !important;
  }

  .page-fishing-games__section-description {
    font-size: 0.95em !important;
  }

  /* Game Grid - Mobile */
  .page-fishing-games__game-grid {
    grid-template-columns: 1fr 1fr !important; /* 2 columns for mobile */
    gap: 15px !important;
    overflow-x: hidden !important;
  }

  .page-fishing-games__game-image {
    height: auto !important;
    aspect-ratio: 1/1 !important; /* Ensure square aspect ratio */
    object-fit: cover !important;
  }

  /* General Images and Containers - Mobile */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__features-section,
  .page-fishing-games__game-showcase-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__faq-section {
    padding: 40px 0 !important;
  }

  .page-fishing-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-fishing-games__guide-content {
    flex-direction: column;
  }

  .page-fishing-games__guide-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-fishing-games__guide-list {
    padding: 0;
  }

  .page-fishing-games__guide-list li {
    padding-left: 35px;
    margin-bottom: 20px;
  }

  .page-fishing-games__guide-list li::before {
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .page-fishing-games__strategy-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-fishing-games__faq-question {
    font-size: 1em !important;
    padding: 15px !important;
  }

  .page-fishing-games__faq-answer {
    padding: 0 15px 15px 15px !important;
    font-size: 0.95em !important;
  }

  /* No winner list module on this page, but if there were, it would need specific mobile rules for 1 column. */
}

/* Dark background color contrast fix */
.page-fishing-games__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__section-description,
.page-fishing-games__dark-section .page-fishing-games__feature-title,
.page-fishing-games__dark-section .page-fishing-games__feature-text,
.page-fishing-games__dark-section .page-fishing-games__strategy-title,
.page-fishing-games__dark-section .page-fishing-games__strategy-text {
  color: var(--text-light);
}

.page-fishing-games__light-bg {
  background-color: var(--background-color);
  color: var(--text-dark);
}

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__section-description {
  color: var(--primary-color);
}