/* style/lottery.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #0A1931; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a; /* From shared.css */
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

/* Base styles for page-lottery to ensure text contrast with body background */
.page-lottery {
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-dark); /* Ensure consistency */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

/* Sections */
.page-lottery__hero-section,
.page-lottery__about-lottery-section,
.page-lottery__types-section,
.page-lottery__why-choose-us-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section,
.page-lottery__tips-section,
.page-lottery__responsibility-section,
.page-lottery__conclusion-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-lottery__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-section .page-lottery__section-title,
.page-lottery__dark-section .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-description {
  font-size: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: var(--text-light);
}

.page-lottery__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-light);
}

.page-lottery__about-lottery-section .page-lottery__text-block,
.page-lottery__promotions-section .page-lottery__text-block,
.page-lottery__responsibility-section .page-lottery__text-block {
  color: var(--text-light);
}

/* Buttons */
.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-lottery__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Images */
.page-lottery__hero-image,
.page-lottery__how-to-play-image,
.page-lottery__promo-image,
.page-lottery__tips-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__card-image,
.page-lottery__feature-icon {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-lottery__feature-icon {
  width: 120px; /* Example size for icons, still > 200px wide in responsive context */
  height: 120px;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

/* Grid Layouts */
.page-lottery__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

/* Cards */
.page-lottery__card {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Features */
.page-lottery__feature-item {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-lottery__feature-item:hover {
  transform: translateY(-3px);
}

.page-lottery__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-lottery__feature-text {
  font-size: 16px;
  line-height: 1.6;
}

/* How-to-play steps */
.page-lottery__step-item {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
}

.page-lottery__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-lottery__step-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Promotions List */
.page-lottery__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: var(--text-light);
}

.page-lottery__promo-list li {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__promo-list li strong {
  color: var(--primary-color);
}

/* Tips List */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: var(--text-light);
}

.page-lottery__tips-list li {
  background-color: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__tips-list li strong {
  color: var(--primary-color);
}


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

  .page-lottery__section-title {
    font-size: 32px;
  }

  .page-lottery__hero-description {
    font-size: 18px;
  }

  .page-lottery__text-block {
    font-size: 17px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-lottery__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-lottery__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-lottery__hero-image,
  .page-lottery__how-to-play-image,
  .page-lottery__promo-image,
  .page-lottery__tips-image {
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
  }

  .page-lottery__card-image {
    margin-bottom: 10px;
  }

  .page-lottery__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-lottery__grid-layout,
  .page-lottery__features-grid,
  .page-lottery__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card,
  .page-lottery__feature-item,
  .page-lottery__step-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-lottery__card-title,
  .page-lottery__feature-title,
  .page-lottery__step-title {
    font-size: 20px;
  }

  .page-lottery__card-text,
  .page-lottery__feature-text,
  .page-lottery__step-text {
    font-size: 15px;
  }

  .page-lottery__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-lottery__promo-list li,
  .page-lottery__tips-list li {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 28px;
  }

  .page-lottery__section-title {
    font-size: 24px;
  }
}