/* 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; /* Light text for dark body background */
    background-color: transparent; /* Inherit from shared.css body */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Sections */
.page-slot-games__hero-section,
.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__features-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__dark-bg {
    background-color: #000080; /* Auxiliary dark blue */
    color: #ffffff;
}

.page-slot-games__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for titles */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 120px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000080, #000040); /* Dark blue gradient */
    color: #ffffff;
    padding-top: 0; /* Already handled by main, or for hero section itself */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-slot-games__main-title {
    font-size: 3.8em;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

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

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

/* 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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent; /* Default transparent border */
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #000080; /* Dark blue text for contrast on gold */
    border-color: #FFD700;
}

.page-slot-games__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
    background-color: #000080; /* Dark blue */
    color: #FFD700; /* Gold text for contrast on dark blue */
    border-color: #FFD700;
}

.page-slot-games__btn-secondary:hover {
    background-color: #000066; /* Slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video-cta {
    margin-top: 30px;
}

/* Video Section */
.page-slot-games__video-section {
    margin-top: 60px;
    position: relative;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000080;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 20px;
    box-sizing: border-box;
}

.page-slot-games__video-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    background-color: #000066;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    cursor: pointer;
}

/* Game Grid */
.page-slot-games__game-grid,
.page-slot-games__feature-grid,
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__game-card,
.page-slot-games__feature-card,
.page-slot-games__promo-card,
.page-slot-games__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark blue */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    height: 100%; /* Ensure cards in a grid have equal height */
}

.page-slot-games__game-card:hover,
.page-slot-games__feature-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-image,
.page-slot-games__feature-icon,
.page-slot-games__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to grow and push buttons to bottom */
}

/* How To Play Section */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__step-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #000080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-slot-games__promo-card .page-slot-games__btn-primary {
    margin-top: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: #f0f0f0; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: #000080; /* Dark blue title on light background */
}

.page-slot-games__faq-section .page-slot-games__section-description {
    color: #555555;
}

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

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

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

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

.page-slot-games__faq-title {
    margin: 0;
    color: #000080;
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Gold plus/minus sign */
}

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    font-size: 1em;
}

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

.page-slot-games__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #333333;
}

/* CTA Buttons Group */
.page-slot-games__cta-buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

    .page-slot-games__hero-section {
        padding: 80px 0 60px;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-slot-games__hero-section {
        padding: 60px 0 40px;
    }

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

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

    .page-slot-games__hero-description {
        font-size: 1.1em;
    }

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

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

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important;
    }
    
    /* Video responsiveness */
    .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;
    }
    
    /* Buttons responsiveness */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-slot-games__game-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__game-card,
    .page-slot-games__feature-card,
    .page-slot-games__promo-card,
    .page-slot-games__step-card,
    .page-slot-games__faq-item {
        padding: 20px;
    }

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

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

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

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 2em;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}