/* style/slot-games.css */

/* --- Variables --- */
:root {
  --primary-color: #1A2E4E; /* Dark Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark-section: #1A2E4E; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* --- Base Page Styles --- */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light sections */
  background-color: var(--bg-light); /* Default background for light sections */
}

.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%;
  padding: 80px 0;
  padding-top: 120px; /* Desktop: Ensure content is not covered by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a506b 100%);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.page-slot-games__hero-section .page-slot-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-slot-games__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-slot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-slot-games__hero-image {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-strong);
  z-index: 0;
}

.page-slot-games__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease-in-out;
}

.page-slot-games__hero-image img:hover {
  transform: scale(1.02);
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-medium);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-slot-games__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-strong);
}

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

.page-slot-games__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-strong);
}

/* --- General Section Styles --- */
.page-slot-games__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-slot-games__section:last-of-type {
  border-bottom: none;
}

.page-slot-games__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  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__section-text {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-slot-games__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__text-link:hover {
  color: var(--secondary-color);
}

.page-slot-games__list-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__list-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- Dark Section Styles --- */
.page-slot-games__dark-section {
  background-color: var(--bg-dark-section);
  color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-text {
  color: #e0e0e0;
}

.page-slot-games__dark-section .page-slot-games__text-link,
.page-slot-games__dark-section .page-slot-games__list-link {
  color: var(--secondary-color);
}

.page-slot-games__dark-section .page-slot-games__text-link:hover,
.page-slot-games__dark-section .page-slot-games__list-link:hover {
  color: #fff;
}

.page-slot-games__dark-section .page-slot-games__section-title::after {
  background-color: var(--secondary-color);
}


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

.page-slot-games__game-card,
.page-slot-games__promo-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-light);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-slot-games__game-card img,
.page-slot-games__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-slot-games__game-card-title,
.page-slot-games__promo-card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-card-description,
.page-slot-games__promo-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

/* --- Guide Sections (Login/Register) --- */
.page-slot-games__section--guide .page-slot-games__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

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

.page-slot-games__guide-image {
  flex: 1;
  text-align: center;
}

.page-slot-games__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-light);
  display: block;
  margin: 0 auto;
}

.page-slot-games__guide-list {
  list-style-type: decimal;
  margin: 20px 0 30px 25px;
  padding: 0;
  color: var(--text-dark);
}

.page-slot-games__dark-section .page-slot-games__guide-list {
  color: var(--text-light);
}

.page-slot-games__guide-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

/* --- Why Choose Section --- */
.page-slot-games__why-choose-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-slot-games__why-choose-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #e0e0e0; /* For dark section */
}

.page-slot-games__why-choose-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* --- Floating CTA Button (Mobile) --- */
.page-slot-games__floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 400px;
  display: none; /* Hidden by default, JS will show/hide */
}

.page-slot-games__floating-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--shadow-strong);
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__floating-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-section {
    padding-top: 100px; /* Tablet: Adjust for fixed header */
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-content {
    order: 2;
  }
  
  .page-slot-games__hero-image {
    order: 1;
    margin-top: 0;
    margin-bottom: 30px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Add padding to container */
  }

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

  .page-slot-games__section {
    padding: 40px 0;
  }

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

  .page-slot-games__section--guide .page-slot-games__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__container--reversed {
    flex-direction: column;
  }

  .page-slot-games__guide-list {
    margin-left: 20px;
  }

  .page-slot-games__game-types-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__game-card img,
  .page-slot-games__promo-card img {
    height: 180px;
  }

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

  /* Ensure all containers with images/buttons are responsive */
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__section,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__guide-image,
  .page-slot-games__why-choose-image {
    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-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__floating-cta {
    display: block; /* Show floating CTA on mobile */
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__floating-cta {
    bottom: 15px;
    width: calc(100% - 30px);
  }
  .page-slot-games__floating-button {
    font-size: 1em;
    padding: 12px 15px;
  }
}