/* style/slot-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --register-button-text: #FFFF00;
  --body-bg-color: #1a1a1a; /* From shared.css */
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--body-bg-color);
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--secondary-color);
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--register-button-text);
  border: 2px solid var(--register-button-bg);
}

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--secondary-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__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  text-align: justify;
}

.page-slot-games__dark-section {
  background-color: #2a2a2a;
  color: var(--text-on-dark);
  padding: 60px 0;
}

.page-slot-games__introduction-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

.page-slot-games__feature-card {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: var(--text-on-light);
  padding: 0 20px 20px;
}

.page-slot-games__video-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 30px;
  border-radius: 12px;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.page-slot-games__video-cta {
  text-align: center;
}

.page-slot-games__how-to-play-section {
  background-color: #f5f5f5;
  color: var(--text-on-light);
  padding: 60px 0;
}

.page-slot-games__how-to-play-section .page-slot-games__section-title {
  color: var(--primary-color);
}

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

.page-slot-games__step-item {
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-slot-games__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__step-item p {
  color: var(--text-on-light);
}

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

.page-slot-games__faq-section {
  background-color: #2a2a2a;
  color: var(--text-on-dark);
  padding: 60px 0;
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__cta-section .page-slot-games__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__text-block {
    font-size: 1em;
  }
  .page-slot-games__feature-card {
    margin-bottom: 20px;
  }
  .page-slot-games__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-slot-games__container {
    padding: 30px 15px;
  }

  /* Image responsive rules */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  /* Video specific mobile padding to avoid double */
  .page-slot-games__video-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
  }
}