/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default to Text Main for dark background */
  background-color: var(--background); /* Use custom background color */
}

/* Section spacing and general layout */
.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Dark and Light background sections for contrast */
.page-sports__dark-section {
  background-color: var(--background); /* Deep Green from custom colors */
  color: var(--text-main); /* White text for dark background */
}

.page-sports__light-bg {
  background-color: var(--card-bg); /* Darker green for contrast */
  color: var(--text-main); /* White text for dark background */
}

.page-sports__section-title {
  font-size: clamp(2em, 2.5vw, 3em); /* H1 font size with clamp */
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--gold); /* Use gold for main titles */
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary); /* Use secondary text color */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, then regular bottom */
  min-height: 500px;
  text-align: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--text-main);
}

.page-sports__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font size with clamp */
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--gold); /* Gold for H1 */
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__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;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: var(--text-main); /* White text */
  border: none;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--text-main); /* White text */
  border: 2px solid var(--border); /* Custom border color */
}

.page-sports__btn-secondary:hover {
  background: var(--border); /* Hover effect */
  color: var(--background); /* Darker text on hover */
  transform: translateY(-2px);
}

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

/* Feature Grid */
.page-sports__feature-grid,
.page-sports__category-grid,
.page-sports__promo-grid,
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__card {
  background-color: var(--card-bg); /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main); /* White text for dark card */
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--gold); /* Gold for card titles */
}

.page-sports__card p {
  font-size: 1em;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-sports__live-info {
  text-align: left;
  max-width: 600px;
}

.page-sports__live-info p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-sports__live-video-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  padding-bottom: 45%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure width 100% on desktop */
}

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

/* Info Grid (Security & Responsible Gaming) */
.page-sports__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__info-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  height: 100%;
}

.page-sports__info-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--glow); /* Use glow color for info titles */
}

.page-sports__info-item p {
  font-size: 0.95em;
  color: var(--text-secondary);
}

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

.page-sports__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  overflow: hidden; /* For smooth transition */
}

.page-sports__faq-item details > summary {
  list-style: none;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  background-color: var(--deep-green); /* Darker green for question background */
  border-bottom: 1px solid var(--divider);
}

.page-sports__faq-question:hover {
  background-color: rgba(var(--deep-green-rgb), 0.8); /* Slight hover effect */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow);
}

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

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

/* Links within content */
.page-sports a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    min-height: 400px;
    padding: 10px 15px 40px;
  }

  .page-sports__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
  }

  .page-sports__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-sports__feature-grid,
  .page-sports__category-grid,
  .page-sports__promo-grid,
  .page-sports__steps-grid,
  .page-sports__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

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

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

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

  .page-sports__hero-section {
    min-height: 350px;
    padding: 10px 15px 30px;
  }

  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons */
  }

  .page-sports__feature-grid,
  .page-sports__category-grid,
  .page-sports__promo-grid,
  .page-sports__steps-grid,
  .page-sports__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card {
    padding: 25px;
  }

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

  .page-sports__live-betting-content {
    flex-direction: column;
  }

  .page-sports__live-video-wrapper {
    padding-bottom: 56.25%; /* Standard 16:9 for mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .page-sports__live-video-wrapper,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    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-sports__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

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

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

  .page-sports__faq-answer {
    padding: 15px 20px;
  }
}