/* style/slot-games.css */

/* Custom color variables based on the provided palette */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-bg: #08160F; /* This will be the body background for .page-slot-games */
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border: #2E7A4E;
  --page-slot-games-glow: #57E38D;
  --page-slot-games-gold: #F2C14E;
  --page-slot-games-divider: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
  --page-slot-games-light-bg-card-text: #333333; /* For cards with light background on dark body */
}

/* Base styles for the slot-games page content */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Light text on dark body background */
  background-color: var(--page-slot-games-bg); /* Dark background for the main content area */
}

/* Container for consistent content width */
.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* H1 rules: clamp for H2 */
  font-weight: bold;
  color: var(--page-slot-games-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Section descriptions/paragraphs */
.page-slot-games__section-description {
  font-size: 1.1rem;
  color: var(--page-slot-games-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Card base style (for light background on dark body) */
.page-slot-games__card {
  background-color: #ffffff; /* Use white for card background for high contrast */
  color: var(--page-slot-games-light-bg-card-text); /* Dark text on white card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-slot-games-primary-color); /* Brand color for titles */
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 1rem;
  color: var(--page-slot-games-light-bg-card-text);
}

.page-slot-games__card-link {
  color: var(--page-slot-games-primary-color);
  text-decoration: underline;
  margin-top: 15px;
  display: inline-block;
}

.page-slot-games__card-link:hover {
  color: var(--page-slot-games-secondary-color);
}

/* Button styles */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-slot-games-bg);
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width of the image itself */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 Font size rules */
  font-weight: 900;
  color: var(--page-slot-games-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 1.25rem;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 40px;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Feature Section */
.page-slot-games__feature-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

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

/* Games Showcase Section */
.page-slot-games__games-showcase {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__game-card {
  text-align: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, object-fit will crop */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-slot-games__cta-buttons--center {
  margin-top: 50px;
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__step-item {
  background-color: var(--page-slot-games-card-bg); /* Darker card background for this section */
  color: var(--page-slot-games-text-main);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 15px;
}

.page-slot-games__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--page-slot-games-text-main);
  margin-bottom: 15px;
}

.page-slot-games__step-text {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

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

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-bg);
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-slot-games__faq-item {
  margin-bottom: 20px;
  background-color: #ffffff; /* White background for FAQ items for contrast */
  color: var(--page-slot-games-light-bg-card-text); /* Dark text on white FAQ item */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Ensure content doesn't overflow when collapsed */
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default summary marker */
  color: var(--page-slot-games-light-bg-card-text);
  background-color: #ffffff;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-slot-games-light-bg-card-text);
  line-height: 1.6;
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: var(--page-slot-games-light-bg-card-text);
}

.page-slot-games__faq-answer a {
  color: var(--page-slot-games-primary-color);
  text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
  color: var(--page-slot-games-secondary-color);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green); /* Use deep green for final CTA */
  text-align: center;
}

.page-slot-games__cta-final-content {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__hero-image {
    width: 100%;
    height: 500px; /* Adjust height for tablet */
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-slot-games__hero-image {
    height: 300px; /* Adjust height for mobile */
    margin-bottom: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    max-width: 100% !important; /* Ensure button container takes full width */
    width: 100% !important;
    padding: 0 15px; /* Add padding to button container */
  }

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

  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-slot-games__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__games-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__tips-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__feature-section,
  .page-slot-games__games-showcase,
  .page-slot-games__guide-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 50px 0;
  }

  .page-slot-games__game-image {
    height: 200px; /* Adjust height for mobile game cards */
  }

  .page-slot-games__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness for all images within .page-slot-games */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  
  /* All content-containing sections/divs */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__feature-section,
  .page-slot-games__games-showcase,
  .page-slot-games__guide-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section,
  .page-slot-games__feature-grid,
  .page-slot-games__games-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__tips-grid,
  .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here to avoid double padding if container already has it */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}