/* style/cockfighting.css */

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

/* Quy tắc màu sắc thông minh dựa trên body background (giả định shared.css đặt body background là --bg-color-dark) */
.page-cockfighting {
  color: var(--text-main-color); /* Deep background, use light text */
  background-color: var(--bg-color-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 10px 0 60px 0; /* Small top padding, body handles main offset */
  text-align: center;
  color: var(--text-main-color);
  background-color: var(--bg-color-dark);
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main-color);
}

.page-cockfighting__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

.page-cockfighting__introduction-section .page-cockfighting__image-block {
  text-align: center;
}

.page-cockfighting__introduction-section .page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Why Choose Section */
.page-cockfighting__dark-section {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

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

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

.page-cockfighting__feature-icon {
  width: 200px; /* Explicitly set to meet min size */
  height: 200px; /* Explicitly set to meet min size */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--glow-color));
}

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

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

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

.page-cockfighting__type-card {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-main-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 10px var(--glow-color);
}

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

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

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

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

.page-cockfighting__tip-card .page-cockfighting__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* Live Video Section */
.page-cockfighting__live-video-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  width: 100%; /* desktop width */
}

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

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Make link clickable over video */
}

/* Responsible Gaming Section */
.page-cockfighting__responsible-gaming-section .page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__image-block {
  text-align: center;
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__text-block p {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  background-color: var(--card-bg-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' */
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 16px;
  color: var(--text-secondary-color);
  background-color: var(--bg-color-dark);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-cockfighting__introduction-section .page-cockfighting__content-grid,
  .page-cockfighting__responsible-gaming-section .page-cockfighting__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-cockfighting__responsible-gaming-section .page-cockfighting__content-grid {
    grid-template-areas: "image text";
  }
  .page-cockfighting__responsible-gaming-section .page-cockfighting__image-block {
    grid-area: image;
  }
  .page-cockfighting__responsible-gaming-section .page-cockfighting__text-block {
    grid-area: text;
  }
}

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

  .page-cockfighting__main-title {
    font-size: 32px;
  }

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    margin: 10px 0 !important;
  }

  .page-cockfighting__cta-button--secondary {
    margin-left: 0 !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__feature-icon {
    width: 150px !important;
    height: 150px !important;
  }

  .page-cockfighting__type-image,
  .page-cockfighting__tip-card .page-cockfighting__image {
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }

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

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

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

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-cockfighting__live-video-section {
    padding-top: 10px !important;
  }

  .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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-cockfighting__faq-question {
    font-size: 16px;
    padding: 15px;
  }

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