/* style/slot-games.css */

/* Base Styles for the Slot Games Page */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    overflow: hidden;
    gap: 40px;
}

.page-slot-games__hero-content {
    max-width: 900px;
    z-index: 2;
}

.page-slot-games__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register and Login font color for emphasis */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-read-more {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

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

/* Section Common Styles */
.page-slot-games__featured-games,
.page-slot-games__why-choose,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom {
    padding: 60px 20px;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Background colors for contrast */
.page-slot-games__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body background for contrast, still dark */
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #1a1a1a; /* Dark background from shared.css, so using a slightly lighter dark for content sections */
    color: #ffffff;
}

/* Featured Games Grid */
.page-slot-games__game-grid,
.page-slot-games__advantages-grid,
.page-slot-games__steps-grid,
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__game-card,
.page-slot-games__step-card,
.page-slot-games__promo-card {
    background-color: #222222; /* Darker card for contrast on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover,
.page-slot-games__step-card:hover,
.page-slot-games__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.page-slot-games__game-image,
.page-slot-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #333333;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
    color: #FFFF00; /* Emphasis for titles */
}

.page-slot-games__card-title a {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__card-title a:hover {
    color: #ffffff;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #cccccc;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allows text to push button to bottom */
}

.page-slot-games__btn-play,
.page-slot-games__btn-read-more {
    margin: 0 20px 20px 20px;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__btn-play:hover,
.page-slot-games__btn-read-more:hover {
    background-color: #02944b;
    border-color: #02944b;
}

.page-slot-games__all-games-cta,
.page-slot-games__all-promos-cta {
    margin-top: 50px;
}

/* Why Choose Section */
.page-slot-games__advantage-item {
    padding: 30px;
    background-color: #222222;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-slot-games__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighten icons for visibility on dark bg, but no color change filter */
}

.page-slot-games__advantage-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-slot-games__advantage-text {
    font-size: 0.95em;
    color: #cccccc;
}

/* How To Play Section */
.page-slot-games__step-card {
    padding: 30px;
    text-align: center;
    background-color: #222222;
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00;
    margin-bottom: 15px;
    background-color: #017439;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.page-slot-games__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Promotions Section - uses similar card styles */

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

.page-slot-games__faq-item {
    background-color: #222222;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: #017439; /* Brand primary for question header */
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #02944b;
}

.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); /* For '-' symbol */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-slot-games__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

.page-slot-games__cta-support {
    margin-top: 40px;
}

.page-slot-games__support-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* CTA Bottom Section - similar to hero cta */
.page-slot-games__cta-bottom {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 80px 20px;
}

/* Ensure all images adhere to the minimum size and no small icons */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 2.8em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__game-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-slot-games__main-title {
        font-size: 2.2em;
    }

    .page-slot-games__description {
        font-size: 1em;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games__btn-read-more {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
    }

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

    .page-slot-games__game-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-slot-games__game-card,
    .page-slot-games__advantage-item,
    .page-slot-games__step-card,
    .page-slot-games__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px; /* Adjust padding for mobile */
    }

    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        height: 200px; /* Smaller height for mobile cards */
        min-width: 200px;
        min-height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__advantage-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

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

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px;
    }

    /* General image and container responsiveness for mobile */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !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__video-section {
        padding-top: var(--header-offset, 120px) !important; /* With !important as required */
    }
    
    /* Video responsiveness for mobile */
    .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-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Color contrast enforcement - using body background #121212 (dark) */
.page-slot-games {
    color: #ffffff; /* Light text for dark body background */
}

.page-slot-games p,
.page-slot-games li,
.page-slot-games__card-text,
.page-slot-games__advantage-text,
.page-slot-games__step-text,
.page-slot-games__faq-answer p,
.page-slot-games__support-text {
    color: #cccccc; /* Slightly softer white for body text */
}

.page-slot-games__section-title {
    color: #FFFF00; /* Use brand font color for main titles */
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #FFFF00;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: #FFFF00; /* Keep consistent title color */
}

.page-slot-games__card {
    background: #222222; /* Dark card background for contrast */
    color: #ffffff;
    border: 1px solid #333333;
}

.page-slot-games__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-slot-games__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-slot-games__faq-question {
  background-color: #017439;
  color: #ffffff;
}