/* style/slot-games.css */

:root {
  --nn8-primary-color: #C61F1F;
  --nn8-secondary-color: #E53030;
  --nn8-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --nn8-card-bg: #2A1212;
  --nn8-background: #140C0C;
  --nn8-text-main: #FFF1E8;
  --nn8-border-color: #6A1E1E;
  --nn8-gold-color: #F3C54D;
  --nn8-deep-red: #7E0D0D;
}

.page-slot-games {
  background-color: var(--nn8-background);
  color: var(--nn8-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--nn8-gold-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: var(--nn8-button-gradient);
  border-radius: 2px;
}

.page-slot-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--nn8-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 176, 74, 0.6);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background: var(--nn8-deep-red);
  color: var(--nn8-text-main);
  border: 2px solid var(--nn8-gold-color);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--nn8-primary-color);
  opacity: 0.9;
}

.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 60px;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  height: 550px;
  overflow: hidden;
  position: relative;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.page-slot-games__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(20, 12, 12, 0.9) 0%, rgba(20, 12, 12, 0) 100%);
  text-align: center;
  color: var(--nn8-text-main);
}

.page-slot-games__main-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--nn8-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  margin-bottom: 30px;
}

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

.page-slot-games__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-slot-games__content-grid--reverse .page-slot-games__text-block {
  order: 2;
}

.page-slot-games__content-grid--reverse .page-slot-games__image-block {
  order: 1;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--nn8-text-main);
}

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

.page-slot-games__image--center {
  margin: 40px auto 0 auto;
}

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

.page-slot-games__card {
  background-color: var(--nn8-card-bg);
  border: 1px solid var(--nn8-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--nn8-text-main);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--nn8-gold-color);
  margin-bottom: 15px;
}

.page-slot-games__card-description {
  font-size: 16px;
  line-height: 1.6;
}

/* How to Play Section */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-slot-games__list-item {
  background-color: var(--nn8-card-bg);
  border: 1px solid var(--nn8-border-color);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--nn8-text-main);
  position: relative;
  padding-left: 60px;
}

.page-slot-games__list-item strong {
  color: var(--nn8-gold-color);
  font-size: 20px;
}

.page-slot-games__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--nn8-button-gradient);
  color: #ffffff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.page-slot-games__step-list {
  counter-reset: step-counter;
}

.page-slot-games__how-to-play-section .page-slot-games__btn {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  background-color: var(--nn8-deep-red);
  color: var(--nn8-text-main);
  padding: 80px 0;
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: var(--nn8-gold-color);
}

.page-slot-games__promotions-section .page-slot-games__text-block p {
  color: var(--nn8-text-main);
}

.page-slot-games__promotions-section .page-slot-games__btn {
  margin-top: 30px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
  margin-bottom: 0;
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--nn8-border-color);
  overflow: hidden;
  background: var(--nn8-card-bg);
}

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--nn8-text-main);
  font-weight: bold;
  font-size: 18px;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
  color: var(--nn8-gold-color);
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--nn8-gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 10px 10px;
  color: var(--nn8-text-main);
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 44px;
  }

  .page-slot-games__description {
    font-size: 18px;
  }

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

  .page-slot-games__content-grid {
    gap: 30px;
  }

  .page-slot-games__card-title {
    font-size: 22px;
  }

  .page-slot-games__card-description,
  .page-slot-games__text-block p,
  .page-slot-games__list-item {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    margin-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    height: 350px;
  }

  .page-slot-games__hero-content {
    padding: 25px 15px;
  }

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

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

  .page-slot-games__btn {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__hero-content .page-slot-games__btn {
    width: 100%;
  }

  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-slot-games__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-slot-games__intro-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

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

  .page-slot-games__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-slot-games__content-grid--reverse .page-slot-games__text-block {
    order: 1;
  }

  .page-slot-games__content-grid--reverse .page-slot-games__image-block {
    order: 2;
  }

  .page-slot-games__text-block p {
    font-size: 16px;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card {
    padding: 25px;
  }

  .page-slot-games__card-title {
    font-size: 20px;
  }

  .page-slot-games__card-description {
    font-size: 15px;
  }

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

  .page-slot-games__list-item {
    padding: 20px 20px 20px 50px;
    font-size: 16px;
  }

  .page-slot-games__list-item strong {
    font-size: 18px;
  }

  .page-slot-games__list-item::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
    left: 15px;
  }

  .page-slot-games__promotions-section {
    padding: 50px 0;
  }

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

  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games__faq-qtext {
    font-size: 16px;
  }

  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }

  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 20px 20px;
  }
}