/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --card-background-light: rgba(255, 255, 255, 0.1);
    --card-text-light: #ffffff;
    --light-bg-section: #FFFFFF;
    --dark-bg-section: #1a1a2e; /* Inherited from body via shared, but can be overridden for sections */
    --medium-bg-card: #333344; /* Slightly darker than body for contrast */
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the page, assuming dark body background */
    background-color: var(--dark-bg-section);
}

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

/* --- General Section Styles --- */
.page-slot-games__hero-section,
.page-slot-games__why-choose-us,
.page-slot-games__categories,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
    padding: 60px 0;
}

.page-slot-games__section-title,
.page-slot-games__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-slot-games__section-description,
.page-slot-games__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-slot-games__light-bg {
    background-color: var(--light-bg-section);
    color: var(--text-on-light);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-description {
    color: var(--text-on-light);
}

.page-slot-games__dark-bg {
    background-color: var(--dark-bg-section);
    color: var(--text-on-dark);
}

/* --- Buttons --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: var(--register-btn-bg); /* Specific color for register/login */
    color: var(--register-login-font); /* Specific font color */
    border: 2px solid var(--register-btn-bg);
}

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

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

.page-slot-games__secondary-on-dark {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-slot-games__secondary-on-dark:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

.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;
    overflow: hidden;
}

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

/* --- Features Grid --- */
.page-slot-games__features-grid,
.page-slot-games__category-grid,
.page-slot-games__steps-grid,
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__feature-item,
.page-slot-games__category-item,
.page-slot-games__step-item,
.page-slot-games__promo-item {
    background-color: var(--card-background-light);
    color: var(--card-text-light);
    padding: 30px;
    border-radius: 12px;
    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;
    align-items: center;
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: var(--light-bg-section);
    color: var(--text-on-light);
    border: 1px solid #e0e0e0;
}

.page-slot-games__medium-bg {
    background-color: var(--medium-bg-card);
    color: var(--text-on-dark);
}

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

.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: cover; /* Ensure images maintain aspect ratio */
    border-radius: 8px;
}

.page-slot-games__feature-title,
.page-slot-games__category-title,
.page-slot-games__step-title,
.page-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit; /* Inherit from parent card */
}

.page-slot-games__feature-text,
.page-slot-games__category-text,
.page-slot-games__step-text,
.page-slot-games__promo-text {
    font-size: 1em;
    color: inherit; /* Inherit from parent card */
    flex-grow: 1;
}

/* --- How To Play Steps --- */
.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-slot-games__promo-item .page-slot-games__btn-secondary {
    margin-top: 20px;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-slot-games__dark-bg .page-slot-games__promo-item .page-slot-games__btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-slot-games__dark-bg .page-slot-games__promo-item .page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

.page-slot-games__faq-item {
    background-color: var(--light-bg-section);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--text-on-light);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: inherit;
}

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

.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-out, padding 0.3s ease-out;
    background-color: var(--light-bg-section);
    color: var(--text-on-light);
}

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

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

/* --- CTA Section --- */
.page-slot-games__cta-section {
    text-align: center;
    background-color: var(--primary-color); /* Using primary color as background for strong CTA */
    color: var(--secondary-color);
}

.page-slot-games__cta-title,
.page-slot-games__cta-description {
    color: var(--secondary-color);
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-slot-games__cta-section .page-slot-games__btn-primary {
    background-color: var(--register-btn-bg); /* Specific color */
    color: var(--register-login-font); /* Specific font color */
    border-color: var(--register-btn-bg);
}

.page-slot-games__cta-section .page-slot-games__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-slot-games__cta-section .page-slot-games__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-slot-games__cta-section .page-slot-games__btn-secondary:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__section-title,
    .page-slot-games__cta-title {
        font-size: 2em;
    }
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px);
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-slot-games__hero-content {
        padding: 20px 15px;
        max-width: 100%;
    }
    .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: 15px;
    }
    .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__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-slot-games__section-title,
    .page-slot-games__cta-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-description,
    .page-slot-games__cta-description {
        font-size: 0.95em;
    }

    /* Mobile image and container 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-image-wrapper {
        position: relative;
        height: 250px;
    }
    .page-slot-games__hero-image {
        position: absolute;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title,
    .page-slot-games__cta-title {
        font-size: 1.5em;
    }
    .page-slot-games__hero-section,
    .page-slot-games__why-choose-us,
    .page-slot-games__categories,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 40px 0;
    }
    .page-slot-games__feature-item,
    .page-slot-games__category-item,
    .page-slot-games__step-item,
    .page-slot-games__promo-item {
        padding: 20px;
    }
}