/* style/slot-games.css */

:root {
  --page-slot-games--color-primary: #11A84E;
  --page-slot-games--color-secondary: #22C768;
  --page-slot-games--color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games--color-card-bg: #11271B;
  --page-slot-games--color-background: #08160F;
  --page-slot-games--color-text-main: #F2FFF6;
  --page-slot-games--color-text-secondary: #A7D9B8;
  --page-slot-games--color-border: #2E7A4E;
  --page-slot-games--color-glow: #57E38D;
  --page-slot-games--color-gold: #F2C14E;
  --page-slot-games--color-divider: #1E3A2A;
  --page-slot-games--color-deep-green: #0A4B2C;
}

.page-slot-games {
  background-color: var(--page-slot-games--color-background);
  color: var(--page-slot-games--color-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-slot-games--color-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-slot-games--color-primary);
  border-radius: 2px;
}

.page-slot-games__description-text {
  font-size: 1.1em;
  color: var(--page-slot-games--color-text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 80px;
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--page-slot-games--color-gold);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--page-slot-games--color-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.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.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games--color-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-slot-games--color-primary);
  border: 2px solid var(--page-slot-games--color-primary);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-slot-games__about-section,
.page-slot-games__benefits-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__contact-cta-section {
  padding: 80px 0;
  background-color: var(--page-slot-games--color-background);
}

.page-slot-games__game-types-section,
.page-slot-games__guide-section,
.page-slot-games__providers-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games--color-deep-green);
}

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

.page-slot-games__text-block:last-of-type {
  margin-bottom: 40px;
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games--color-card-bg);
  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;
  border: 1px solid var(--page-slot-games--color-border);
  display: flex;
  flex-direction: column;
  color: var(--page-slot-games--color-text-main);
}

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

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-slot-games__provider-logo {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--page-slot-games--color-divider);
}

.page-slot-games__card-title,
.page-slot-games__provider-name {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-slot-games--color-gold);
  padding: 20px 15px 10px;
}

.page-slot-games__card-text,
.page-slot-games__provider-desc {
  font-size: 1em;
  color: var(--page-slot-games--color-text-secondary);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-slot-games__card-button {
  display: block;
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  padding: 10px 15px;
  background: var(--page-slot-games--color-button-gradient);
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-slot-games__card-button:hover {
  opacity: 0.9;
}

.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 {
  text-align: center;
  padding: 25px;
  background-color: var(--page-slot-games--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-slot-games--color-border);
}

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

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

.page-slot-games__benefit-text {
  font-size: 1em;
  color: var(--page-slot-games--color-text-secondary);
}

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

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

.page-slot-games__step-item {
  background-color: var(--page-slot-games--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-slot-games--color-border);
  position: relative;
  overflow: hidden;
}

.page-slot-games__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--page-slot-games--color-primary);
  position: absolute;
  top: -10px;
  right: -10px;
  opacity: 0.1;
  line-height: 1;
}

.page-slot-games__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-slot-games--color-gold);
  margin-bottom: 15px;
  padding-top: 20px;
}

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

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games--color-card-bg);
  border: 1px solid var(--page-slot-games--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-slot-games--color-text-main);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-slot-games--color-text-main);
  cursor: pointer;
  background-color: var(--page-slot-games--color-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games--color-gold);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--page-slot-games--color-primary);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−';
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-slot-games--color-text-secondary);
  line-height: 1.6;
}

.page-slot-games__contact-cta-section .page-slot-games__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px;
  background-color: var(--page-slot-games--color-card-bg);
  border-radius: 12px;
  border: 1px solid var(--page-slot-games--color-border);
}

.page-slot-games__contact-content {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__contact-content .page-slot-games__section-title {
  text-align: left;
  margin-bottom: 15px;
  color: var(--page-slot-games--color-gold);
}

.page-slot-games__contact-content .page-slot-games__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-slot-games__contact-content .page-slot-games__description-text {
  text-align: left;
  margin-bottom: 0;
}

.page-slot-games__contact-cta-section .page-slot-games__cta-buttons {
  justify-content: flex-end;
}

/* Desktop video container width rule */
.page-slot-games__video-container {
  width: 100%; /* Ensure width: 100% is present for desktop alongside max-width */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__description-text {
    font-size: 1em;
  }
  .page-slot-games__game-grid,
  .page-slot-games__providers-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__guide-steps {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 60px;
  }

  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games__about-section,
  .page-slot-games__benefits-section,
  .page-slot-games__tips-section,
  .page-slot-games__promotions-section,
  .page-slot-games__contact-cta-section,
  .page-slot-games__game-types-section,
  .page-slot-games__guide-section,
  .page-slot-games__providers-section,
  .page-slot-games__faq-section {
    padding: 60px 0;
  }

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

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

  .page-slot-games__description-text {
    margin-bottom: 30px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__providers-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__card-image,
  .page-slot-games__provider-logo {
    height: auto;
    max-height: 180px;
  }

  .page-slot-games__card-title,
  .page-slot-games__provider-name {
    font-size: 1.3em;
  }

  .page-slot-games__benefit-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }

  .page-slot-games__contact-cta-section .page-slot-games__container {
    flex-direction: column;
    padding: 30px 15px;
  }

  .page-slot-games__contact-content .page-slot-games__section-title {
    text-align: center;
  }

  .page-slot-games__contact-content .page-slot-games__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-slot-games__contact-content .page-slot-games__description-text {
    text-align: center;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__provider-card,
  .page-slot-games__benefit-item,
  .page-slot-games__step-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  .page-slot-games__description {
    font-size: 0.95em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  .page-slot-games__card-title,
  .page-slot-games__provider-name,
  .page-slot-games__benefit-title,
  .page-slot-games__step-title {
    font-size: 1.2em;
  }
  .page-slot-games__faq-question {
    font-size: 1em;
  }
}