/* style/promotions.css */

/* Root variables for colors */
:root {
  --page-promotions-primary-color: #26A9E0;
  --page-promotions-secondary-color: #FFFFFF;
  --page-promotions-dark-text: #333333;
  --page-promotions-light-text: #FFFFFF;
  --page-promotions-accent-color: #EA7C07; /* For login if needed */
  --page-promotions-background-light: #f8f9fa;
  --page-promotions-background-dark: #1a1a1a; /* Assuming a dark background from shared.css */
}

/* Base styles for the page content, ensuring contrast with body background */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-promotions-light-text); /* Default to light text for dark body background */
  background-color: var(--page-promotions-background-dark); /* Should be overridden by shared.css body */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-promotions-light-text); /* Light text on dark sections */
}

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-promotions-light-text); /* Light text on dark sections */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  color: var(--page-promotions-light-text);
  max-width: 800px;
}

.page-promotions__main-title {
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-promotions-light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-promotions__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

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

.page-promotions__btn-primary {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--page-promotions-primary-color), 10%);
  border-color: darken(var(--page-promotions-primary-color), 10%);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  transform: translateY(-2px);
}

/* Section Styling */
.page-promotions__promotions-overview,
.page-promotions__how-to-claim,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--page-promotions-background-light);
  color: var(--page-promotions-dark-text);
}

.page-promotions__promotions-overview .page-promotions__section-title,
.page-promotions__promotions-overview .page-promotions__text-block,
.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__text-block,
.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__text-block {
  color: var(--page-promotions-dark-text);
}

.page-promotions__detailed-promos,
.page-promotions__responsible-gaming-promo,
.page-promotions__final-cta {
  padding: 80px 0;
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
}

.page-promotions__detailed-promos .page-promotions__section-title,
.page-promotions__detailed-promos .page-promotions__text-block,
.page-promotions__responsible-gaming-promo .page-promotions__section-title,
.page-promotions__responsible-gaming-promo .page-promotions__text-block,
.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__text-block {
  color: var(--page-promotions-light-text);
}

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-promotions-dark-text);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--page-promotions-primary-color);
}

.page-promotions__card-description {
  font-size: 1em;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  padding: 12px 20px;
  margin: 0 20px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__card-button:hover {
  background-color: darken(var(--page-promotions-primary-color), 10%);
}

/* Detailed Promotions */
.page-promotions__promo-detail-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
}

.page-promotions__promo-detail-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-promotions__detail-image {
  flex: 1 1 400px;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  height: auto;
}

.page-promotions__detail-content {
  flex: 1 1 500px;
}

.page-promotions__detail-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-promotions-light-text);
}

.page-promotions__promo-detail-item p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-promotions__promo-detail-item ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__promo-detail-item li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  font-size: 1em;
}

.page-promotions__promo-detail-item li::before {
  content: '✓';
  color: var(--page-promotions-light-text);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-promotions__step-item {
  background-color: var(--page-promotions-secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--page-promotions-dark-text);
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--page-promotions-primary-color);
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  font-size: 1em;
}

.page-promotions__step-item a {
  color: var(--page-promotions-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__step-item a:hover {
  text-decoration: underline;
}

.page-promotions__claim-cta {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsible Gaming */
.page-promotions__responsible-gaming-promo a {
  color: var(--page-promotions-light-text);
  text-decoration: underline;
}

.page-promotions__responsible-gaming-promo a:hover {
  text-decoration: none;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-promotions-dark-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-promotions-secondary-color);
  border-bottom: 1px solid #eee;
  color: var(--page-promotions-primary-color);
}

.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-promotions__faq-item summary::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-promotions-dark-text);
}

/* Final CTA Section */
.page-promotions__final-cta-content {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promo-detail-item {
    flex-direction: column;
    text-align: center;
  }
  .page-promotions__promo-detail-item:nth-child(even) {
    flex-direction: column;
  }
  .page-promotions__detail-image {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-promotions__description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__promotions-overview,
  .page-promotions__detailed-promos,
  .page-promotions__how-to-claim,
  .page-promotions__responsible-gaming-promo,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    padding: 50px 0;
  }
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__promo-detail-item,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__promo-detail-item {
    padding: 20px 15px; /* Adjust padding for smaller screens */
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-promotions__detail-title {
    font-size: 1.6em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__hero-section {
    min-height: 400px;
  }
}