/* 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; /* Body background is handled by shared.css */
}

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

.page-slot-games__dark-bg {
    background-color: #003366;
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter transparent background for contrast */
    color: #ffffff;
}

.page-slot-games__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjust padding-top for header offset */
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-slot-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-slot-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #003366;
}

.page-slot-games__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-slot-games__intro-section,
.page-slot-games__popular-games-section,
.page-slot-games__benefits-section,
.page-slot-games__guide-section,
.page-slot-games__strategy-section,
.page-slot-games__promotions-section,
.page-slot-games__video-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 60px 0;
}

.page-slot-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-slot-games__content-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

.page-slot-games__text-block {
    flex: 1;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
}

.page-slot-games__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure no extra space below image */
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__image--center {
    display: block;
    margin: 40px auto;
}

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

.page-slot-games__game-card,
.page-slot-games__benefit-item,
.page-slot-games__strategy-item,
.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-slot-games__game-card:hover,
.page-slot-games__benefit-item:hover,
.page-slot-games__strategy-item:hover,
.page-slot-games__promo-card:hover {
    transform: translateY(-10px);
}

.page-slot-games__card-image,
.page-slot-games__benefit-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-slot-games__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    flex: 1 1 calc(33% - 60px);
    max-width: calc(33% - 60px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-slot-games__video-wrapper {
    display: block;
    margin: 40px auto;
    max-width: 1280px; /* Max width for video */
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #FFD700;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.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);
}

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

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

.page-slot-games__conclusion-section {
    text-align: center;
    padding: 80px 0;
}

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

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

    .page-slot-games__content-wrapper {
        flex-direction: column;
    }

    .page-slot-games__content-wrapper:nth-child(even) {
        flex-direction: column;
    }

    .page-slot-games__image {
        max-width: 80%;
        margin-top: 30px;
    }

    .page-slot-games__step-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

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

    .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__btn--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-slot-games__image,
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-slot-games__image--center {
        margin: 20px auto;
    }

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

    .page-slot-games__step-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
    
    /* Ensure containers do not cause overflow */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__content-wrapper,
    .page-slot-games__guide-steps,
    .page-slot-games__video-section,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }
}

/* Contrast Fixes */
.page-slot-games p,
.page-slot-games li {
    color: #f0f0f0; /* Ensure text is visible on dark backgrounds */
}

.page-slot-games__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__dark-section h2, .page-slot-games__dark-bg h2 {
    color: #FFD700;
}

.page-slot-games__light-bg h2 {
    color: #FFD700;
}

.page-slot-games__btn-primary {
    background-color: #FFD700;
    color: #003366;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.page-slot-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #003366;
}