/* style/sports.css */

/* Root variables for colors */
:root {
  --phfun-primary: #F2C14E;
  --phfun-secondary: #FFD36B;
  --phfun-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phfun-card-bg: #111111;
  --phfun-background: #0A0A0A;
  --phfun-text-main: #FFF6D6;
  --phfun-border: #3A2A12;
  --phfun-glow: #FFD36B;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phfun-text-main); /* Light text for dark background */
  background-color: var(--phfun-background);
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--phfun-primary);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--phfun-text-main);
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-sports__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  margin-top: -100px; /* Pull content up over image, but not overlapping text on image */
  width: 100%;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  color: var(--phfun-secondary);
  margin-bottom: 15px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--phfun-button-gradient);
  color: var(--phfun-background);
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #DDA11D 100%);
  box-shadow: 0 0 15px var(--phfun-glow);
}

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

.page-sports__btn-secondary:hover {
  background: var(--phfun-secondary);
  color: var(--phfun-background);
}

/* Section backgrounds */
.page-sports__dark-section {
  background-color: var(--phfun-background);
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: var(--phfun-card-bg);
  padding: 60px 0;
}

/* Intro Section */
.page-sports__intro-section .page-sports__text-block a {
  color: var(--phfun-secondary);
  text-decoration: underline;
}

.page-sports__intro-section .page-sports__text-block a:hover {
  color: var(--phfun-primary);
}

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

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__sport-card {
  background-color: var(--phfun-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--phfun-border);
  color: var(--phfun-text-main);
}

.page-sports__feature-card img,
.page-sports__promo-card img,
.page-sports__sport-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
}

.page-sports__card-title {
  font-size: 1.5em;
  color: var(--phfun-primary);
  margin-bottom: 10px;
}

.page-sports__card-text {
  font-size: 1em;
  color: var(--phfun-text-main);
}

/* How to Start Section */
.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background-color: var(--phfun-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--phfun-border);
}

.page-sports__step-title {
  font-size: 1.8em;
  color: var(--phfun-secondary);
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--phfun-text-main);
}

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

.page-sports__sport-card .page-sports__btn-primary {
  margin-top: 20px;
}

/* Mobile App Section */
.page-sports__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
}

.page-sports__mobile-app-text {
  flex: 1;
}

.page-sports__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-height: 200px;
}

.page-sports__app-features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  color: var(--phfun-text-main);
}

.page-sports__app-features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-sports__feature-list-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  object-fit: contain;
}

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

.page-sports__promo-card .page-sports__btn-primary {
  margin-top: 20px;
}

/* Partners Section */
.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127px images */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-sports__partner-logo {
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--phfun-border);
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section .page-sports__text-block a {
  color: var(--phfun-secondary);
  text-decoration: underline;
}

.page-sports__responsible-gaming-section .page-sports__text-block a:hover {
  color: var(--phfun-primary);
}

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

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