/* style/cockfighting.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --page-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Ensure text is visible on dark body background */
  background-color: var(--page-bg);
}

.page-cockfighting__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(180deg, rgba(10, 10, 10, 0.8) 0%, var(--page-bg) 100%);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop too */
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-main);
}

.page-cockfighting__main-title {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensure contrast on button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting__cta-button:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow-color);
}

.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-main);
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__content-grid > div {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--text-main);
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--glow-color);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--glow-color);
}

.page-cockfighting__features-section {
  background-color: var(--card-bg);
  padding: 100px 20px;
}

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

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255, 211, 107, 0.2);
}

.page-cockfighting__feature-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
  color: var(--text-main);
  font-size: 16px;
}

.page-cockfighting__feature-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__how-to-play {
  padding: 100px 20px;
}

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

.page-cockfighting__step-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 60px;
}

.page-cockfighting__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 3px solid var(--page-bg);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-cockfighting__step-title {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-cockfighting__step-card p {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 20px;
}

.page-cockfighting__responsible-gambling {
  background-color: var(--card-bg);
  padding: 100px 20px;
}

.page-cockfighting__responsible-gambling p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: var(--text-main);
}

.page-cockfighting__promotions {
  padding: 100px 20px;
}

.page-cockfighting__promotions p {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-main);
}

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

.page-cockfighting__promo-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.15);
}

.page-cockfighting__promo-card h3 {
  color: var(--secondary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-cockfighting__promo-card p {
  color: var(--text-main);
  font-size: 16px;
}

.page-cockfighting__faq-section {
  background-color: var(--card-bg);
  padding: 100px 20px;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

details.page-cockfighting__faq-item summary.page-cockfighting__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;
  color: var(--primary-color);
  font-weight: 600;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(255, 211, 107, 0.1);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
  font-size: 16px;
}

.page-cockfighting__cta-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--page-bg) 0%, rgba(242, 193, 78, 0.1) 100%);
}

.page-cockfighting__cta-section p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-main);
}

.page-cockfighting__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__main-title {
    font-size: 28px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section {
    padding: 60px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__text-block p {
    font-size: 15px;
  }

  .page-cockfighting__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__feature-grid, .page-cockfighting__steps-grid, .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card h3, .page-cockfighting__step-title, .page-cockfighting__promo-card h3 {
    font-size: 20px;
  }

  .page-cockfighting__feature-card p, .page-cockfighting__step-card p, .page-cockfighting__promo-card p {
    font-size: 15px;
  }

  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    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-cockfighting__faq-list {
    margin-top: 30px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  .page-cockfighting__cta-section p {
    font-size: 16px;
  }

  .page-cockfighting__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* Ensure all image containers are constrained */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__content-grid,
  .page-cockfighting__feature-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific for button groups if they exist */
  .page-cockfighting__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}