/* style/slot-machines.css */

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

.page-slot-machines {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-machines__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.page-slot-machines__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-slot-machines__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-slot-machines__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: 100px; /* Adjust based on header height */
}

.page-slot-machines__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-machines__hero-description {
  font-size: 1.15rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-machines__btn-primary,
.page-slot-machines__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-machines__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-slot-machines__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--glow-color);
}

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

.page-slot-machines__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--text-main-color);
}

.page-slot-machines__btn-primary--large {
    font-size: 1.3rem;
    padding: 18px 40px;
}

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

.page-slot-machines__container--center-text {
    text-align: center;
}

.page-slot-machines__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-slot-machines__subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--glow-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-machines__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-machines__text-block a {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: 600;
}

.page-slot-machines__text-block a:hover {
  text-decoration: underline;
}

.page-slot-machines__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-machines__feature-item {
  background-color: var(--card-bg-color);
  border-left: 5px solid var(--glow-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-main-color);
  font-size: 1rem;
}

.page-slot-machines__feature-item b {
    color: var(--gold-color);
}

.page-slot-machines__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-slot-machines__image-content--center {
    margin-left: auto;
    margin-right: auto;
}

.page-slot-machines__why-choose-section,
.page-slot-machines__popular-games-section,
.page-slot-machines__how-to-play-section,
.page-slot-machines__tips-section,
.page-slot-machines__faq-section,
.page-slot-machines__cta-bottom-section {
  padding: 60px 0;
  border-top: 1px solid var(--divider-color);
}

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

.page-slot-machines__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-slot-machines__card-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-machines__card p {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

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

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

.page-slot-machines__game-thumbnail {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--glow-color);
}

.page-slot-machines__game-title {
  font-size: 1.25rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-machines__game-card p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-machines__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--btn-gradient);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid var(--glow-color);
}

.page-slot-machines__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--glow-color);
}

.page-slot-machines__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  margin-top: 30px;
}

.page-slot-machines__guide-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-slot-machines__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  width: 40px;
  height: 40px;
  background: var(--gold-color);
  color: var(--page-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

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

.page-slot-machines__guide-item p {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-slot-machines__link {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-slot-machines__faq-list {
  margin-top: 30px;
}

.page-slot-machines__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-slot-machines__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-slot-machines__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

.page-slot-machines__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-slot-machines__faq-item[open] .page-slot-machines__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-machines__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  text-align: justify;
}

.page-slot-machines__cta-bottom-section {
  background-color: var(--deep-green-color);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--divider-color);
}

.page-slot-machines__cta-bottom-section .page-slot-machines__section-title {
  color: var(--gold-color);
}

.page-slot-machines__cta-bottom-section .page-slot-machines__text-block {
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-slot-machines__hero-content {
    padding: 30px 15px;
  }
  .page-slot-machines__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-slot-machines__hero-description {
    font-size: 1rem;
  }
  .page-slot-machines__container {
    padding: 30px 15px;
  }
  .page-slot-machines__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-slot-machines__hero-section {
    padding-bottom: 40px;
  }
  .page-slot-machines__hero-content {
    margin-top: 80px;
    padding: 25px 15px;
  }
  .page-slot-machines__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-slot-machines__hero-description {
    font-size: 0.95rem;
  }
  .page-slot-machines__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-machines__btn-primary,
  .page-slot-machines__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-slot-machines__btn-primary--large {
      font-size: 1.1rem;
      padding: 15px 30px;
  }
  .page-slot-machines__container {
    padding: 20px 15px;
  }
  .page-slot-machines__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-slot-machines__subsection-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .page-slot-machines__text-block {
    font-size: 0.95rem;
  }
  .page-slot-machines__feature-grid,
  .page-slot-machines__tips-grid,
  .page-slot-machines__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-machines__card,
  .page-slot-machines__game-card,
  .page-slot-machines__guide-item,
  .page-slot-machines__faq-item {
    padding: 20px;
  }
  .page-slot-machines__game-card p {
    font-size: 0.9rem;
  }
  .page-slot-machines__guide-item {
    padding-left: 60px;
  }
  .page-slot-machines__guide-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .page-slot-machines__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-slot-machines__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-slot-machines img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-machines__section,
  .page-slot-machines__card,
  .page-slot-machines__container,
  .page-slot-machines__hero-section,
  .page-slot-machines__introduction-section,
  .page-slot-machines__why-choose-section,
  .page-slot-machines__popular-games-section,
  .page-slot-machines__how-to-play-section,
  .page-slot-machines__tips-section,
  .page-slot-machines__faq-section,
  .page-slot-machines__cta-bottom-section,
  .page-slot-machines__hero-image-wrapper,
  .page-slot-machines__hero-content,
  .page-slot-machines__cta-buttons,
  .page-slot-machines__feature-grid,
  .page-slot-machines__game-grid,
  .page-slot-machines__tips-grid,
  .page-slot-machines__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-slot-machines__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-machines__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-slot-machines__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-slot-machines__hero-content {
    padding: 20px 10px;
  }
  .page-slot-machines__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-slot-machines__hero-description {
    font-size: 0.9rem;
  }
  .page-slot-machines__btn-primary,
  .page-slot-machines__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .page-slot-machines__btn-primary--large {
      font-size: 1rem;
      padding: 12px 25px;
  }
  .page-slot-machines__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-slot-machines__subsection-title {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }
  .page-slot-machines__text-block {
    font-size: 0.9rem;
  }
  .page-slot-machines__card,
  .page-slot-machines__game-card,
  .page-slot-machines__guide-item,
  .page-slot-machines__faq-item {
    padding: 15px;
  }
  .page-slot-machines__guide-item {
    padding-left: 50px;
  }
  .page-slot-machines__guide-item::before {
    left: 10px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
  .page-slot-machines__faq-question {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  .page-slot-machines__faq-answer {
    padding: 0 15px 12px;
    font-size: 0.9rem;
  }
}