/* style/slot-games.css */

/* Custom Colors */
:root {
  --ev99-primary: #11A84E;
  --ev99-secondary: #22C768;
  --ev99-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --ev99-card-bg: #11271B;
  --ev99-background: #08160F;
  --ev99-text-main: #F2FFF6;
  --ev99-text-secondary: #A7D9B8;
  --ev99-border: #2E7A4E;
  --ev99-glow: #57E38D;
  --ev99-gold: #F2C14E;
  --ev99-divider: #1E3A2A;
  --ev99-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
  background-color: var(--ev99-background);
  color: var(--ev99-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Sections */
.page-slot-games__section {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ev99-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-slot-games__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ev99-gold);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-slot-games__paragraph {
  font-size: 17px;
  margin-bottom: 15px;
  color: var(--ev99-text-secondary);
}

.page-slot-games__paragraph--centered {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__link-inline {
  color: var(--ev99-secondary);
  text-decoration: underline;
}

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ev99-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--ev99-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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 {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--ev99-button-gradient);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--ev99-secondary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.2);
}

/* Content Wrappers */
.page-slot-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-slot-games__text-block {
  flex: 1;
}

.page-slot-games__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-slot-games__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-slot-games__image--large-promo {
  max-width: 800px;
  margin: 40px auto 20px;
}

/* Game Grid */
.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-color: var(--ev99-card-bg);
  border: 1px solid var(--ev99-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-slot-games__game-card-title {
  font-size: 24px;
  color: var(--ev99-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-slot-games__game-card-description {
  font-size: 16px;
  color: var(--ev99-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  background: var(--ev99-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-play:hover {
  filter: brightness(1.1);
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--ev99-text-secondary);
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong {
  color: var(--ev99-text-main);
}

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

.page-slot-games__promotion-card {
  padding: 30px;
  text-align: center;
  border-radius: 12px;
}

.page-slot-games__promotion-card-title {
  font-size: 26px;
  color: var(--ev99-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-slot-games__promotion-card-description {
  font-size: 16px;
  color: var(--ev99-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-slot-games__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

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

.page-slot-games__feature-item {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-title {
  font-size: 24px;
  color: var(--ev99-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-slot-games__feature-description {
  font-size: 16px;
  color: var(--ev99-text-secondary);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 30px;
}

.page-slot-games__faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--ev99-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--ev99-card-bg);
  color: var(--ev99-text-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: var(--ev99-deep-green);
}

.page-slot-games__faq-question:hover {
  background-color: var(--ev99-deep-green);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--ev99-gold);
  margin-left: 15px;
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  background-color: #0d1e16; /* Slightly lighter than card bg for contrast */
  color: var(--ev99-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  border-top: 1px solid var(--ev99-divider);
}

.page-slot-games__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Fixed Header & Body Spacing (handled by shared.css body padding-top) */
/* .page-slot-games__hero-section padding-top is minimal (10px) */

/* Responsive Design for Images, Videos, Buttons */
/* All images base responsive styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons base responsive styles */
.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* All image/button/video containers base responsive styles */
.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container,
.page-slot-games__hero-image-wrapper,
.page-slot-games__game-grid,
.page-slot-games__promotion-grid,
.page-slot-games__feature-list,
.page-slot-games__cta-buttons,
.page-slot-games__button-group,
.page-slot-games__btn-container,
.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; /* Prevent content overflow */
}

/* Desktop specific for video container (if present) */
.page-slot-games__video-container { /* This class is not in HTML but kept for robustness */
  width: 100%; /* Ensure width is 100% alongside max-width */
  max-width: 1200px;
}

/* Media Queries for Mobile */
@media (max-width: 992px) {
  .page-slot-games__content-wrapper {
    flex-direction: column;
  }
  .page-slot-games__content-wrapper--reversed {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 400px;
  }
  .page-slot-games__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-slot-games__sub-title {
    font-size: clamp(20px, 5vw, 28px);
  }
  .page-slot-games__paragraph,
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__faq-answer {
    font-size: 15px;
  }

  /* Mobile mandatory image/video/button responsiveness */
  .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__hero-content,
  .page-slot-games__cta-buttons,
  .page-slot-games__game-card,
  .page-slot-games__promotion-card,
  .page-slot-games__feature-item,
  .page-slot-games__faq-item,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
}