/* style/cockfighting.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-color-dark: #0a0a0a; /* Body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-background-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color-dark-mode: rgba(255, 255, 255, 0.2);
}

/* Base styles for the page content, considering body background is dark */
.page-cockfighting {
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-color-dark); /* Ensure sections have dark background if not explicitly set */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--background-color-dark);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__advantages-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
  padding: 60px 20px;
  background-color: var(--background-color-dark);
  text-align: center;
}

.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.page-cockfighting p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

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

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Advantages Grid */
.page-cockfighting__advantages-grid,
.page-cockfighting__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-cockfighting__advantage-title,
.page-cockfighting__strategy-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* List Styles */
.page-cockfighting__bet-list,
.page-cockfighting__guide-list,
.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-cockfighting__bet-item,
.page-cockfighting__guide-item,
.page-cockfighting__promo-item {
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-cockfighting__bet-item h3,
.page-cockfighting__guide-item h3,
.page-cockfighting__promo-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

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

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details */
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

/* Floating Buttons */
.page-cockfighting__floating-button {
  position: fixed;
  right: 20px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  white-space: nowrap;
}

.page-cockfighting__floating-register-btn {
  bottom: 100px; /* Adjust based on footer height */
  background-color: var(--login-button-color);
  color: var(--secondary-color);
}

.page-cockfighting__floating-register-btn:hover {
  background-color: #c76700;
  transform: translateY(-3px);
}

.page-cockfighting__floating-login-btn {
  bottom: 40px; /* Adjust based on footer height */
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-cockfighting__floating-login-btn:hover {
  background-color: #1e87b6;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 40px 15px;
  }

  .page-cockfighting__content-area {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting p,
  .page-cockfighting li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-cockfighting__advantages-grid,
  .page-cockfighting__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__advantage-title,
  .page-cockfighting__strategy-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__bet-item,
  .page-cockfighting__guide-item,
  .page-cockfighting__promo-item {
    padding: 20px;
  }

  .page-cockfighting__bet-item h3,
  .page-cockfighting__guide-item h3,
  .page-cockfighting__promo-item h3 {
    font-size: 1.2rem;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-cockfighting__floating-button {
    padding: 10px 15px;
    font-size: 0.85rem;
    bottom: 80px; /* Adjust for mobile footer */
    right: 15px;
  }

  .page-cockfighting__floating-login-btn {
    bottom: 20px; /* Adjust for mobile footer */
  }

  /* Ensure all sections and containers handle overflow */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__floating-button {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .page-cockfighting__floating-register-btn {
    bottom: 70px;
  }
  .page-cockfighting__floating-login-btn {
    bottom: 15px;
  }
}