/* CSS cho trang Bắn Cá (fishing-games.html) - Không bao gồm các layout homepage */

/* Base styles for text color (assuming light body background from shared.css) */
.page-fishing-games {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #F5F7FA;
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #333333;
}

.page-fishing-games__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 40px;
  background: var(--background-color, #F5F7FA);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Adjust based on hero image size */
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 15px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as suggested */
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 20px;
}

/* Game Trial Section */
.page-fishing-games__game-trial-section {
  padding: 40px 0;
  background: var(--background-color, #F5F7FA);
}

.page-fishing-games__game-trial-shell {
  position: relative;
  background: #000; /* Dark background for game viewport */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 900px; /* Max width for inner page game trial */
  margin: 0 auto;
}

.page-fishing-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* 4:3 aspect ratio as per prompt for homepage, applied here for game */
  overflow: hidden;
}

.page-fishing-games__game-trial-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.page-fishing-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5; /* From prompt */
  transition: opacity 0.3s ease;
}
.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important; /* From prompt */
  pointer-events: none !important; /* From prompt */
}

.page-fishing-games__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 6; /* From prompt */
  pointer-events: auto !important; /* From prompt */
  touch-action: manipulation; /* From prompt */
}
.page-fishing-games__game-trial-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 90, 79, 0.6);
}

/* Reward Modal */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}
.page-fishing-games__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}
body.page-fishing-games--reward-open {
  overflow: hidden;
}

.page-fishing-games__reward-modal-content {
  background: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
.page-fishing-games__reward-modal-close:hover {
  color: #E53935; /* Primary color */
}

.page-fishing-games__reward-modal h3 {
  color: #E53935; /* Primary color */
  margin-top: 0;
  font-size: 24px;
}
.page-fishing-games__reward-modal p {
  font-size: 16px;
  margin-bottom: 20px;
}
.page-fishing-games__reward-modal .page-fishing-games__btn-primary {
  display: inline-block;
  margin-top: 10px;
}

/* Content Sections */
.page-fishing-games__content-section {
  padding: 50px 0;
}

.page-fishing-games__dark-bg {
  background: #E53935; /* Primary color */
  color: #ffffff;
}
.page-fishing-games__text-white {
  color: #ffffff;
}

.page-fishing-games__text-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
}

.page-fishing-games__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935; /* Primary color */
}
.page-fishing-games__dark-bg .page-fishing-games__sub-title {
  color: #ffffff;
}

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

.page-fishing-games__feature-item {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}
.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-fishing-games__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #E53935; /* Primary color */
  margin-bottom: 10px;
}

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

.page-fishing-games__step-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
  text-align: center;
}
.page-fishing-games__step-item .page-fishing-games__btn-primary,
.page-fishing-games__step-item .page-fishing-games__btn-secondary {
  margin-top: 20px;
}

.page-fishing-games__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 15px;
}
.page-fishing-games__tips-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}
.page-fishing-games__tips-list li::before {
  content: "•";
  color: #FF5A4F; /* Secondary color */
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

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

.page-fishing-games__promo-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
}

.page-fishing-games__promo-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-fishing-games__promo-title {
  font-size: 20px;
  font-weight: bold;
  color: #E53935; /* Primary color */
  margin-bottom: 10px;
}

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

.page-fishing-games__security-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap; /* Default for desktop */
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}
.page-fishing-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-fishing-games__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #E53935; /* Primary color */
  border: 2px solid #E53935; /* Primary color */
}
.page-fishing-games__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

.page-fishing-games__btn-tertiary {
  background: #f0f0f0;
  color: #333333; /* Text Main */
  border: 1px solid #E0E0E0; /* Border color */
  font-size: 14px;
  padding: 8px 15px;
}
.page-fishing-games__btn-tertiary:hover {
  background: #e0e0e0;
}

/* FAQ Section styles from prompt */
.page-fishing-games__faq-section {
  padding: 50px 0;
}
.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-fishing-games__conclusion-section {
  padding: 50px 0;
  text-align: center;
  background: var(--background-color, #F5F7FA);
}

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

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-bottom: 20px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-fishing-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Universal image responsive styles */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* Universal container responsive styles */
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__feature-item,
  .page-fishing-games__promo-card,
  .page-fishing-games__security-item,
  .page-fishing-games__game-trial-shell,
  .page-fishing-games__reward-modal-content,
  .page-fishing-games__container,
  .page-fishing-games__content-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive styles */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary,
  .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;
    margin-left: 0 !important; /* Reset margin for full width */
    margin-right: 0 !important; /* Reset margin for full width */
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Grid layouts to single column */
  .page-fishing-games__features-grid,
  .page-fishing-games__guide-steps,
  .page-fishing-games__promo-cards,
  .page-fishing-games__security-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-fishing-games__step-item {
    text-align: left; /* Align text left for steps on mobile */
  }

  /* FAQ specific mobile styles */
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question { padding: 15px; }
  .page-fishing-games__faq-qtext { font-size: 15px; }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }
}