/* style/cockfighting.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
  color: var(--color-text-main); /* Light text on dark body background */
  background-color: var(--color-background); /* Body background handled by shared.css */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-cockfighting__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--color-text-secondary);
}

.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 {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: none;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
  box-shadow: 0 2px 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--color-gold);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__final-cta-section {
  padding: 80px 0;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-divider);
}

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

.page-cockfighting__text-block {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.page-cockfighting__card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--color-glow);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--color-glow);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-cockfighting__card-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.page-cockfighting__step-card {
  text-align: left;
  padding: 30px;
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: var(--color-glow);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  padding-left: 35px;
}

.page-cockfighting__step-title::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 1.2rem;
  line-height: 1;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--color-deep-green);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin: 40px auto 0;
  width: 100%; /* Desktop width */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-glow);
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-details-marker: none;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.3);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  background-color: var(--color-deep-green);
  border-bottom-color: var(--color-border);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on summary to toggle */
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
  margin-left: 20px;
  color: var(--color-gold);
  pointer-events: none; /* Allow click on summary to toggle */
}

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
}

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

.page-cockfighting__final-cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__final-cta-content {
  max-width: 900px;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .page-cockfighting__description {
    font-size: 1rem;
  }

  .page-cockfighting__section-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__video-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-cockfighting__cta-button,
  .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-direction: column !important;
    gap: 15px !important;
    overflow: hidden !important;
  }
  
  .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;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__promotion-card {
    padding: 25px;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
}