/* style/slot-games.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #0a0a0a; /* From shared.css body background */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --accent-login-color: #EA7C07;
}

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body bg */
    background-color: var(--dark-bg-color); /* Ensure consistency if needed, though body handles it */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color); /* White for titles on dark bg */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--light-text-color); /* White for paragraphs on dark bg */
}

.page-slot-games__text-center {
    text-align: center;
}

/* Color contrast classes */
.page-slot-games__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

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

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--primary-color); /* Primary color for titles on light bg */
}

.page-slot-games__light-bg .page-slot-games__paragraph,
.page-slot-games__light-bg .page-slot-games__list-item,
.page-slot-games__light-bg .page-slot-games__card-text,
.page-slot-games__light-bg .page-slot-games__benefit-text,
.page-slot-games__light-bg .page-slot-games__guide-title,
.page-slot-games__light-bg .page-slot-games__faq-title,
.page-slot-games__light-bg .page-slot-games__faq-answer p {
    color: var(--dark-text-color);
}

/* Buttons */
.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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

.page-slot-games__btn-primary:hover {
    background-color: #1a8cc4; /* Darkened primary color */
    border-color: #1a8cc4; /* Darkened primary color */
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-slot-games__hero-buttons,
.page-slot-games__cta-wrapper,
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px; /* Spacing between buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}


/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
}

.page-slot-games__image-and-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-slot-games__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
}

.page-slot-games__list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding-left: 0;
}

.page-slot-games__list-item {
    background: var(--primary-color);
    color: var(--light-text-color);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Game Types Section */
.page-slot-games__types-section {
    padding: 80px 0;
}

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

.page-slot-games__card {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.page-slot-games__card-text {
    font-size: 1em;
    color: var(--dark-text-color);
}

/* Benefits Section */
.page-slot-games__benefits-section {
    padding: 80px 0;
}

.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: 20px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-text-color);
}

.page-slot-games__benefit-icon {
    width: 150px; /* Min size 200px, but will be scaled up by imageRequirements */
    height: 150px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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


/* Guide Section */
.page-slot-games__guide-section {
    padding: 80px 0;
}

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

.page-slot-games__guide-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__guide-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__guide-item p {
    color: var(--light-text-color);
}

.page-slot-games__guide-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__guide-item a:hover {
    color: var(--light-text-color);
}


/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
}

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

.page-slot-games__promotions-grid .page-slot-games__card {
    padding: 0; /* Remove padding from card as image fills it */
    overflow: hidden;
    text-align: left;
    background-color: var(--dark-bg-color); /* Dark card background */
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__promotions-grid .page-slot-games__card-title {
    color: var(--primary-color);
    padding: 15px 20px 0;
    font-size: 1.4em;
}

.page-slot-games__promotions-grid .page-slot-games__card-text {
    color: var(--light-text-color);
    padding: 0 20px 15px;
}

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

.page-slot-games__promotions-grid .page-slot-games__btn-secondary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

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

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--light-text-color);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: bold;
    font-size: 1.2em;
}

.page-slot-games__faq-question:hover {
    filter: brightness(1.1);
}

.page-slot-games__faq-title {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes X or minus */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

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

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.2em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0; /* Remove right margin for stacked buttons */
        padding: 12px 20px;
    }

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

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

    .page-slot-games__paragraph {
        font-size: 0.95em;
    }

    .page-slot-games__image-and-text {
        flex-direction: column;
        gap: 20px;
    }

    .page-slot-games__content-image,
    .page-slot-games__list {
        min-width: unset;
        width: 100%;
    }

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

    /* Mobile image responsiveness */
    .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__cta-buttons,
    .page-slot-games__hero-buttons,
    .page-slot-games__game-types-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__promotions-grid,
    .page-slot-games__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__types-section,
    .page-slot-games__benefits-section,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-slot-games__content-image,
.page-slot-games__benefit-icon,
.page-slot-games__promo-image,
.page-slot-games__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CSS for video element (if any) - not used in this page, but as a general rule */
.page-slot-games video,
.page-slot-games__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}