/* style/fortune-dragon.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main: #333333;
  --card-bg: #FFFFFF;
  --page-bg: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-fortune-dragon {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg); /* Default page background */
  line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css, not here */

.page-fortune-dragon__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom for content */
  background-color: #000; /* Dark background for hero text contrast */
  overflow: hidden;
}

.page-fortune-dragon__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* The image should not be filter-modified */
}

.page-fortune-dragon__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for text readability */
  color: #ffffff;
  position: relative; /* Ensure content is above image but not overlapping */
  margin-top: -100px; /* Pull content up slightly, but not over the image */
  z-index: 1;
  border-radius: 8px;
}

.page-fortune-dragon__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff; /* White text for dark background */
  margin-bottom: 20px;
  /* Using clamp for responsive font size */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-fortune-dragon__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-fortune-dragon__btn-primary,
.page-fortune-dragon__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fortune-dragon__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-fortune-dragon__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fortune-dragon__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fortune-dragon__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-fortune-dragon__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-fortune-dragon__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  color: var(--text-main);
}

.page-fortune-dragon__about-game-section,
.page-fortune-dragon__strategy-section,
.page-fortune-dragon__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-fortune-dragon__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-fortune-dragon__dark-section .page-fortune-dragon__section-title {
  color: #ffffff;
}

.page-fortune-dragon__dark-section .page-fortune-dragon__text-block {
  color: #f0f0f0;
}

.page-fortune-dragon__medium-bg {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-fortune-dragon__medium-bg .page-fortune-dragon__section-title {
  color: #ffffff;
}

.page-fortune-dragon__medium-bg .page-fortune-dragon__text-block {
  color: #f0f0f0;
}

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

.page-fortune-dragon__feature-card,
.page-fortune-dragon__advantage-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-main);
}

.page-fortune-dragon__feature-card .page-fortune-dragon__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-fortune-dragon__feature-title,
.page-fortune-dragon__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fortune-dragon__feature-description,
.page-fortune-dragon__advantage-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-fortune-dragon__how-to-play-section .page-fortune-dragon__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #ffffff;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-fortune-dragon__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

.page-fortune-dragon__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-fortune-dragon__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fortune-dragon__strategy-list .page-fortune-dragon__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.page-fortune-dragon__strategy-list .page-fortune-dragon__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fortune-dragon__strategy-list .page-fortune-dragon__list-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-fortune-dragon__faq-list {
  margin-top: 40px;
}

.page-fortune-dragon__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-fortune-dragon__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-fortune-dragon__faq-item[open] .page-fortune-dragon__faq-question {
  background-color: #f9f9f9;
}

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

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

.page-fortune-dragon__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-fortune-dragon__cta-bottom-section {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fortune-dragon__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-fortune-dragon__hero-section {
    padding-bottom: 40px;
  }

  .page-fortune-dragon__hero-image {
    height: 400px; /* Adjust hero image height for smaller screens */
  }

  .page-fortune-dragon__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-fortune-dragon__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-fortune-dragon__hero-description {
    font-size: 1rem;
  }

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

  .page-fortune-dragon__btn-primary,
  .page-fortune-dragon__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fortune-dragon__container {
    padding: 20px 15px;
  }

  .page-fortune-dragon__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-fortune-dragon__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-fortune-dragon__feature-grid,
  .page-fortune-dragon__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fortune-dragon__feature-card,
  .page-fortune-dragon__advantage-card {
    padding: 20px;
  }

  .page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-item,
  .page-fortune-dragon__strategy-list .page-fortune-dragon__list-item {
    padding: 15px 20px;
  }

  .page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-title,
  .page-fortune-dragon__strategy-list .page-fortune-dragon__list-title {
    font-size: 1.2rem;
  }

  .page-fortune-dragon__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-fortune-dragon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortune-dragon__hero-section,
  .page-fortune-dragon__about-game-section,
  .page-fortune-dragon__how-to-play-section,
  .page-fortune-dragon__strategy-section,
  .page-fortune-dragon__why-f1bet-section,
  .page-fortune-dragon__faq-section,
  .page-fortune-dragon__cta-bottom-section,
  .page-fortune-dragon__container,
  .page-fortune-dragon__feature-card,
  .page-fortune-dragon__advantage-card,
  .page-fortune-dragon__how-to-play-section .page-fortune-dragon__list-item,
  .page-fortune-dragon__strategy-list .page-fortune-dragon__list-item,
  .page-fortune-dragon__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fortune-dragon__hero-section { /* Override general padding-left/right for hero-section to be full width */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-fortune-dragon__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific padding for sections to avoid double padding if container also has it */
  .page-fortune-dragon__about-game-section, 
  .page-fortune-dragon__strategy-section, 
  .page-fortune-dragon__faq-section, 
  .page-fortune-dragon__why-f1bet-section, 
  .page-fortune-dragon__cta-bottom-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-fortune-dragon__how-to-play-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure padding is applied to inner container */
  .page-fortune-dragon__about-game-section > .page-fortune-dragon__container,
  .page-fortune-dragon__strategy-section > .page-fortune-dragon__container,
  .page-fortune-dragon__faq-section > .page-fortune-dragon__container,
  .page-fortune-dragon__why-f1bet-section > .page-fortune-dragon__container,
  .page-fortune-dragon__cta-bottom-section > .page-fortune-dragon__container,
  .page-fortune-dragon__how-to-play-section > .page-fortune-dragon__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video section (if present) small top padding for mobile */
  .page-fortune-dragon__video-section {
    padding-top: 10px !important;
  }
}