/* style/slot-games.css */

/* Base Styles */
.page-slot-games {
  color: #ffffff; /* Body background is dark (#121212), so use light text */
  background-color: #121212;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__section-title--white {
  color: #ffffff;
}

.page-slot-games__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-slot-games__description--white {
  color: #ffffff;
}

.page-slot-games__description--small {
  font-size: 0.9em;
  margin-top: 20px;
}

.page-slot-games__link {
  color: #017439;
  text-decoration: underline;
}

.page-slot-games__link:hover {
  color: #00a040;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-slot-games__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005f2e;
  color: #005f2e;
}

.page-slot-games__btn-register {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-slot-games__btn-register:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

.page-slot-games__btn-login {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-slot-games__btn-login:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439; /* Use brand color for hero background */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-slot-games__hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('[GALLERY:hero_bg:1920x1080:dg_casino,slot_games,jackpot_background,luxury]') no-repeat center center/cover;
  opacity: 0.3;
  z-index: 0;
}

.page-slot-games__hero-section .page-slot-games__container {
  position: relative;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-slot-games__hero-section .page-slot-games__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* About Section */
.page-slot-games__about-section,
.page-slot-games__games-section,
.page-slot-games__strategy-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__cta-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__text-block {
  color: #ffffff;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-slot-games__feature-list,
.page-slot-games__strategy-list,
.page-slot-games__responsible-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-slot-games__feature-list li,
.page-slot-games__strategy-list li,
.page-slot-games__responsible-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-slot-games__feature-list li strong,
.page-slot-games__strategy-list li strong,
.page-slot-games__responsible-list li strong {
  color: #017439;
}

.page-slot-games__image-wrapper {
  text-align: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  background-color: #017439;
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-wrapper .page-slot-games__video-link {
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  cursor: pointer;
}

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

.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #017439;
  flex-grow: 1;
}

.page-slot-games__card-link {
  color: #017439;
  text-decoration: none;
}

.page-slot-games__card-link:hover {
  text-decoration: underline;
}

.page-slot-games__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-slot-games__button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-icon {
  background-color: #ffffff;
  color: #017439;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-slot-games__card--promo {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-slot-games__card--promo .page-slot-games__card-title {
  color: #ffffff;
}

.page-slot-games__card--promo .page-slot-games__card-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming-section {
  padding: 80px 0;
  background-color: #121212;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #017439;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  padding-bottom: 15px;
}

/* Call To Action Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #121212;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: #017439;
}

.page-slot-games__cta-section .page-slot-games__description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-section {
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__main-title {
    font-size: 2.5em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__video-section,
  .page-slot-games__games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 60px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__content-grid {
    grid-template-columns: 1fr;
  }
  
  .page-slot-games__text-block, .page-slot-games__image-wrapper {
    order: unset; /* Reset order for mobile */
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__game-cards-grid,
  .page-slot-games__promo-cards-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__image-wrapper,
  .page-slot-games__card,
  .page-slot-games__step-item,
  .page-slot-games__card--promo,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 2em;
  }
  .page-slot-games__description {
    font-size: 1em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__hero-section {
    min-height: 350px;
  }
  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__video-section,
  .page-slot-games__games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
}