/* style/slot-games.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000; /* Body background from shared.css */
  --bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if body background is overridden */
}

/* Fixed Nav Bar Spacing - Desktop */
.page-slot-games__hero-section {
  padding-top: 120px; /* Adjust based on shared header height */
}

/* General Section Styling */
.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-slot-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
}

.page-slot-games__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section for contrast */
  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-color: var(--secondary-color);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Space for image below content on mobile */
}

.page-slot-games__hero-content {
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

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

.page-slot-games__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-slot-games__btn-primary:hover {
  background: darken(var(--secondary-color), 10%); /* This needs to be a specific color if CSS variables don't support darken */
  background: #e6c200; /* A darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Advantages Section */
.page-slot-games__advantages .page-slot-games__section-title::after {
  background-color: var(--secondary-color);
}

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

.page-slot-games__card {
  background: var(--card-bg-dark);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-slot-games__card-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-slot-games__card-description {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

.page-slot-games__cta-center {
  margin-top: 50px;
}

/* How to Play Section */
.page-slot-games__how-to-play .page-slot-games__section-title::after {
  background-color: var(--primary-color);
}

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

.page-slot-games__step-card {
  background: var(--card-bg-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-slot-games__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-slot-games__step-description {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

/* Tips Section */
.page-slot-games__tips .page-slot-games__section-title::after {
  background-color: var(--secondary-color);
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-slot-games__list-item {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-slot-games__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Mobile Experience Section */
.page-slot-games__mobile-experience .page-slot-games__section-title::after {
  background-color: var(--primary-color);
}

.page-slot-games__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-slot-games__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Security Section */
.page-slot-games__security .page-slot-games__section-title::after {
  background-color: var(--secondary-color);
}

/* Final CTA Section */
.page-slot-games__cta-final {
  padding: 80px 20px;
}

.page-slot-games__cta-final-content {
  max-width: 900px;
}

.page-slot-games__btn-large {
  padding: 18px 50px;
  font-size: 20px;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 44px;
  }
  .page-slot-games__hero-description {
    font-size: 20px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* Fixed Nav Bar Spacing - Mobile */
  .page-slot-games__hero-section {
    padding-top: 100px !important; /* Adjust based on shared header height for mobile */
    padding-bottom: 40px;
  }
  
  .page-slot-games__section {
    padding: 40px 15px;
  }

  .page-slot-games__container {
    padding: 0 10px;
  }

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

  .page-slot-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

  .page-slot-games__grid, .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__card {
    padding: 25px;
  }
  
  .page-slot-games__card-icon {
    width: 90px;
    height: 90px;
  }

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

  .page-slot-games__step-card {
    padding: 25px;
  }

  .page-slot-games__step-number {
    font-size: 40px;
  }

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

  .page-slot-games__list {
    margin-top: 20px;
  }

  .page-slot-games__content-flex {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-slot-games__text-content, .page-slot-games__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Image responsive adjustments for mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper, 
  .page-slot-games__image-wrapper, 
  .page-slot-games__container, 
  .page-slot-games__section, 
  .page-slot-games__card, 
  .page-slot-games__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-slot-games__hero-image {
    object-position: center top; /* Adjust for mobile */
  }

  .page-slot-games__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 30px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
}