/* style/fishing-games.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --dark-bg-color: #0d0d0d;
  --login-button-color: #EA7C07;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-fishing-games {
  background-color: var(--dark-bg-color); /* Inherited from body or explicit for sections */
  color: var(--text-on-dark-bg); /* Light text on dark background */
  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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  min-height: 600px;
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-on-dark-bg);
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 8px;
}

.page-fishing-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--secondary-color);
}

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

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

.page-fishing-games__cta-buttons--center {
  margin-top: 30px;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-fishing-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.page-fishing-games__intro-section,
.page-fishing-games__features-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__video-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__final-cta-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
}

.page-fishing-games__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-on-dark-bg);
  text-align: justify;
}

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

.page-fishing-games__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-on-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-fishing-games__feature-image,
.page-fishing-games__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size for card images */
}

.page-fishing-games__feature-title,
.page-fishing-games__promotion-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-fishing-games__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  color: var(--text-on-dark-bg);
}

.page-fishing-games__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 10px;
}

.page-fishing-games__video-wrapper video,
.page-fishing-games__video-wrapper .page-fishing-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-fishing-games__video-link {
  display: block;
  cursor: pointer;
}

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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-on-dark-bg);
}

.page-fishing-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
}

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

.page-fishing-games__faq-qtext {
  flex-grow: 1;
}

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

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

.page-fishing-games__faq-answer {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1em;
}

.page-fishing-games__faq-answer p {
  margin: 0;
  color: var(--text-on-dark-bg);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    max-width: 600px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

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

  .page-fishing-games__hero-section {
    padding: 40px 15px;
    min-height: 500px;
  }

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

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

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

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

  .page-fishing-games__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__video-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__final-cta-section {
    padding: 40px 0;
  }

  .page-fishing-games__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block {
    font-size: 0.95em;
  }

  .page-fishing-games__feature-grid,
  .page-fishing-games__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card {
    padding: 20px;
  }

  .page-fishing-games__feature-image,
  .page-fishing-games__promotion-image,
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__video-wrapper {
    margin-top: 20px;
  }

  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-fishing-games__step-item {
    padding-left: 60px;
  }

  .page-fishing-games__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
    top: 15px;
  }

  .page-fishing-games__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-fishing-games__hero-section {
    min-height: 400px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-fishing-games__hero-description {
    font-size: 0.9em;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.2em, 6vw, 1.8em);
  }
  .page-fishing-games__feature-title,
  .page-fishing-games__promotion-title {
    font-size: 1.3em;
  }
}