/* style/slot-games.css */

/* --- General Page Styles --- */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Text Main from custom colors, assuming dark body background */
  background-color: var(--bg-color); /* Inherit from shared.css, likely dark */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD86A; /* Gold color for titles */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 216, 106, 0.5); /* Subtle glow */
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Buttons --- */
a.page-slot-games__btn-primary,
a.page-slot-games__btn-secondary,
a.page-slot-games__btn-play,
a.page-slot-games__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Remove default button border */
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

a.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for text on gold button for contrast */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

a.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
  transform: translateY(-2px);
}

a.page-slot-games__btn-secondary {
  background: #7A0E0E; /* Deep Red from custom colors */
  color: #FFF5E1; /* Text Main from custom colors */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(122, 14, 14, 0.3);
}

a.page-slot-games__btn-secondary:hover {
  background: #B71C1C; /* Background color from custom colors */
  border-color: #FFD86A; /* Glow color */
  transform: translateY(-2px);
}

a.page-slot-games__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

a.page-slot-games__btn-play:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

a.page-slot-games__btn-small {
  background: #E53935; /* Auxiliary color */
  color: #FFF5E1;
  padding: 6px 12px;
  font-size: 0.85em;
  border-radius: 5px;
}

a.page-slot-games__btn-small:hover {
  background: #C91F17; /* Main color */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  background: radial-gradient(circle at center top, #7A0E0E 0%, #B71C1C 100%); /* Deep Red to Background color gradient */
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px; /* Space between content and image */
  z-index: 2; /* Ensure text is above any background effects */
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 900;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 245, 225, 0.7);
}

.page-slot-games__hero-description {
  font-size: clamp(1em, 1.8vw, 1.2em);
  color: #F4D34D; /* Gold color */
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-slot-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  z-index: 1;
}

/* --- Intro Section --- */
.page-slot-games__intro-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background color from custom colors */
}

.page-slot-games__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- Games Showcase --- */
.page-slot-games__games-showcase {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red from custom colors */
}

.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: #D32F2F; /* Card BG from custom colors */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 4px solid #F2B544; /* Border color */
}

.page-slot-games__game-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  margin: 20px 15px 10px;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: #F4D34D; /* Gold color */
  margin: 0 15px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__view-all-cta {
  text-align: center;
  margin-top: 50px;
}

/* --- Promotions Section --- */
.page-slot-games__promo-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background color from custom colors */
}

.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-color: #D32F2F; /* Card BG from custom colors */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 4px solid #F2B544; /* Border color */
}

.page-slot-games__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  margin: 20px 15px 10px;
}

.page-slot-games__promo-description {
  font-size: 0.9em;
  color: #F4D34D; /* Gold color */
  margin: 0 15px 20px;
  flex-grow: 1;
}

/* --- Video Section --- */
.page-slot-games__video-section {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red from custom colors */
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 30px auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-slot-games__video-cta {
  margin-top: 40px;
}

/* --- CTA Section --- */
.page-slot-games__cta-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background color from custom colors */
  text-align: center;
}

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

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for smaller screens */
  }

  .page-slot-games__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__games-showcase,
  .page-slot-games__promo-section,
  .page-slot-games__video-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

  .page-slot-games__container {
    padding: 0 15px; /* Add padding for mobile */
  }

  /* Images responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image/Video containers responsive */
  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__games-showcase,
  .page-slot-games__promo-section,
  .page-slot-games__video-section,
  .page-slot-games__cta-section,
  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__video-wrapper,
  .page-slot-games__hero-cta,
  .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Videos responsive */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  a.page-slot-games__btn-primary,
  a.page-slot-games__btn-secondary,
  a.page-slot-games__btn-play,
  a.page-slot-games__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Ensure padding inside button */
    padding-right: 15px;
  }

  .page-slot-games__hero-cta,
  .page-slot-games__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

/* --- Color Contrast Fixes (if needed) --- */
.page-slot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-slot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}