/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-slot-games__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--text-main-color);
  text-align: justify;
}

.page-slot-games__highlight-text {
  color: var(--gold-color);
  font-weight: 600;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-slot-games__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-slot-games__btn-link {
  background: transparent;
  color: var(--glow-color);
  border: 1px solid var(--glow-color);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
}

.page-slot-games__btn-link:hover {
  background: rgba(87, 227, 141, 0.1);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  padding-top: 10px; /* body handles --header-offset */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

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

/* General Section Styling */
.page-slot-games__dark-section {
  background-color: var(--page-bg-color);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.page-slot-games__dark-section:nth-of-type(even) {
  background-color: var(--card-bg-color);
}

/* Features Section */
.page-slot-games__features-section .page-slot-games__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-slot-games__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-slot-games__card-text {
  font-size: 16px;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* Game Types Section */
.page-slot-games__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card--game-type .page-slot-games__card-image {
  height: 250px;
  width: 100%;
}

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

.page-slot-games__step-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--btn-gradient);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(42, 209, 111, 0.5);
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 16px;
  color: var(--text-secondary-color);
  line-height: 1.6;
  flex-grow: 1;
}

/* Promotions Section */
.page-slot-games__card--promotion .page-slot-games__card-image {
  height: 200px;
  width: 100%;
}

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

.page-slot-games__security-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-slot-games__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__security-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-slot-games__security-text {
  font-size: 16px;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

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

.page-slot-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.page-slot-games__faq-item summary {
  list-style: none;
  cursor: pointer;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: var(--border-color);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-color);
  margin-left: 15px;
  width: 24px;
  text-align: center;
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
  border-top: 1px solid var(--divider-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: var(--border-color);
  border-bottom: none;
}

/* CTA Bottom Section */
.page-slot-games__cta-bottom-section {
  text-align: center;
}

.page-slot-games__cta-bottom-section .page-slot-games__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-section {
    padding: 40px 15px 60px;
  }
  .page-slot-games__section-title {
    margin-bottom: 30px;
  }
  .page-slot-games__dark-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container,
  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-slot-games__hero-image {
    border-radius: 10px;
  }

  .page-slot-games__main-title {
    font-size: 32px;
  }

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

  .page-slot-games__text-block {
    font-size: 16px;
    line-height: 1.5;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-slot-games__dark-section {
    padding: 40px 0;
  }

  .page-slot-games__grid-3-col,
  .page-slot-games__grid-2-col,
  .page-slot-games__steps-grid,
  .page-slot-games__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card,
  .page-slot-games__step-card,
  .page-slot-games__security-item {
    padding: 20px;
    border-radius: 10px;
  }

  .page-slot-games__card-image,
  .page-slot-games__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Enforce min-size even on mobile for content images */
    min-height: 200px;
    object-fit: cover;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  /* Ensure all containers are responsive and prevent overflow */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__features-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__security-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}