/* style/lottery.css */

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

/* Fixed navbar spacing for the first content section */
.page-lottery__hero-banner {
  padding-top: 120px; /* Desktop */
  padding-bottom: 60px;
  background: linear-gradient(to right, #1A1A1A, #0a0a0a);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  display: block;
}

.page-lottery__main-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

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

.page-lottery__section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

/* Buttons */
.page-lottery__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-lottery__btn--primary {
  background-color: #FFD700;
  color: #1A1A1A;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

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

.page-lottery__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
}

.page-lottery__btn--large {
  padding: 15px 40px;
  font-size: 1.1em;
}

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

.page-lottery__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__feature-icon {
  margin-bottom: 20px;
  width: 100px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-lottery__feature-text {
  color: #cccccc;
  font-size: 0.95em;
}

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

.page-lottery__game-type-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

.page-lottery__game-type-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-lottery__game-type-title {
  font-size: 1.6em;
  color: #FFD700;
  padding: 20px 20px 10px;
}

.page-lottery__game-type-description {
  color: #cccccc;
  font-size: 0.9em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery__game-type-card .page-lottery__btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* How to Play Steps */
.page-lottery__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery__step-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__step-icon {
  margin-bottom: 20px;
  width: 100px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__step-img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-lottery__step-text {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

.page-lottery__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

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

.page-lottery__promotion-title {
  font-size: 1.6em;
  color: #FFD700;
  padding: 20px 20px 10px;
}

.page-lottery__promotion-text {
  color: #cccccc;
  font-size: 0.9em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery__promotion-card .page-lottery__btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* FAQ Section */
.page-lottery__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg);
  color: #e6c200;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 0.95em;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-top: none;
}

.page-lottery__faq-answer p {
  margin-bottom: 10px;
}

.page-lottery__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-lottery__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action */
.page-lottery__section--cta {
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #e6c200);
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.page-lottery__cta-title {
  font-size: 2.8em;
  color: #1A1A1A;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-lottery__cta-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Global image responsiveness */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 2.8em;
  }
  .page-lottery__hero-banner {
    flex-direction: column;
    gap: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-content, .page-lottery__hero-image-wrapper {
    max-width: 100%;
  }
  .page-lottery__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 100px; /* Mobile */
    padding-bottom: 40px;
  }
  .page-lottery__main-title {
    font-size: 2.2em;
    text-align: center;
  }
  .page-lottery__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-lottery__hero-content .page-lottery__btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .page-lottery__section {
    padding: 40px 15px;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__feature-grid, .page-lottery__game-type-grid, .page-lottery__steps-container, .page-lottery__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__cta-title {
    font-size: 2em;
  }
  .page-lottery__cta-description {
    font-size: 1em;
  }
  .page-lottery__btn--large {
    padding: 12px 30px;
    font-size: 1em;
  }
  
  /* FAQ Mobile */
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 1em;
  }
  .page-lottery__faq-toggle {
    font-size: 1.8em;
    width: 26px;
    height: 26px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Enforce image and container responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__hero-banner,
  .page-lottery__section,
  .page-lottery__feature-card,
  .page-lottery__game-type-card,
  .page-lottery__step-card,
  .page-lottery__promotion-card,
  .page-lottery__faq-item,
  .page-lottery__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
  .page-lottery__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}