/* style/cockfighting.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Header offset for fixed header */
.page-cockfighting__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
}

/* Section styling */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Important for responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  border: 2px solid #017439;
  margin-right: 15px;
}

.page-cockfighting__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Custom button colors for login/register */
.page-cockfighting__btn-register {
  background-color: #C30808; /* Red for register */
  border-color: #C30808;
  color: #FFFF00; /* Yellow text */
}

.page-cockfighting__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting__btn-login {
  background-color: #C30808; /* Red for login */
  border-color: #C30808;
  color: #FFFF00; /* Yellow text */
}

.page-cockfighting__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer; /* Indicate clickable video */
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Ensure link is above video controls */
}

/* Content Sections */
.page-cockfighting__content-section {
  padding: 60px 20px;
}

/* Backgrounds for contrast */
.page-cockfighting__dark-bg {
  background-color: #017439; /* Brand green as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__contrast-fix {
  color: #ffffff; /* Ensures white text on dark brand background */
}

.page-cockfighting__text-contrast-fix {
  color: #ffffff; /* Ensures white text on dark brand background, specifically for list items */
}

/* Grid Layout for cockfighting types */
.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #555555;
}

/* Steps List */
.page-cockfighting__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #C30808; /* Red accent */
  color: #FFFF00; /* Yellow text */
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Features Grid */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__feature-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-cockfighting__feature-icon {
  /* Removed fixed 100x100, let it be controlled by HTML width/height and responsive rules */
  object-fit: contain;
  margin-bottom: 20px;
  /* Ensure it's not smaller than 200x200 as per global image requirement */
  min-width: 200px; 
  min-height: 200px; 
}

.page-cockfighting__feature-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Strategy Section */
.page-cockfighting__strategy-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__strategy-image {
  flex: 1;
  min-width: 400px; /* Minimum width for the image */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__strategy-list {
  flex: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__strategy-title {
  font-size: 1.3em;
  color: #FFFF00; /* Yellow accent for titles */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-cockfighting__strategy-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
}

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

.page-cockfighting__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #e8e8e8;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #dcdcdc;
}

.page-cockfighting__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
  background-color: #dcdcdc;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1em;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-cockfighting__faq-text {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-cockfighting__call-to-action {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand green */
  color: #ffffff; /* White text */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__strategy-image {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    height: 450px;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-description {
    font-size: 0.95em;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Force full width on mobile */
    margin-right: 0 !important;
  }
  
  .page-cockfighting__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsiveness for content area */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__strategy-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 🚨 重要：视频区域的padding-top必须在移动端媒体查询中重新设置 */
  /* 注意：不要覆盖桌面端的padding-top，只在移动端媒体查询中设置移动端的值 */
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__grid-layout,
  .page-cockfighting__steps-list,
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
  }

  .page-cockfighting__strategy-wrapper {
    flex-direction: column; /* Stack image and list */
    align-items: center;
  }

  .page-cockfighting__strategy-image {
    min-width: unset; /* Remove min-width to allow full responsiveness */
    width: 100%;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__feature-icon {
    width: 100% !important; /* Ensure images take full width of card */
    height: auto !important;
    min-width: 200px !important; /* Maintain minimum size */
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-description {
    font-size: 0.9em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
}