/* style/fishing-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #ffffff;
  --border-color: #e0e0e0;
}

.page-fishing-games {
  color: var(--text-on-dark); /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Rely on body background from shared.css */
}

.page-fishing-games__section-title,
.page-fishing-games__hero-title,
.page-fishing-games__feature-title,
.page-fishing-games__step-title,
.page-fishing-games__game-card-title,
.page-fishing-games__tip-title {
  color: var(--text-on-dark);
}

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__feature-title,
.page-fishing-games__light-bg .page-fishing-games__step-title,
.page-fishing-games__light-bg .page-fishing-games__game-card-title,
.page-fishing-games__light-bg .page-fishing-games__tip-title {
  color: var(--text-on-light);
}

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

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  min-height: 500px;
  text-align: center;
  overflow: hidden;
}

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

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 50px; /* Space from top */
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 10px;
}

.page-fishing-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-on-dark);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.page-fishing-games__hero-description {
  font-size: 1.2rem;
  color: var(--text-on-dark);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  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: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-fishing-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: var(--card-bg-light-mode);
  color: var(--text-on-light);
}

.page-fishing-games__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

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

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

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

.page-fishing-games__video-caption {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-on-light);
}

.page-fishing-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-fishing-games__intro-grid,
.page-fishing-games__security-grid,
.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__intro-image-wrapper,
.page-fishing-games__security-image-wrapper,
.page-fishing-games__tips-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__intro-image,
.page-fishing-games__security-image,
.page-fishing-games__tips-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

.page-fishing-games__feature-card {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-on-dark);
}

.page-fishing-games__light-bg.page-fishing-games__feature-card {
  background-color: var(--card-bg-light-mode);
  color: var(--text-on-light);
  border: 1px solid var(--border-color);
}

.page-fishing-games__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-fishing-games__image-below-features {
  text-align: center;
  margin-top: 40px;
}

.page-fishing-games__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__how-to-play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-fishing-games__how-to-play-steps ol {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.page-fishing-games__how-to-play-steps li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
}

.page-fishing-games__how-to-play-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-fishing-games__how-to-play-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__popular-games .page-fishing-games__section-description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-on-dark);
}

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

.page-fishing-games__game-card {
  background-color: var(--card-bg-dark-mode);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-on-dark);
}

.page-fishing-games__light-bg.page-fishing-games__game-card {
  background-color: var(--card-bg-light-mode);
  color: var(--text-on-light);
  border: 1px solid var(--border-color);
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__game-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-fishing-games__game-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-fishing-games__game-card-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__button-group {
  text-align: center;
}

.page-fishing-games__tips-content ul {
  list-style: none;
  padding-left: 0;
}

.page-fishing-games__tips-content li {
  margin-bottom: 20px;
}

.page-fishing-games__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__security-text p {
  margin-bottom: 15px;
}

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

.page-fishing-games__faq-item {
  background-color: var(--card-bg-dark-mode);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: var(--text-on-dark);
}

.page-fishing-games__light-bg.page-fishing-games__faq-item {
  background-color: var(--card-bg-light-mode);
  color: var(--text-on-light);
  border: 1px solid var(--border-color);
}

.page-fishing-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  list-style: none; /* Hide default marker */
}

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

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

.page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.page-fishing-games__light-bg .page-fishing-games__faq-answer {
  color: var(--text-on-light);
}

.page-fishing-games__cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  color: var(--secondary-color);
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
  color: var(--secondary-color);
}

.page-fishing-games__cta-section .page-fishing-games__section-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login button color override */
.page-fishing-games__btn-login {
  background-color: var(--login-color);
  border-color: var(--login-color);
  color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-fishing-games__intro-grid,
  .page-fishing-games__how-to-play-grid,
  .page-fishing-games__security-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__how-to-play-steps {
    order: 2; /* Move steps below image on smaller screens */
  }
  .page-fishing-games__how-to-play-image-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-fishing-games__hero-description,
  .page-fishing-games__cta-section .page-fishing-games__section-description {
    font-size: 1rem;
  }

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

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  /* Images responsive */
  .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-image-wrapper,
  .page-fishing-games__intro-image-wrapper,
  .page-fishing-games__security-image-wrapper,
  .page-fishing-games__how-to-play-image-wrapper,
  .page-fishing-games__tips-image-wrapper,
  .page-fishing-games__image-below-features {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive */
  .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,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

/* Utility classes for color contrast (if needed for override) */
.page-fishing-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}