/* style/cockfighting.css */

/* --- Color Variables (from custom配色) --- */
:root {
  --cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --cockfighting-card-bg: #11271B;
  --cockfighting-background: #08160F;
  --cockfighting-text-main: #F2FFF6;
  --cockfighting-text-secondary: #A7D9B8;
  --cockfighting-border: #2E7A4E;
  --cockfighting-glow: #57E38D;
  --cockfighting-gold: #F2C14E;
  --cockfighting-divider: #1E3A2A;
  --cockfighting-deep-green: #0A4B2C;

  /* Default text/background based on assumed dark body bg from shared.css */
  --text-main-color: var(--cockfighting-text-main);
  --text-secondary-color: var(--cockfighting-text-secondary);
  --background-color: var(--cockfighting-background);
}

/* --- Base Styles & Layout --- */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); 
  background-color: var(--background-color); 
}

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

.page-cockfighting__section-title {
  font-size: clamp(2em, 4vw, 2.5em);
  color: var(--cockfighting-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--cockfighting-gold);
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  color: var(--cockfighting-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-align: center;
  padding-top: 10px; 
  background-color: var(--cockfighting-background);
  overflow: hidden;
  padding-bottom: 60px; 
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 500px; 
    overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); 
}

.page-cockfighting__hero-content {
  position: relative; 
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 40px 20px 0; 
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); 
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cockfighting-gold); 
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--cockfighting-text-main);
  margin-bottom: 30px;
}

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

.page-cockfighting__cta-buttons--centered {
    justify-content: center;
    margin-top: 40px;
}

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

.page-cockfighting__btn-primary {
  background: var(--cockfighting-btn-gradient);
  color: var(--cockfighting-text-main);
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--cockfighting-gold);
  border: 2px solid var(--cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--cockfighting-gold);
  color: var(--cockfighting-background);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Sections --- */
.page-cockfighting__about-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__final-cta-section {
  padding: 80px 0;
  background-color: var(--cockfighting-background);
  color: var(--cockfighting-text-secondary);
}

.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--cockfighting-card-bg);
}

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

.page-cockfighting__feature-card {
  background-color: var(--cockfighting-background); 
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--cockfighting-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: var(--cockfighting-gold);
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  color: var(--cockfighting-text-secondary);
  font-size: 1em;
}

/* --- Bet Types Section --- */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__bet-item {
  background-color: var(--cockfighting-card-bg);
  border: 1px solid var(--cockfighting-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__bet-item-title {
  font-size: 1.4em;
  color: var(--cockfighting-gold);
  margin-bottom: 10px;
}

.page-cockfighting__bet-item-description {
  color: var(--cockfighting-text-secondary);
  font-size: 1em;
}

/* --- How To Play Section --- */
.page-cockfighting__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--cockfighting-background);
  border: 1px solid var(--cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  background: var(--cockfighting-gold);
  color: var(--cockfighting-background);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: var(--cockfighting-gold);
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  color: var(--cockfighting-text-secondary);
  font-size: 1em;
}

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

.page-cockfighting__tip-item {
  background-color: var(--cockfighting-card-bg);
  border: 1px solid var(--cockfighting-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__tip-item-title {
  font-size: 1.3em;
  color: var(--cockfighting-gold);
  margin-bottom: 10px;
}

.page-cockfighting__tip-item-description {
  color: var(--cockfighting-text-secondary);
  font-size: 1em;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--cockfighting-background);
  border: 1px solid var(--cockfighting-border);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--cockfighting-text-main);
  cursor: pointer;
  list-style: none; 
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: var(--cockfighting-gold);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--cockfighting-text-secondary);
  font-size: 1em;
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

.page-cockfighting__faq-answer a {
  color: var(--cockfighting-gold);
  text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.2em);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); 
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; 
  }

  .page-cockfighting__cta-buttons--centered {
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-cockfighting__cta-buttons--centered a {
    width: calc(100% - 30px); 
  }

  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px; 
  }

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

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__step-by-step,
  .page-cockfighting__tip-list {
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item {
    padding: 20px;
  }

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

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Image responsive rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive rules (if any video elements were present) */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }
  
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Content area images and containers */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images are not less than 200px */
.page-cockfighting img:not(.page-cockfighting__hero-image) {
    min-width: 200px;
    min-height: 200px;
}