/* style/slot-games.css */

/* Variables based on provided color scheme */
: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-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
}

.page-slot-games {
  color: var(--text-main); /* Default text color for the page content on dark background */
  background-color: var(--deep-navy); /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Pull content up over the bottom part of the image, but not on top of the main visual area */
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-slot-games__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  margin-bottom: 40px;
  font-weight: 600;
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-slot-games__text-block .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-slot-games__text-block a {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default to auto, will be 100% on mobile */
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-slot-games__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
}

.page-slot-games__btn-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-slot-games__btn-text:hover::after {
  transform: scaleX(1);
}

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

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

.page-slot-games__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-slot-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-slot-games__card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-slot-games__card-title a:hover {
  text-decoration: underline;
}

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

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

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

.page-slot-games__step-icon {
  width: 150px; /* Adjusted size for step icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
}

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

.page-slot-games__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* App Download Section */
.page-slot-games__app-download {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-slot-games__app-content {
  flex: 1;
}

.page-slot-games__app-cta {
  margin-top: 30px;
  justify-content: flex-start;
}

.page-slot-games__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__app-image {
  width: 100%;
  max-width: 400px; /* Max width for the app image */
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-slot-games__hero-content {
    margin-top: -100px;
  }
  .page-slot-games__app-download {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__app-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-slot-games__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-slot-games__main-title {
    font-size: 2rem;
  }
  .page-slot-games__hero-description {
    font-size: 1rem;
  }
  .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: 1rem;
  }
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8rem;
  }
  .page-slot-games__text-block {
    font-size: 1rem;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__game-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__card-image,
  .page-slot-games__step-icon,
  .page-slot-games__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__hero-image,
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__cta-buttons,
  .page-slot-games__app-download,
  .page-slot-games__app-image-wrapper,
  .page-slot-games__game-grid,
  .page-slot-games__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
}