/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but ensuring contrast */
}

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

.page-lottery__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 500px;
  text-align: center;
  gap: 40px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-lottery__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

.page-lottery__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.page-lottery__hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* General Section Styles */
.page-lottery__section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-lottery__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-lottery__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-lottery__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-lottery__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Game Types Grid */
.page-lottery__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-lottery__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__game-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-lottery__game-text {
  font-size: 1em;
  color: #555555;
}

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

.page-lottery__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-lottery__step-icon {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-lottery__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-lottery__promo-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-lottery__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-lottery__promo-text {
  font-size: 1em;
  color: #555555;
}

/* App Download Section */
.page-lottery__app-download-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-lottery__app-info {
  flex: 1;
  max-width: 500px;
}

.page-lottery__app-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-lottery__app-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-lottery__app-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-lottery__list-icon {
  color: #26A9E0;
  font-size: 1.2em;
  margin-right: 10px;
  font-weight: bold;
}

.page-lottery__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.page-lottery__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-lottery__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
}

.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-item summary {
  list-style: none;
}

.page-lottery__faq-item summary::marker {
  display: none;
}

.page-lottery__faq-qtext {
  flex-grow: 1;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* CTA Section */
.page-lottery__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery__cta-content {
  max-width: 800px;
}

.page-lottery__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-lottery__cta-buttons--center {
  margin-top: 40px;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-lottery__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-lottery__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Image and Video Responsive Styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery video,
.page-lottery__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-lottery__video-section,
.page-lottery__video-container,
.page-lottery__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-lottery__hero-content,
  .page-lottery__hero-image-wrapper {
    max-width: 100%;
  }

  .page-lottery__hero-title {
    font-size: 2.8em;
  }

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

  .page-lottery__app-download-grid {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-lottery__app-info,
  .page-lottery__app-image-wrapper {
    max-width: 100%;
  }

  .page-lottery__app-list {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px);
  }

  .page-lottery__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
  }

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

  .page-lottery__section-description {
    font-size: 0.95em;
  }

  .page-lottery__features-grid,
  .page-lottery__game-types-grid,
  .page-lottery__steps-grid,
  .page-lottery__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__feature-card,
  .page-lottery__game-card,
  .page-lottery__step-card,
  .page-lottery__promo-card {
    padding: 20px;
  }

  .page-lottery__app-subtitle {
    font-size: 1.8em;
  }

  .page-lottery__app-list li {
    font-size: 0.95em;
  }

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

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

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

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

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

  /* Mobile specific image and video rules */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__cta-section,
  .page-lottery__app-download-grid,
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-lottery__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero */
  }

  .page-lottery__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Contrast Fixes - if needed */
.page-lottery__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-lottery__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}