/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color */
  background-color: var(--page-bg); /* Use theme background color */
}

/* Variables for custom colors */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-custom-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* Ensure text color is readable on the body background */
/* Assuming --page-bg is light based on #F4F7FB, so text-main-color #1F2D3D is appropriate */
.page-slot-games {
  color: var(--text-main-color);
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  background-color: var(--primary-color); /* A solid background for the section */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure image doesn't overflow if not perfectly sized */
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff; /* White text on primary color background */
  max-width: 900px;
  margin-top: 40px; /* Space below image */
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-slot-games__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-slot-games__btn-lg {
  padding: 16px 35px;
  font-size: 1.1rem;
  min-width: 220px;
}

/* General section styling */
.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff;
}
.page-slot-games__dark-section .page-slot-games__section-title::after {
  background-color: #ffffff;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__text-block {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main-color);
}

.page-slot-games__dark-section .page-slot-games__text-block {
  color: #f0f0f0;
}

.page-slot-games__about-section,
.page-slot-games__features-section,
.page-slot-games__game-showcase,
.page-slot-games__promotions-section,
.page-slot-games__guide-section,
.page-slot-games__faq-section {
  padding: 80px 0;
}

.page-slot-games__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Features Section */
.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 120px; /* Example size for feature icons */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  object-fit: cover;
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-slot-games__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

/* Game Showcase Section */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-main-color);
}

.page-slot-games__game-trial-frame {
  width: 100%;
  height: 300px; /* Fixed height for game iframe */
  border: none;
  display: block;
  margin-bottom: 20px;
  background-color: #f0f0f0; /* Placeholder background */
}

.page-slot-games__game-card .page-slot-games__card-title {
  margin-bottom: 10px;
  padding: 0 15px;
}
.page-slot-games__game-card .page-slot-games__card-description {
  margin-bottom: 20px;
  padding: 0 15px;
}

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

/* Promotions Section */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-slot-games__promo-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-slot-games__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-slot-games__promo-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Guide Section */
.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-slot-games__guide-item {
  counter-increment: guide-step;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px 30px 25px 70px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: left;
  color: var(--text-main-color);
}

.page-slot-games__guide-item::before {
  content: counter(guide-step);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: var(--primary-color);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-slot-games__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-slot-games__guide-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-slot-games__guide-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-slot-games__guide-description a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-slot-games__faq-answer p {
  margin: 0;
}

.page-slot-games__faq-answer a {
  color: #fff; /* White link on dark background */
  text-decoration: underline;
}
.page-slot-games__faq-answer a:hover {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: 20px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-slot-games__hero-description {
    font-size: 1rem;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 40px;
  }
  .page-slot-games__hero-image {
    max-height: 400px;
  }
  .page-slot-games__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-slot-games__hero-description {
    font-size: 0.95rem;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__features-section,
  .page-slot-games__game-showcase,
  .page-slot-games__promotions-section,
  .page-slot-games__guide-section,
  .page-slot-games__faq-section {
    padding: 50px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__text-block {
    font-size: 0.9rem;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
  }

  /* Images responsive for mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset; /* Override min-width for mobile for smaller images */
    min-height: unset; /* Override min-height for mobile */
  }

  /* Video responsive for mobile - Iframe is used for games, not video files */
  .page-slot-games__game-trial-frame {
    max-width: 100% !important;
    width: 100% !important;
    height: 200px !important; /* Adjust height for mobile */
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__promo-item,
  .page-slot-games__guide-item,
  .page-slot-games__faq-item {
    padding: 20px;
    padding-left: 60px; /* Adjust for step number */
  }

  .page-slot-games__guide-item::before {
    left: 20px;
    top: 20px;
  }

  .page-slot-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}