/* style/promo.css */

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

/* Base styles for the promo page */
.page-promo {
  font-family: Arial, sans-serif;
  color: var(--bingoplus-text-main); /* Default text color for dark background */
  background-color: var(--bingoplus-background); /* Ensure consistency with body background if needed */
}

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

.page-promo__dark-bg {
  background-color: var(--bingoplus-background);
  color: var(--bingoplus-text-main);
}

.page-promo__light-bg {
  background-color: var(--bingoplus-light-bg);
  color: var(--bingoplus-light-text-darker);
}

.page-promo__text-contrast-fix {
  color: var(--bingoplus-light-text-darker) !important;
}

.page-promo__highlight {
  color: var(--bingoplus-secondary);
  font-weight: bold;
}

.page-promo__highlight-dark {
  color: var(--bingoplus-primary);
  font-weight: bold;
}

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

.page-promo__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promo__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow, without overlapping text */
  background: rgba(17, 17, 17, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--bingoplus-border);
}

.page-promo__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--bingoplus-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-promo__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--bingoplus-text-main);
}

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

/* General Buttons */
.page-promo__btn-primary,
.page-promo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-promo__btn-primary {
  background: var(--bingoplus-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background: transparent;
  color: var(--bingoplus-primary);
  border: 2px solid var(--bingoplus-primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-promo__btn-secondary:hover {
  background: var(--bingoplus-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-large {
  min-width: 220px;
}

/* Section Titles and Text Blocks */
.page-promo__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--bingoplus-primary);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  font-weight: bold;
}

.page-promo__text-block {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--bingoplus-text-main);
}

/* Promotions Overview */
.page-promo__promotions-overview {
  padding: 60px 0;
}

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

.page-promo__card {
  background-color: var(--bingoplus-card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bingoplus-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-promo__card:hover {
  transform: translateY(-5px);
}

.page-promo__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-promo__card-title {
  font-size: 1.5rem;
  color: var(--bingoplus-primary);
  margin-bottom: 15px;
}

.page-promo__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bingoplus-text-main);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promo__card-btn {
  width: 100%;
  max-width: 250px;
}

/* How to Claim Section */
.page-promo__how-to-claim {
  padding: 60px 0;
}

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

.page-promo__step-card {
  background-color: var(--bingoplus-card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--bingoplus-border);
  color: var(--bingoplus-text-main);
  position: relative;
  overflow: hidden;
}

.page-promo__step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(242, 193, 78, 0.1);
  line-height: 1;
}

.page-promo__step-title {
  font-size: 1.4rem;
  color: var(--bingoplus-primary);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-promo__step-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-promo__cta-single {
  margin-top: 50px;
  text-align: center;
}

/* Featured Games Section */
.page-promo__featured-games {
  padding: 60px 0;
}

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

.page-promo__game-card {
  background-color: var(--bingoplus-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bingoplus-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-promo__game-card:hover {
  transform: translateY(-5px);
}

.page-promo__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-promo__game-title {
  font-size: 1.3rem;
  color: var(--bingoplus-primary);
  margin: 20px 15px 10px 15px;
}

.page-promo__game-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--bingoplus-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__game-btn {
  margin: 0 15px 20px 15px;
  width: calc(100% - 30px);
}

/* Why Choose Section */
.page-promo__why-choose {
  padding: 60px 0;
}

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

.page-promo__advantage-item {
  background-color: var(--bingoplus-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--bingoplus-border);
  color: var(--bingoplus-text-main);
}

.page-promo__advantage-title {
  font-size: 1.4rem;
  color: var(--bingoplus-primary);
  margin-bottom: 15px;
}

.page-promo__advantage-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Download App Section */
.page-promo__download-app {
  padding: 60px 0;
}

.page-promo__app-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  justify-content: space-between;
}

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

.page-promo__app-content .page-promo__section-title,
.page-promo__app-content .page-promo__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-promo__app-image-wrapper {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 400px;
  text-align: center;
}

.page-promo__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* FAQ Section */
.page-promo__faq-section {
  padding: 60px 0;
}

.page-promo__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__faq-item {
  background-color: var(--bingoplus-card-bg);
  border: 1px solid var(--bingoplus-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--bingoplus-text-main);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--bingoplus-primary);
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-promo__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--bingoplus-text-main);
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px 25px;
}

.page-promo__faq-a-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Final CTA Section */
.page-promo__final-cta {
  padding: 80px 0;
  text-align: center;
}

.page-promo__final-cta .page-promo__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-content {
    margin-top: -50px;
  }
  .page-promo__app-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-promo__app-content {
    text-align: center;
  }
  .page-promo__app-content .page-promo__section-title,
  .page-promo__app-content .page-promo__text-block {
    text-align: center;
  }
  .page-promo__app-image-wrapper {
    flex: none;
    max-width: 300px;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-promo__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General mobile image adaptation */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure content sections and cards don't overflow */
  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__hero-section,
  .page-promo__promotions-overview,
  .page-promo__how-to-claim,
  .page-promo__featured-games,
  .page-promo__why-choose,
  .page-promo__download-app,
  .page-promo__faq-section,
  .page-promo__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Small top padding for first section, body handles --header-offset */
  .page-promo__hero-section {
    padding-top: 10px !important;
  }

  .page-promo__hero-content {
    margin-top: 0; /* Remove negative margin on mobile */
    padding: 20px 15px;
  }

  .page-promo__main-title {
    font-size: 2rem;
  }

  .page-promo__description {
    font-size: 1rem;
  }

  /* Buttons responsive */
  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo a[class*="button"],
  .page-promo a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-promo__card-btn,
  .page-promo__game-btn {
    max-width: 100% !important;
  }

  .page-promo__section-title {
    font-size: 1.8rem;
    padding-top: 30px;
  }

  .page-promo__text-block {
    font-size: 0.95rem;
  }

  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__game-grid,
  .page-promo__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promo__card-title {
    font-size: 1.3rem;
  }

  .page-promo__step-title,
  .page-promo__advantage-title {
    font-size: 1.2rem;
  }

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

  .page-promo__game-title {
    font-size: 1.1rem;
  }

  .page-promo__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-promo__faq-answer {
    padding: 0 20px;
  }

  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-promo__app-image-wrapper {
    margin-top: 30px;
    order: -1; /* Image appears above text on mobile */
  }
}