/* style/slot-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-slot-games {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Section styling */
.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-slot-games__description-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Small top padding, body handles header offset */
  padding-top: 10px; /* Small top padding to avoid double spacing */
  overflow: hidden;
  min-height: 600px;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff; /* White text on dark background image */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White title for hero */
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Login button specific style */
.page-slot-games__btn-login {
  background: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

/* About section */
.page-slot-games__about-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-slot-games__about-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__about-section .page-slot-games__text-block {
  color: #333333;
  text-align: left;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Types Section */
.page-slot-games__game-types {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

.page-slot-games__game-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #ffffff; /* White text on dark card */
  height: 100%;
}

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

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__text-block--center {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0 auto;
  font-size: 1.1em;
}

/* Registration Guide Section */
.page-slot-games__registration-guide {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__registration-guide .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__registration-guide .page-slot-games__description-text {
  color: #333333;
}

.page-slot-games__guide-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.page-slot-games__guide-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-slot-games__guide-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

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

.page-slot-games__step-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  height: 100%;
}

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

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

.page-slot-games__cta-buttons--center {
  margin-top: 40px;
  justify-content: center;
}

/* Strategies Section */
.page-slot-games__strategies-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-slot-games__strategy-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%;
}

.page-slot-games__item-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-slot-games__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  text-align: left;
}

.page-slot-games__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-slot-games__text-content {
  flex: 1;
  color: #f0f0f0;
}

.page-slot-games__text-content .page-slot-games__text-block {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__promotions-section .page-slot-games__description-text {
  color: #333333;
}

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

.page-slot-games__promo-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #333333;
  height: 100%;
}

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 180px;
}

.page-slot-games__promo-card .page-slot-games__card-title {
  color: #26A9E0;
}

.page-slot-games__promo-card .page-slot-games__card-text {
  color: #555555;
}

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #ffffff;
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.8;
}

.page-slot-games__answer-text {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-content {
    padding: 0 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-slot-games__description {
    font-size: 1em;
  }
  .page-slot-games__image-and-text {
    flex-direction: column;
  }
  .page-slot-games__image-wrapper,
  .page-slot-games__text-content {
    width: 100%;
  }
  .page-slot-games__guide-content {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px !important;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__description-text {
    font-size: 0.95em;
  }
  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
    min-height: 450px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .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: 12px 20px;
    font-size: 1em;
  }
  .page-slot-games__game-grid,
  .page-slot-games__strategy-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__guide-image,
  .page-slot-games__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__game-card,
  .page-slot-games__strategy-item,
  .page-slot-games__promo-card,
  .page-slot-games__step-item {
    padding: 20px;
  }
  .page-slot-games__card-title,
  .page-slot-games__step-title,
  .page-slot-games__item-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__strategy-item,
  .page-slot-games__promo-card,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games__guide-image-wrapper {
    padding: 0 15px;
  }
  .page-slot-games__image-wrapper {
    padding: 0 15px;
  }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure video maintains aspect ratio and doesn't overflow */
.page-slot-games video,
.page-slot-games__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    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: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
  .page-slot-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games__cta-buttons.page-slot-games__cta-buttons--center {
    flex-direction: column;
  }
}