/* style/player-stories.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-color-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-player-stories {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-color-main); /* Main background color */
  line-height: 1.6;
}

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

.page-player-stories__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-player-stories__section-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 20px;
}

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

.page-player-stories__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-player-stories__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-player-stories__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-player-stories__hero-title {
  font-weight: 900;
  color: var(--gold-color);
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  line-height: 1.1;
}

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

.page-player-stories__hero-cta {
  margin-top: 30px;
}

.page-player-stories__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-player-stories__cta-button--primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-player-stories__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-player-stories__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color-main);
  transform: translateY(-3px);
}

/* Intro Section */
.page-player-stories__intro-section {
  padding: 80px 0;
  background-color: var(--background-color-main);
}

/* Testimonials Section */
.page-player-stories__testimonials-section {
  padding: 80px 0;
  background-color: #0A1C14; /* Slightly lighter dark background for contrast */
}

.page-player-stories__story-card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-player-stories__story-card:last-child {
  margin-bottom: 0;
}

.page-player-stories__story-card--reverse {
  flex-direction: row-reverse;
}

.page-player-stories__story-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-player-stories__story-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-player-stories__story-content {
  flex: 1.5;
  padding: 40px;
}

.page-player-stories__story-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-player-stories__story-text {
  font-size: 1em;
  color: var(--text-secondary);
  text-align: justify;
}

/* Support Section */
.page-player-stories__support-section {
  padding: 80px 0;
  background-color: var(--deep-green);
}

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

.page-player-stories__support-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-player-stories__support-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-player-stories__support-text {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* CTA Section Bottom */
.page-player-stories__cta-section-bottom {
  padding: 80px 0;
  background-color: #0A1C14;
}

.page-player-stories__cta-section-bottom .page-player-stories__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-player-stories__cta-content {
  flex: 1;
  text-align: left;
}

.page-player-stories__cta-content .page-player-stories__section-title {
  text-align: left;
  font-size: 2em;
  margin-bottom: 20px;
}

.page-player-stories__cta-content .page-player-stories__section-text {
  text-align: left;
  margin-bottom: 30px;
}

.page-player-stories__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-player-stories__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-player-stories__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-player-stories__faq-section {
  padding: 80px 0;
  background-color: var(--background-color-main);
}

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

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

.page-player-stories__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-player-stories__faq-item summary:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-player-stories__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-player-stories__faq-item[open] .page-player-stories__faq-toggle {
  transform: rotate(45deg);
}

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

.page-player-stories__faq-answer p {
  margin: 0;
  padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-player-stories__story-card {
    flex-direction: column;
  }

  .page-player-stories__story-card--reverse {
    flex-direction: column;
  }

  .page-player-stories__story-content {
    padding: 30px;
  }

  .page-player-stories__cta-section-bottom .page-player-stories__container {
    flex-direction: column;
  }

  .page-player-stories__cta-content {
    text-align: center;
  }

  .page-player-stories__cta-content .page-player-stories__section-title,
  .page-player-stories__cta-content .page-player-stories__section-text {
    text-align: center;
  }

  .page-player-stories__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-player-stories {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-player-stories__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-player-stories__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-player-stories__hero-description {
    font-size: 1.1em;
  }

  .page-player-stories__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
  }

  .page-player-stories__hero-cta .page-player-stories__cta-button--secondary {
    margin-left: 0 !important;
  }

  .page-player-stories__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Image responsiveness */
  .page-player-stories img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-player-stories__hero-image-wrapper,
  .page-player-stories__story-image-wrapper,
  .page-player-stories__cta-image-wrapper,
  .page-player-stories__container,
  .page-player-stories__hero-section,
  .page-player-stories__intro-section,
  .page-player-stories__testimonials-section,
  .page-player-stories__support-section,
  .page-player-stories__cta-section-bottom,
  .page-player-stories__faq-section,
  .page-player-stories__story-card,
  .page-player-stories__support-item,
  .page-player-stories__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-player-stories__hero-section,
  .page-player-stories__intro-section,
  .page-player-stories__testimonials-section,
  .page-player-stories__support-section,
  .page-player-stories__cta-section-bottom,
  .page-player-stories__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-player-stories__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
  }

  .page-player-stories__story-content {
    padding: 20px;
  }

  .page-player-stories__story-title {
    font-size: 1.5em;
  }

  .page-player-stories__support-title {
    font-size: 1.2em;
  }

  .page-player-stories__cta-content .page-player-stories__section-title {
    font-size: 1.8em;
  }

  .page-player-stories__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-player-stories__faq-answer {
    padding: 0 15px 15px 15px;
  }
}