/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0; /* Adjust as needed, assuming shared.css handles body padding-top */
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Blend brand colors */
  overflow: hidden;
  min-height: 600px;
  color: #ffffff;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title on dark background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Section Styles */
.page-promotions__section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-promotions__section:nth-of-type(even) {
  background-color: #1a1a1a;
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold titles */
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

/* Promotion Cards */
.page-promotions__main-promos .page-promotions__container {
  padding-top: var(--header-offset, 120px); /* Apply header offset here if body padding is not handled by shared */
}

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

.page-promotions__promo-card,
.page-promotions__event-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-promotions__promo-card:hover,
.page-promotions__event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-image,
.page-promotions__event-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-promotions__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold titles within cards */
}

.page-promotions__card-text {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__card-button {
  margin-top: auto;
}

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

.page-promotions__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #000000; /* Dark text for contrast on gold */
  border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  color: #000000;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-promotions__large-button {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
}

.page-promotions__terms-conditions .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__terms-conditions .page-promotions__section-description {
  color: #f0f0f0;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-promotions__terms-item {
  background-color: rgba(0, 0, 0, 0.2); /* Dark overlay for list items */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.05em;
  color: #ffffff;
}

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-promotions__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-promotions__step-icon {
  font-size: 2em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  background-color: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

/* Special Promotions Section */
.page-promotions__special-promos {
  background-color: #1a1a1a;
}

.page-promotions__event-card {
  background-color: rgba(255, 255, 255, 0.05);
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #0d0d0d;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFD700;
  background-color: rgba(255, 215, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  text-align: center;
  background-color: #8B0000; /* Dark red background */
  padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__cta-bottom .page-promotions__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  .page-promotions__hero-section {
    padding: 60px 20px;
    min-height: 500px;
  }

  .page-promotions__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid,
  .page-promotions__event-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card,
  .page-promotions__event-card,
  .page-promotions__step-card {
    padding: 20px;
  }

  .page-promotions__promo-image,
  .page-promotions__event-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__event-card,
  .page-promotions__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

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

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

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-promotions__terms-item {
    padding: 15px;
    font-size: 0.95em;
  }

  .page-promotions__cta-bottom {
    padding: 50px 0;
  }

  .page-promotions__large-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 2em;
  }

  .page-promotions__section-title {
    font-size: 1.6em;
  }

  .page-promotions__faq-question {
    font-size: 1em;
  }
}

/* Ensure content area images CSS size lower bound (minimum 200px) */
.page-promotions img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Special handling for card images to ensure they don't get too small */
.page-promotions__promo-image, .page-promotions__event-image {
  width: 100%; /* Occupy full width of card */
  height: 250px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-promotions__promo-image, .page-promotions__event-image {
    height: 200px; /* Adjust height for mobile */
  }
}