/* style/slot-games.css */

/* Custom Colors */
:root {
  --fk22-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --fk22-card-bg: #11271B;
  --fk22-background: #08160F;
  --fk22-text-main: #F2FFF6;
  --fk22-text-secondary: #A7D9B8;
  --fk22-border: #2E7A4E;
  --fk22-glow: #57E38D;
  --fk22-gold: #F2C14E;
  --fk22-divider: #1E3A2A;
  --fk22-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
  background-color: var(--fk22-background); /* Dark background */
  color: var(--fk22-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--fk22-background);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-slot-games__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--fk22-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-slot-games__description {
  font-size: 1.1em;
  color: var(--fk22-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-slot-games__description-center {
  font-size: 1.1em;
  color: var(--fk22-text-secondary);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  padding-top: 10px;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.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: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to place content below image */
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--fk22-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--fk22-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  filter: brightness(1.1);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--fk22-glow);
  color: var(--fk22-background);
  transform: translateY(-2px);
}

.page-slot-games__btn-text {
  background: none;
  color: var(--fk22-glow);
  border: 1px solid var(--fk22-border);
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-slot-games__btn-text:hover {
  color: var(--fk22-gold);
  border-color: var(--fk22-gold);
}

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

/* Introduction Section */
.page-slot-games__introduction .page-slot-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-slot-games__introduction .page-slot-games__text-block {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__introduction .page-slot-games__image-block {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__introduction .page-slot-games__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-slot-games__card {
  background-color: var(--fk22-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fk22-text-main);
  border: 1px solid var(--fk22-border);
}

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

.page-slot-games__card img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--fk22-glow);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card p {
  font-size: 0.95em;
  color: var(--fk22-text-secondary);
}

/* Benefits Section */
.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__benefit-item {
  background-color: var(--fk22-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--fk22-text-main);
  border: 1px solid var(--fk22-border);
}

.page-slot-games__benefit-item img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-slot-games__benefit-title {
  font-size: 1.4em;
  color: var(--fk22-glow);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__benefit-item p {
  font-size: 0.95em;
  color: var(--fk22-text-secondary);
}

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

.page-slot-games__step-item {
  background-color: var(--fk22-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--fk22-text-main);
  border: 1px solid var(--fk22-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--fk22-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: var(--fk22-glow);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__step-item p {
  font-size: 0.95em;
  color: var(--fk22-text-secondary);
  flex-grow: 1;
}

/* Tips Section */
.page-slot-games__list-style {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slot-games__list-style li {
  background-color: var(--fk22-card-bg);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-size: 1.05em;
  color: var(--fk22-text-main);
  border-left: 5px solid var(--fk22-glow);
}

.page-slot-games__list-style li strong {
  color: var(--fk22-gold);
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: var(--fk22-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--fk22-border);
  color: var(--fk22-text-main);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--fk22-glow);
  cursor: pointer;
  background-color: var(--fk22-deep-green);
  border-bottom: 1px solid var(--fk22-border);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: var(--fk22-deep-green);
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question::marker {
  display: none;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--fk22-gold);
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--fk22-text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--fk22-border);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--fk22-border);
}

/* Floating Buttons */
.page-slot-games__floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--fk22-button-gradient);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.6);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 150px;
  box-sizing: border-box;
}

.page-slot-games__floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.8);
}

.page-slot-games__floating-login {
  right: 180px; /* Adjust position for login button */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-slot-games__introduction .page-slot-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-slot-games__introduction .page-slot-games__image-block {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-slot-games__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
    padding: 20px 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust for mobile */
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-text,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__card,
  .page-slot-games__benefit-item,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__floating-btn {
    padding: 10px 15px;
    font-size: 0.9em;
    bottom: 15px;
    right: 15px;
    max-width: 120px;
  }

  .page-slot-games__floating-login {
    right: 145px; /* Adjust position for login button on mobile */
  }
}

@media (max-width: 480px) {
  .page-slot-games__floating-login {
    right: 15px;
    bottom: 70px; /* Stack login above register */
  }
}