/* style/sports.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
}

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

.page-sports__hero-section .page-sports__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
  background-color: #1a87b8;
  border-color: #1a87b8;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

.page-sports__cta-buttons--center .page-sports__btn-primary,
.page-sports__cta-buttons--center .page-sports__btn-secondary {
  margin: 10px;
}

/* Section specific styles */
.page-sports__about-sports {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background matching body */
}

.page-sports__featured-sports {
  padding: 60px 0;
  background-color: #0d0d1e; /* Slightly darker for contrast */
}

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

.page-sports__sport-card,
.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover,
.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-sports__sport-image,
.page-sports__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 20px;
}

.page-sports__card-button {
  margin-top: auto; /* Push button to the bottom */
  align-self: center;
}

.page-sports__betting-guide {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-step-title {
  color: #26A9E0;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-sports__promo-section {
  padding: 60px 0;
  background-color: #0d0d1e;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-sports__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Download Section */
.page-sports__cta-download {
  padding: 60px 0;
  text-align: center;
  background-color: #0d0d1e;
}

.page-sports__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__download-image {
  max-width: 600px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 60vh;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width on mobile */
    margin: 0 auto;
  }

  /* Mobile Content Overflow Prevention */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .page-sports__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-sports__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__sport-image,
  .page-sports__promo-image,
  .page-sports__download-image {
    min-width: 200px;
    min-height: 200px;
  }
  /* Ensure content images are not shrunk below 200px */
  .page-sports__content-area img,
  .page-sports__featured-sports img,
  .page-sports__promo-section img,
  .page-sports__cta-download img {
      min-width: 200px;
      min-height: 200px;
  }
  .page-sports__hero-section img { /* Hero image is background, so this applies to any img *inside* it */
      min-width: 200px;
      min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
}

/* Color Contrast Enforcement */
.page-sports__dark-bg {
  color: #ffffff; /* Deep dark background, so light text */
}

.page-sports__content-area,
.page-sports__text-block {
  color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

.page-sports p,
.page-sports li {
  color: #f0f0f0;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  color: #f0f0f0;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
}
.page-sports__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.page-sports__faq-answer {
  color: #f0f0f0;
}

.page-sports__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

/* Specific color for login button if present, using custom color #EA7C07 */
.page-sports__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-sports__btn-login:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

/* No CSS filters allowed for images */
.page-sports img {
  filter: none;
}