/* style/fortune-mouse.css */
/* BEM Naming: .page-fortune-mouse__element-name */

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-fortune-mouse {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main from custom palette for general dark background */
  line-height: 1.6;
  background-color: #B71C1C; /* Background from custom palette */
}

/* --- Hero Section --- */
.page-fortune-mouse__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure no overflow */
  background-color: #C91F17; /* Main brand color */
}

.page-fortune-mouse__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-fortune-mouse__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 250px; /* Ensure images are not too small */
}

.page-fortune-mouse__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual effect, but text is below image */
  position: relative;
  z-index: 2; /* Ensure content is above any background elements */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-fortune-mouse__main-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  color: #F4D34D; /* Gold from custom palette */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-fortune-mouse__description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- General Section Styles --- */
.page-fortune-mouse__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.3;
}

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

.page-fortune-mouse__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fortune-mouse__image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.page-fortune-mouse__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-height: 200px; /* Ensure images are not too small */
}

.page-fortune-mouse__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-fortune-mouse__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-fortune-mouse__list-item::before {
  content: '⚡'; /* Unicode lightning bolt for bullet point */
  position: absolute;
  left: 0;
  color: #F4D34D; /* Gold */
  font-size: 1.2em;
  line-height: 1;
}

/* --- Color Contrast Handling --- */
.page-fortune-mouse__dark-bg {
  background-color: #7A0E0E; /* Deep Red from custom palette */
  color: #FFF5E1; /* Text Main */
}
.page-fortune-mouse__dark-bg .page-fortune-mouse__section-title {
  color: #F4D34D; /* Gold */
}
.page-fortune-mouse__dark-bg .page-fortune-mouse__list-item::before {
  color: #F4D34D; /* Gold */
}

.page-fortune-mouse__light-bg {
  background-color: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Text Main */
}
.page-fortune-mouse__light-bg .page-fortune-mouse__section-title {
  color: #F4D34D; /* Gold */
}
.page-fortune-mouse__light-bg .page-fortune-mouse__list-item::before {
  color: #F4D34D; /* Gold */
}

/* About Section Specific */
.page-fortune-mouse__about-section {
  padding: 60px 0;
}

/* How to Play Section Specific */
.page-fortune-mouse__how-to-play-section {
  padding: 60px 0;
}
.page-fortune-mouse__how-to-play-section .page-fortune-mouse__list-item::before {
  content: counter(list-item) "."; /* Numbered list */
  counter-increment: list-item;
  font-weight: bold;
  font-size: 1.1em;
  color: #F4D34D;
  left: 0;
}
.page-fortune-mouse__how-to-play-section .page-fortune-mouse__list {
  counter-reset: list-item;
}
.page-fortune-mouse__how-to-play-section .page-fortune-mouse__list-item {
  padding-left: 40px;
}

/* Features Section Specific */
.page-fortune-mouse__features-section {
  padding: 60px 0;
}
.page-fortune-mouse__features-list .page-fortune-mouse__list-item {
  margin-bottom: 25px;
}
.page-fortune-mouse__feature-title {
  font-size: 1.3rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 5px;
}
.page-fortune-mouse__feature-description {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

/* Bonuses Section Specific */
.page-fortune-mouse__bonuses-section {
  padding: 60px 0;
}
.page-fortune-mouse__bonuses-list .page-fortune-mouse__list-item {
  margin-bottom: 25px;
}
.page-fortune-mouse__bonus-title {
  font-size: 1.3rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 5px;
}
.page-fortune-mouse__bonus-description {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

/* Why brr bet Section Specific */
.page-fortune-mouse__why-brrbet-section {
  padding: 60px 0;
}
.page-fortune-mouse__benefits-list .page-fortune-mouse__list-item {
  margin-bottom: 25px;
}
.page-fortune-mouse__benefit-title {
  font-size: 1.3rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 5px;
}
.page-fortune-mouse__benefit-description {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

/* --- Call to Action (CTA) Section --- */
.page-fortune-mouse__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1;
}
.page-fortune-mouse__cta-section .page-fortune-mouse__section-title {
  color: #F4D34D; /* Gold */
}
.page-fortune-mouse__cta-content {
  max-width: 800px;
}

/* --- Buttons --- */
.page-fortune-mouse__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 2px solid #F2B544; /* Border from custom palette */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-mouse__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.page-fortune-mouse__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #F4D34D; /* Gold */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #F4D34D; /* Gold border */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-mouse__btn-secondary:hover {
  background-color: rgba(244, 211, 77, 0.1); /* Light gold hover */
  transform: translateY(-2px);
}

/* --- FAQ Section --- */
.page-fortune-mouse__faq-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG from custom palette */
  color: #FFF5E1;
}
.page-fortune-mouse__faq-section .page-fortune-mouse__section-title {
  color: #F4D34D; /* Gold */
}

.page-fortune-mouse__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-mouse__faq-item {
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #F2B544; /* Border from custom palette */
}

.page-fortune-mouse__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  cursor: pointer;
  list-style: none; /* Remove default marker for <summary> */
}

.page-fortune-mouse__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

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

.page-fortune-mouse__faq-item[open] .page-fortune-mouse__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become X or minus */
}

.page-fortune-mouse__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .page-fortune-mouse__hero-content {
    margin-top: -40px; /* Adjust overlap for mobile */
    padding: 20px;
  }

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

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

  .page-fortune-mouse__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to prevent overflow */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .page-fortune-mouse__btn-primary,
  .page-fortune-mouse__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px; /* Adjust padding for mobile buttons */
    font-size: 1rem;
  }

  .page-fortune-mouse__section-title {
    font-size: 1.8rem;
  }

  .page-fortune-mouse__text-block {
    font-size: 1rem;
  }

  .page-fortune-mouse__list-item {
    font-size: 1rem;
    padding-left: 25px;
  }
  .page-fortune-mouse__list-item::before {
    font-size: 1em;
  }

  .page-fortune-mouse__how-to-play-section .page-fortune-mouse__list-item {
    padding-left: 35px;
  }

  .page-fortune-mouse__feature-title,
  .page-fortune-mouse__bonus-title,
  .page-fortune-mouse__benefit-title {
    font-size: 1.2rem;
  }

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

  /* Mobile image and container responsiveness */
  .page-fortune-mouse img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortune-mouse__hero-image-wrapper,
  .page-fortune-mouse__image-container,
  .page-fortune-mouse__section,
  .page-fortune-mouse__content-area,
  .page-fortune-mouse__card,
  .page-fortune-mouse__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-fortune-mouse__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-left: 0;
    padding-right: 0;
  }
  /* Videos */
  .page-fortune-mouse video,
  .page-fortune-mouse__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fortune-mouse__video-section,
  .page-fortune-mouse__video-container,
  .page-fortune-mouse__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-fortune-mouse__video-section {
    padding-top: 10px !important;
  }
  .page-fortune-mouse__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-fortune-mouse__hero-content {
    margin-top: -20px;
  }
  .page-fortune-mouse__main-title {
    font-size: 1.7rem;
  }
  .page-fortune-mouse__description {
    font-size: 0.95rem;
  }
  .page-fortune-mouse__section-title {
    font-size: 1.6rem;
  }
}