/* style/cockfighting.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* From shared.css body background */
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text-color: #FFFF00;
  --card-bg-dark-opacity: rgba(255, 255, 255, 0.1);
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  top: -100px; /* Adjust to position below image but still visible */
  left: 0;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(1, 116, 57, 0.5) 100%); /* Gradient for visual appeal */
  box-sizing: border-box;
  z-index: 10;
  color: var(--text-light);
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: var(--btn-register-bg); /* Custom color for Register */
  color: var(--btn-text-color); /* Custom color for Register/Login text */
  border: 2px solid var(--btn-register-bg);
}

.page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

.page-cockfighting__btn-secondary {
  background-color: var(--btn-login-bg); /* Custom color for Login */
  color: var(--btn-text-color); /* Custom color for Register/Login text */
  border: 2px solid var(--btn-login-bg);
}

.page-cockfighting__btn-secondary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

/* General Section Styling */
.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
  padding-top: 40px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-cockfighting__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__text-link {
  color: var(--btn-text-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  color: var(--secondary-color);
}

/* What is Section */
.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid .page-cockfighting__image {
  margin: 0;
}

/* Bet Types Section */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__bet-item {
  background-color: var(--card-bg-dark-opacity);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__bet-item {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__bet-title {
  font-size: 1.5em;
  color: var(--btn-text-color);
  margin-bottom: 15px;
}

/* Guide Section */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  background-color: var(--card-bg-dark-opacity);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__guide-step-title {
  font-size: 1.4em;
  color: var(--btn-text-color);
  margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
  font-size: 1em;
}

.page-cockfighting__image--right {
  float: right;
  margin-left: 40px;
  width: 50%;
  max-width: 600px;
}

/* Why Choose Section */
.page-cockfighting__reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__reason-card {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__reason-card {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: var(--btn-text-color);
  margin-bottom: 15px;
}

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__image {
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: center;
}

.page-cockfighting__promo-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-light);
}

.page-cockfighting__promo-item::before {
  content: '★';
  color: var(--btn-text-color);
  position: absolute;
  left: 0;
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__tips-item {
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__tips-item {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__tips-title {
  font-size: 1.4em;
  color: var(--btn-text-color);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg-dark-opacity);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-light);
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--btn-text-color);
  list-style: none;
}

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

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--btn-text-color);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    top: -50px;
    padding: 30px 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-cockfighting__subtitle {
    font-size: 1.1em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__content-grid .page-cockfighting__image {
    order: -1; /* Image first on smaller screens */
  }

  .page-cockfighting__image--right {
    float: none;
    margin: 30px auto;
    width: 100%;
  }

  .page-cockfighting__bet-item,
  .page-cockfighting__reason-card,
  .page-cockfighting__tips-item {
    padding: 25px;
  }

  .page-cockfighting__bet-title,
  .page-cockfighting__card-title,
  .page-cockfighting__guide-step-title,
  .page-cockfighting__tips-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-cockfighting__hero-content {
    top: -30px;
    padding: 25px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

  .page-cockfighting__subtitle {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column !important; /* Mobile vertical stacking */
    gap: 15px !important;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting 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-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__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-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__content-grid,
  .page-cockfighting__bet-list,
  .page-cockfighting__reason-grid,
  .page-cockfighting__tips-list,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__promo-item,
  .page-cockfighting__guide-item p,
  .page-cockfighting__faq-answer p {
    font-size: 1em !important;
  }

  .page-cockfighting__bet-list,
  .page-cockfighting__reason-grid,
  .page-cockfighting__tips-list {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-cockfighting__bet-item,
  .page-cockfighting__reason-card,
  .page-cockfighting__tips-item {
    padding: 20px;
  }

  .page-cockfighting__bet-title,
  .page-cockfighting__card-title,
  .page-cockfighting__guide-step-title,
  .page-cockfighting__tips-title {
    font-size: 1.2em !important;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px;
  }

  /* 其他内容模块 */
  .page-cockfighting__introduction-section,
  .page-cockfighting__what-is-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }
}