/* style/fishing-games.css */

/* Variables */
:root {
  --page-fishing-games-primary-color: #26A9E0;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-login-color: #EA7C07;
  --page-fishing-games-dark-bg-color: #000000;
  --page-fishing-games-light-text-color: #ffffff;
  --page-fishing-games-dark-text-color: #333333;
  --page-fishing-games-border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-fishing-games-light-text-color); /* Body background is dark #000000, so text is light */
  background-color: var(--page-fishing-games-dark-bg-color); /* Inherited from body, but good to define context */
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-fishing-games-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

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

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-fishing-games-light-text-color);
}

.page-fishing-games__light-bg .page-fishing-games__text-block,
.page-fishing-games__light-bg .page-fishing-games__text-block a {
  color: var(--page-fishing-games-dark-text-color);
}

.page-fishing-games__text-block a {
  color: var(--page-fishing-games-primary-color);
  text-decoration: underline;
}

.page-fishing-games__text-center {
  text-align: center;
}

.page-fishing-games__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles top offset */
  overflow: hidden;
  background-color: var(--page-fishing-games-dark-bg-color);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum height */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
  color: var(--page-fishing-games-light-text-color);
}

.page-fishing-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--page-fishing-games-secondary-color);
}

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

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-secondary-color);
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-dark-text-color);
  padding: 60px 0;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  background-color: var(--page-fishing-games-dark-bg-color);
  padding: 60px 0;
  color: var(--page-fishing-games-light-text-color);
}

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

.page-fishing-games__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--page-fishing-games-light-text-color);
}

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

.page-fishing-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-fishing-games-primary-color);
  padding: 0 15px;
}

.page-fishing-games__game-card .page-fishing-games__card-description {
  font-size: 1em;
  color: var(--page-fishing-games-light-text-color);
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Advantages Section */
.page-fishing-games__advantages-section {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-dark-text-color);
  padding: 60px 0;
}

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

.page-fishing-games__advantage-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__advantage-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-fishing-games-primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__advantage-description {
  font-size: 1em;
  color: var(--page-fishing-games-dark-text-color);
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  background-color: var(--page-fishing-games-dark-bg-color);
  padding: 60px 0;
  color: var(--page-fishing-games-light-text-color);
}

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

.page-fishing-games__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-fishing-games-primary-color);
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-dark-text-color);
  padding: 60px 0;
}

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

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

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

.page-fishing-games__promo-card .page-fishing-games__card-description {
  font-size: 1em;
  color: var(--page-fishing-games-dark-text-color);
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: var(--page-fishing-games-dark-bg-color);
  padding: 60px 0;
  color: var(--page-fishing-games-light-text-color);
}

.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--page-fishing-games-primary-color);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-fishing-games__faq-answer {
  padding: 0 20px;
  font-size: 1em;
  color: var(--page-fishing-games-light-text-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

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

/* For <details> tag */
.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-bottom: 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  content: '−';
}

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

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

/* Final CTA Section */
.page-fishing-games__final-cta-section {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-dark-text-color);
  padding: 60px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-image {
    height: 500px;
  }

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

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-bottom: 40px;
  }

  .page-fishing-games__hero-image {
    height: 400px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }

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

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

  .page-fishing-games__text-block,
  .page-fishing-games__advantage-description,
  .page-fishing-games__step-description,
  .page-fishing-games__card-description,
  .page-fishing-games__faq-answer p {
    font-size: 1em;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General mobile padding for content sections */
  .page-fishing-games__introduction-section .page-fishing-games__container,
  .page-fishing-games__popular-games-section .page-fishing-games__container,
  .page-fishing-games__advantages-section .page-fishing-games__container,
  .page-fishing-games__how-to-play-section .page-fishing-games__container,
  .page-fishing-games__promotions-section .page-fishing-games__container,
  .page-fishing-games__faq-section .page-fishing-games__container,
  .page-fishing-games__final-cta-section .page-fishing-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .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__promo-card,
  .page-fishing-games__advantage-item,
  .page-fishing-games__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-fishing-games__hero-image {
    height: 300px;
  }

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

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