/* style/slot-games.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --dark-bg-1: #0d0d0d;
    --dark-bg-2: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-light: #e0e0e0;
    --card-bg: #ffffff;
}

/* Base styles for page content, ensuring contrast with body background */
.page-slot-games {
    color: var(--text-light); /* Default text color for the page, assuming dark body background */
    line-height: 1.7;
}

/* --- Fixed Navigation Bar Padding --- */
/* Ensure content is not covered by fixed header on desktop */
.page-slot-games__intro-section {
    padding-top: 180px; /* Desktop: Adjust based on actual header height */
}

/* --- Section Styling --- */
.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-slot-games__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

/* Light background sections */
.page-slot-games__light-bg {
    background: var(--card-bg);
    color: var(--text-dark);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__main-title {
    color: var(--primary-color);
}

.page-slot-games__light-bg .page-slot-games__text-block {
    color: var(--text-dark);
}

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

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__main-title {
    color: var(--secondary-color);
}

.page-slot-games__dark-bg .page-slot-games__text-block {
    color: var(--text-light);
}

/* --- Intro Section (Module 2) --- */
.page-slot-games__intro-section {
    padding-bottom: 60px;
    text-align: center;
}

.page-slot-games__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-slot-games__intro-text {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-slot-games__call-to-action {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* --- Buttons --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.page-slot-games__features-section {
    padding: 60px 0;
}

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

.page-slot-games__feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-slot-games__feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* --- Game Types Section (Module 3) --- */
.page-slot-games__game-types-section {
    padding: 60px 0;
}

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

.page-slot-games__game-type-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__game-type-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__game-type-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* --- Promotions Section (Module 4) --- */
.page-slot-games__promotions-section {
    padding: 60px 0;
}

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

.page-slot-games__promo-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__promo-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding: 60px 0;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on parent div */
  color: var(--text-dark);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  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; /* Allow click on parent div */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change + to X or similar */
}

/* --- News Section (Module 5) --- */
.page-slot-games__news-section {
    padding: 60px 0;
}

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

.page-slot-games__news-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-slot-games__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__news-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-slot-games__news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__news-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.page-slot-games__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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

/* --- Responsible Gambling Section --- */
.page-slot-games__responsible-gambling-section {
    padding: 60px 0;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 40px;
    }
    .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__intro-text {
        font-size: 18px;
    }
    .page-slot-games__features-grid,
    .page-slot-games__game-types-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile: Ensure content is not covered by fixed header */
    .page-slot-games__intro-section {
        padding-top: 160px !important; /* Mobile: Adjust based on actual header height */
        padding-bottom: 40px;
    }

    .page-slot-games__main-title {
        font-size: 32px;
    }
    .page-slot-games__section-title {
        font-size: 26px;
    }
    .page-slot-games__intro-text,
    .page-slot-games__text-block {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-slot-games__call-to-action {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-slot-games__features-section,
    .page-slot-games__game-types-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__news-section,
    .page-slot-games__responsible-gambling-section {
        padding: 40px 0;
    }
    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .page-slot-games__promo-card,
    .page-slot-games__news-card {
        padding: 20px;
    }
    .page-slot-games__feature-title,
    .page-slot-games__game-type-title,
    .page-slot-games__promo-title,
    .page-slot-games__news-title {
        font-size: 20px;
    }
    .page-slot-games__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-slot-games__game-type-image,
    .page-slot-games__promo-image,
    .page-slot-games__news-image {
        height: 150px;
    }

    /* FAQ Responsive */
    .page-slot-games__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-slot-games__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-slot-games__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-slot-games__faq-answer {
      padding: 0 15px;
    }
    
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
      padding: 15px !important;
    }

    /* Global image and container responsive fix */
    .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__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__game-types-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__news-section,
    .page-slot-games__responsible-gambling-section,
    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .page-slot-games__promo-card,
    .page-slot-games__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}