/* style/lottery.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-dark-alt: rgba(255, 255, 255, 0.1);
  --button-login-color: #EA7C07;
}

/* Base styles for page-lottery */
.page-lottery {
  color: var(--light-text-color); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-color);
}

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

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

.page-lottery__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Slightly darken image for text readability */
}

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

.page-lottery__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-lottery__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-lottery__section {
  padding: 60px 0;
}

.page-lottery__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-lottery__subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.page-lottery__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-lottery__list li {
  background: var(--card-bg-dark-alt);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
}

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

.page-lottery__feature-card {
  background: var(--card-bg-dark-alt);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
}

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

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

/* Guide Section */
.page-lottery__guide-section {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: var(--light-text-color);
}

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

.page-lottery__step-card {
  background: var(--card-bg-dark-alt);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--light-text-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Promotions Section */
.page-lottery__promotions {
  background-color: var(--dark-bg-color);
}

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

.page-lottery__promo-card {
  background: var(--card-bg-dark-alt);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text-color);
}

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

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

/* Tips Section */
.page-lottery__tips-section {
  background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
  color: var(--light-text-color);
}

.page-lottery__list-light li {
  background: rgba(255, 255, 255, 0.15);
  color: var(--light-text-color);
}

/* FAQ Section */
.page-lottery__faq-section {
  background-color: var(--dark-bg-color);
}

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

.page-lottery__faq-item {
  background: var(--card-bg-dark-alt);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  list-style: none;
  user-select: none;
}

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

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

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

.page-lottery__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--light-text-color);
}

/* Conclusion Section */
.page-lottery__conclusion {
  background: var(--primary-color);
  text-align: center;
  color: var(--light-text-color);
}

.page-lottery__btn-large {
  padding: 15px 30px;
  font-size: 1.2rem;
}

/* Utility classes for colors */
.page-lottery__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-lottery__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-lottery__text-light {
  color: var(--light-text-color);
}

.page-lottery__card-dark-alt {
  background: var(--card-bg-dark-alt);
  color: var(--light-text-color);
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-lottery__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-lottery__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-lottery__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery 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-left: 15px;
    padding-right: 15px;
  }

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

  .page-lottery__subtitle {
    font-size: 1.5rem;
  }

  .page-lottery__feature-grid,
  .page-lottery__step-grid,
  .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Image responsive rules */
  .page-lottery img {
    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__feature-card,
  .page-lottery__step-card,
  .page-lottery__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive rules (if any) */
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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__video-section {
    padding-top: 10px !important;
  }
}