/* style/slot-games.css */

:root {
  --primary-color: #FFD700; /* Bright Gold - main accent */
  --secondary-color: #0A192F; /* Dark Blue - main background/text for light elements */
  --text-on-dark: #ffffff; /* White text for dark backgrounds */
  --text-on-light: #333333; /* Dark text for light backgrounds */
  --light-bg: #f9f9f9; /* Light background for sections */
  --dark-bg-body: #0d0d1a; /* Body background from shared.css */
  --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  --card-bg-light: #ffffff; /* White for cards on light bg */
  --border-color: #2a3b50; /* Border for elements on dark bg */
  --button-hover-dark: #ccad00; /* Darker gold for hover */
  --button-hover-light: #071220; /* Darker blue for hover */
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for the main content area, assuming dark body bg */
  background-color: var(--dark-bg-body); /* Ensure main content respects body background */
  padding-top: 100px; /* Desktop: Adjust for fixed header, example value */
}

/* Sections with dark background */
.page-slot-games__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-on-dark);
  padding: 60px 20px;
}

/* Sections with light background */
.page-slot-games__light-section {
  background-color: var(--light-bg);
  color: var(--text-on-light);
  padding: 60px 20px;
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark/light) */
  line-height: 1.2;
}

.page-slot-games__subsection-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 25px;
  color: inherit;
  line-height: 1.3;
}

.page-slot-games__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  text-align: justify;
  color: inherit;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: 120px; /* Adjust for fixed header on desktop */
  text-align: center;
  background-image: url('[GALLERY:bg:i9bet,no_hu,hero_background,abstract_lines,dark_blue_gold]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-slot-games__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__hero-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  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.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__cta-button--primary:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: var(--button-hover-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-slot-games__introduction-section .page-slot-games__section-title,
.page-slot-games__introduction-section .page-slot-games__subsection-title {
  color: var(--text-on-light);
}

.page-slot-games__image-wrapper {
  margin: 30px auto;
  text-align: center;
}

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

/* Game Types Section */
.page-slot-games__game-types-section .page-slot-games__section-title {
  color: var(--text-on-dark);
}

.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: var(--card-bg-dark);
  border-radius: 12px;
  padding: 25px;
  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(--text-on-dark);
}

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

.page-slot-games__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__card-button:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
}

/* Guide Section */
.page-slot-games__guide-section .page-slot-games__section-title {
  color: var(--text-on-light);
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__guide-item {
  background: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  counter-increment: guide-counter;
  position: relative;
  padding-left: 80px;
  color: var(--text-on-light);
}

.page-slot-games__guide-item::before {
  content: counter(guide-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
}

.page-slot-games__guide-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-slot-games__guide-item-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
}

.page-slot-games__guide-cta {
  text-align: center;
  margin-top: 50px;
}

/* Advantages Section */
.page-slot-games__advantages-section .page-slot-games__section-title {
  color: var(--text-on-dark);
}

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

.page-slot-games__advantage-card {
  background: var(--card-bg-dark);
  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;
  color: var(--text-on-dark);
}

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

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

/* Tips Section */
.page-slot-games__tips-section .page-slot-games__section-title {
  color: var(--text-on-light);
}

.page-slot-games__tips-list .page-slot-games__list-item::before {
  color: var(--secondary-color); /* Darker checkmark for light background */
}

.page-slot-games__tips-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--text-on-dark);
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark);
  color: var(--text-on-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(180deg);
  color: var(--text-on-dark);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color);
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: var(--text-on-dark);
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  text-align: center;
}

.page-slot-games__conclusion-cta {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 42px;
  }
  .page-slot-games__hero-description {
    font-size: 18px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__subsection-title {
    font-size: 24px;
  }
  .page-slot-games__text-block,
  .page-slot-games__list-item,
  .page-slot-games__card-description,
  .page-slot-games__guide-item-description,
  .page-slot-games__faq-answer p {
    font-size: 16px;
  }
  .page-slot-games__game-grid,
  .page-slot-games__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: 80px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__dark-section,
  .page-slot-games__light-section {
    padding: 40px 15px;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__hero-section {
    padding-top: 100px !important; /* Mobile: Ensure hero content is not hidden */
    padding-bottom: 40px;
  }
  .page-slot-games__hero-title {
    font-size: 36px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-slot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-slot-games__subsection-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-slot-games__text-block,
  .page-slot-games__list-item,
  .page-slot-games__card-description,
  .page-slot-games__guide-item-description,
  .page-slot-games__faq-answer p {
    font-size: 15px;
  }
  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__game-grid,
  .page-slot-games__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__guide-item {
    padding: 25px 20px 25px 65px;
  }
  .page-slot-games__guide-item::before {
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .page-slot-games__guide-item-title {
    font-size: 19px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }
  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 30px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-slot-games__cta-button {
    font-size: 15px !important;
    padding: 10px 20px !important;
  }
  .page-slot-games__card-image {
    height: 160px;
  }
  .page-slot-games__card-title {
    font-size: 18px;
  }
  .page-slot-games__card-button {
    font-size: 15px;
    padding: 8px 20px;
  }
  .page-slot-games__guide-item {
    padding: 20px 15px 20px 60px;
  }
  .page-slot-games__guide-item::before {
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .page-slot-games__guide-item-title {
    font-size: 18px;
  }
}