/* style/slot-games.css */

/* Body padding-top is handled by shared.css */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--deep-navy); /* Body background from custom palette */
  line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  background-color: var(--deep-navy); /* Background for the whole section */
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Max height for the image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-main); /* Light text for dark background */
  max-width: 900px;
  padding: 40px;
  background: var(--card-bg); /* Use card background directly */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold for main title */
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow effect */
}

.page-slot-games__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary); /* Secondary text color */
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button gradient */
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--text-main); /* Main text color for secondary button */
  border: 2px solid var(--border); /* Custom border color */
  box-shadow: none;
}

.page-slot-games__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__game-showcase,
.page-slot-games__promotions-section,
.page-slot-games__why-choose-us,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-navy); /* Consistent dark background */
  color: var(--text-main); /* Light text for dark background */
}

.page-slot-games__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--gold); /* Gold for section titles */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-slot-games__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary); /* Secondary text color */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--text-secondary);
}

/* Game Showcase */
.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(--card-bg); /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-main); /* Light text for card background */
}

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

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails, >= 200px */
  object-fit: cover;
  display: block;
}

.page-slot-games__game-card h3 {
  font-size: 1.4rem;
  color: var(--gold); /* Gold for game titles */
  margin: 20px 20px 10px 20px;
}

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

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* Promotions Section */
.page-slot-games__promo-card {
  background-color: var(--card-bg); /* Custom card background */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  overflow: hidden;
  text-align: left;
  color: var(--text-main);
}

.page-slot-games__promo-card:last-child {
  margin-bottom: 0;
}

.page-slot-games__promo-image {
  width: 100%;
  height: auto;
  min-height: 250px; /* Minimum height for promo image */
  object-fit: cover;
  display: block;
}

.page-slot-games__promo-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-slot-games__promo-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-slot-games__promo-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
}

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

.page-slot-games__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-icon {
  width: 200px; /* Minimum size 200x200px */
  height: 200px; /* Minimum size 200x200px */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__feature-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-slot-games__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Final CTA Section */
.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
  margin-top: 40px;
}


/* Responsive Design */
@media (min-width: 769px) {
  .page-slot-games__hero-image {
    height: 600px; /* Desktop hero image height */
  }
  .page-slot-games__promo-card {
    flex-direction: row; /* Desktop: image and content side-by-side */
  }
  .page-slot-games__promo-image {
    width: 40%; /* Image takes 40% width */
    height: auto;
    min-height: 300px; /* Ensure min height on desktop */
  }
  .page-slot-games__promo-content {
    width: 60%; /* Content takes 60% width */
    padding: 40px;
  }
}


@media (max-width: 768px) {
  .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-slot-games__hero-section,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__feature-item,
  .page-slot-games__container,
  .page-slot-games__game-grid,
  .page-slot-games__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Hero Section */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px !important;
  }

  .page-slot-games__hero-image {
    height: 300px; /* Mobile hero image height */
    min-height: 200px !important; /* Ensure minimum height */
  }

  .page-slot-games__hero-content {
    padding: 20px !important;
    margin-top: 10px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
  
  .page-slot-games__btn-small {
    width: 100% !important; /* Make small buttons fill width on mobile */
    max-width: 100% !important;
    align-self: stretch;
  }

  /* General Sections */
  .page-slot-games__introduction-section,
  .page-slot-games__game-showcase,
  .page-slot-games__promotions-section,
  .page-slot-games__why-choose-us,
  .page-slot-games__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-slot-games__subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-slot-games__text-block {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* Game Showcase */
  .page-slot-games__game-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  .page-slot-games__game-card h3 {
    font-size: 1.2rem;
  }
  
  .page-slot-games__game-description {
    font-size: 0.9rem;
  }

  /* Promotions */
  .page-slot-games__promo-card {
    flex-direction: column; /* Stack image and content vertically */
  }
  .page-slot-games__promo-image {
    width: 100% !important;
    min-height: 200px !important;
  }
  .page-slot-games__promo-content {
    padding: 20px !important;
  }
  .page-slot-games__promo-title {
    font-size: 1.4rem;
  }
  .page-slot-games__promo-description {
    font-size: 1rem;
  }

  /* Why Choose Us */
  .page-slot-games__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-slot-games__feature-item {
    padding: 20px !important;
  }

  .page-slot-games__feature-icon {
    width: 200px !important; /* Must be at least 200px */
    height: 200px !important; /* Must be at least 200px */
    object-fit: contain;
    margin-bottom: 15px;
  }

  .page-slot-games__feature-title {
    font-size: 1.3rem;
  }
  .page-slot-games__feature-description {
    font-size: 0.95rem;
  }
}

/* Custom Color Palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B; /* This should be the body background color */
}

/* Smart contrast for elements on dark backgrounds */
.page-slot-games__introduction-section,
.page-slot-games__game-showcase,
.page-slot-games__promotions-section,
.page-slot-games__why-choose-us,
.page-slot-games__cta-final-section,
.page-slot-games__game-card,
.page-slot-games__promo-card,
.page-slot-games__feature-item,
.page-slot-games__hero-content {
  background-color: var(--card-bg); /* Default dark background for content blocks */
  color: var(--text-main); /* Light text on dark backgrounds */
}

.page-slot-games__hero-content {
  background: var(--card-bg); /* Directly use card bg, no transparency for overlay */
}

/* Ensure all links and interactive elements have good contrast */
.page-slot-games a {
  color: var(--gold); /* Gold for links */
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
  color: var(--glow); /* Glow color on hover */
}