/* style/fishing-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color: #EA7C07; /* Màu cho nút đăng nhập */
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --bg-light: #FFFFFF;
  --bg-dark: #26A9E0;
  --border-color: #e0e0e0;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--bg-light);
}

/* Ensure body padding-top is handled by shared.css */
/* .page-fishing-games should not have padding-top: var(--header-offset); */

.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 */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3ebee7 100%);
  color: var(--text-color-light);
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-fishing-games__hero-section p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--text-color-light);
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color); /* Login color */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
  background: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-fishing-games__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width on smaller screens */
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-fishing-games__text-block {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
}

.page-fishing-games__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__image--small {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  border: 1px solid var(--border-color);
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-fishing-games__card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-fishing-games__card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-fishing-games__card ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-fishing-games__card ul li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-fishing-games__step-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-fishing-games__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-block;
  background: rgba(38, 169, 224, 0.1);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
}

.page-fishing-games__step-card .page-fishing-games__card-title {
  color: var(--text-color-dark);
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  background: #1e87b7;
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-light);
  color: var(--text-color-dark);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color-dark);
}
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;
  line-height: 1.5;
  text-align: left;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color-dark);
}

/* Bottom CTA Section */
.page-fishing-games__cta-bottom-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #1a8cc4 0%, var(--primary-color) 100%);
  color: var(--text-color-light);
}

.page-fishing-games__cta-bottom-section .page-fishing-games__section-title,
.page-fishing-games__cta-bottom-section .page-fishing-games__text-block {
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    padding: 50px 15px;
    padding-top: 10px;
  }
  .page-fishing-games__hero-section h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-fishing-games__hero-section p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-fishing-games__section {
    padding: 60px 15px;
  }
  .page-fishing-games__grid, .page-fishing-games__steps-grid {
    gap: 20px;
  }
  .page-fishing-games__card, .page-fishing-games__step-card {
    padding: 25px;
  }
  .page-fishing-games__card-title {
    font-size: 1.3rem;
  }
  .page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 1rem;
  }
  .page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  /* All images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images/buttons */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-container,
  .page-fishing-games__hero-image,
  .page-fishing-games__hero-content,
  .page-fishing-games__cta-bottom-section .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fishing-games__hero-image img {
    border-radius: 8px;
  }
  
  .page-fishing-games__hero-section h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-fishing-games__hero-section p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }
  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Force full width on mobile */
  }

  .page-fishing-games__section {
    padding: 40px 15px;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-fishing-games__text-block {
    font-size: 1rem;
  }

  .page-fishing-games__grid, .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card, .page-fishing-games__step-card {
    padding: 20px;
  }
  .page-fishing-games__card-title {
    font-size: 1.2rem;
  }
  .page-fishing-games__card ul li {
    font-size: 0.95rem;
  }
  .page-fishing-games__step-number {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
  }

  .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__promo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  .page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }
}