/* style/fishing-games.css */

:root {
  --page-fishing-games-primary-color: #017439;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-register-btn-bg: #C30808;
  --page-fishing-games-login-btn-bg: #C30808;
  --page-fishing-games-register-login-font-color: #FFFFFF; /* Changed from #FFFF00 to ensure WCAG AA contrast on #C30808 background */
  --page-fishing-games-dark-text: #ffffff; /* For text on dark body background #1a1a2e */
  --page-fishing-games-light-text: #333333; /* For text on light backgrounds like #FFFFFF */
}

.page-fishing-games {
  color: var(--page-fishing-games-dark-text); /* Default text color for the page content, matching dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  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: 80px 0;
}

.page-fishing-games__dark-bg {
  background-color: #1a1a2e; /* Inherit from body or a dark tone */
  color: var(--page-fishing-games-dark-text);
}

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

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

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

.page-fishing-games__subsection-title {
  font-size: 2em;
  color: var(--page-fishing-games-primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-fishing-games__dark-bg .page-fishing-games__subsection-title {
  color: var(--page-fishing-games-secondary-color);
}

.page-fishing-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games__highlight {
  color: var(--page-fishing-games-primary-color);
  font-weight: bold;
}

.page-fishing-games__dark-bg .page-fishing-games__highlight {
  color: var(--page-fishing-games-secondary-color);
}

.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

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

.page-fishing-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-fishing-games__hero-title {
  font-size: 4.5em;
  color: var(--page-fishing-games-secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
  font-size: 1.5em;
  color: var(--page-fishing-games-secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-register,
.page-fishing-games__btn-login,
.page-fishing-games__btn-primary {
  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, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-fishing-games__btn-register {
  background-color: var(--page-fishing-games-register-btn-bg);
  color: var(--page-fishing-games-register-login-font-color); /* WCAG AA compliant */
}

.page-fishing-games__btn-register:hover {
  background-color: darken(var(--page-fishing-games-register-btn-bg), 10%);
  transform: translateY(-2px);
}

.page-fishing-games__btn-login {
  background-color: var(--page-fishing-games-login-btn-bg);
  color: var(--page-fishing-games-register-login-font-color); /* WCAG AA compliant */
}

.page-fishing-games__btn-login:hover {
  background-color: darken(var(--page-fishing-games-login-btn-bg), 10%);
  transform: translateY(-2px);
}

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

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

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

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  color: var(--page-fishing-games-dark-text);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-fishing-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%; /* Ensure card image fills width */
  min-height: 200px; /* Minimum size */
  object-fit: cover;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--page-fishing-games-secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__card-description {
  font-size: 1em;
  line-height: 1.5;
}

.page-fishing-games__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-fishing-games__step-item {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-light-text);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum size */
  object-fit: cover;
}

.page-fishing-games__step-title {
  font-size: 1.6em;
  color: var(--page-fishing-games-primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__step-description {
  font-size: 1em;
  line-height: 1.5;
}

.page-fishing-games__list {
  list-style: disc;
  margin: 30px auto;
  max-width: 800px;
  padding-left: 25px;
  font-size: 1.1em;
}

.page-fishing-games__list-item {
  margin-bottom: 10px;
}

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

.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 50px auto;
}

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-fishing-games-secondary-color);
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker for question */
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-fishing-games__faq-answer p {
  margin-bottom: 10px;
}

.page-fishing-games__conclusion .page-fishing-games__section-title {
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__conclusion .page-fishing-games__paragraph {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Image optimization for content area */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    height: auto;
    min-height: 600px;
  }

  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-fishing-games__btn-register,
  .page-fishing-games__btn-login,
  .page-fishing-games__btn-primary,
  .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__app-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-fishing-games__subsection-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-fishing-games__paragraph,
  .page-fishing-games__list-item,
  .page-fishing-games__card-description,
  .page-fishing-games__step-description {
    font-size: 1em;
  }

  .page-fishing-games__card-grid,
  .page-fishing-games__steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  /* Mobile image and video responsiveness */
  .page-fishing-games img,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure content containers don't overflow */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__app-buttons,
  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__faq-item,
  .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;
  }
  
  /* Adjust padding-top for hero/video section on mobile */
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}