/* style/slot-games.css */

/* Variables for consistency */
:root {
    --lucky8-gold: #FFD700;
    --lucky8-black: #000000;
    --lucky8-dark-bg: #0a0a0a;
    --lucky8-light-text: #ffffff;
    --lucky8-dark-text: #333333;
    --lucky8-border-color: rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--lucky8-light-text); /* Ensure text is light on dark background */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--lucky8-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-slot-games__section-title--light {
    color: var(--lucky8-gold);
}

.page-slot-games__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--lucky8-light-text);
}

.page-slot-games__section-text--light {
    color: var(--lucky8-light-text);
}

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

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: brightness(0.5); /* Darken background image for text readability */
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--lucky8-light-text);
}

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

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: var(--lucky8-light-text);
}

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: var(--lucky8-gold);
    color: var(--lucky8-black);
    border: 2px solid var(--lucky8-gold);
}

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

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

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

/* Card Styles */
.page-slot-games__card {
    background-color: var(--lucky8-black);
    border: 1px solid var(--lucky8-border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--lucky8-light-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

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

/* Advantages Section */
.page-slot-games__advantages-section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-slot-games__advantage-card {
    background-color: var(--lucky8-black);
    border: 1px solid var(--lucky8-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--lucky8-light-text);
}

.page-slot-games__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__advantage-title {
    font-size: 1.4em;
    color: var(--lucky8-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__advantage-description {
    font-size: 0.95em;
    color: var(--lucky8-light-text);
}

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

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

.page-slot-games__step-item {
    text-align: center;
    color: var(--lucky8-light-text);
}

.page-slot-games__step-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__step-title {
    font-size: 1.6em;
    color: var(--lucky8-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__step-description {
    font-size: 1em;
    color: var(--lucky8-light-text);
}

/* Strategy Section */
.page-slot-games__strategy-section {
    padding: 80px 20px;
    text-align: left;
}

.page-slot-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__strategy-item {
    background-color: var(--lucky8-black);
    border: 1px solid var(--lucky8-border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--lucky8-light-text);
    line-height: 1.5;
}

.page-slot-games__strategy-item strong {
    color: var(--lucky8-gold);
}

.page-slot-games__strategy-item a {
    color: var(--lucky8-gold);
    text-decoration: none;
}

.page-slot-games__strategy-item a:hover {
    text-decoration: underline;
}

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

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

.page-slot-games__promotion-card {
    background-color: var(--lucky8-black);
    border: 1px solid var(--lucky8-border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--lucky8-light-text);
}

.page-slot-games__promotion-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__promotion-title {
    font-size: 1.4em;
    color: var(--lucky8-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__promotion-description {
    font-size: 0.95em;
    color: var(--lucky8-light-text);
}

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

.page-slot-games__faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-slot-games__faq-item {
    background-color: var(--lucky8-black);
    border: 1px solid var(--lucky8-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.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); /* Changes + to x or similar */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--lucky8-light-text);
}

.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-bottom: 0;
    text-align: left;
}

.page-slot-games__faq-answer a {
    color: var(--lucky8-gold);
    text-decoration: none;
}

.page-slot-games__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-slot-games__call-to-action {
    padding: 80px 20px;
    text-align: center;
}

.page-slot-games__call-to-action .page-slot-games__cta-buttons {
    margin-top: 40px;
}

/* Video Section */
.page-slot-games__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-slot-games__video-container {
    max-width: 1000px; /* Max width for video */
    margin: 30px auto;
    background-color: var(--lucky8-black);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

/* 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 {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        min-height: 60vh;
        padding: 80px 15px 40px; /* Adjust padding for mobile */
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__hero-title {
        font-size: 2.5em;
    }
    .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 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__content-area,
    .page-slot-games__advantages-section,
    .page-slot-games__strategy-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action {
        padding: 40px 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__types-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__how-to-play-steps,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__card,
    .page-slot-games__advantage-card,
    .page-slot-games__promotion-card {
        padding: 20px;
    }
    .page-slot-games__card-image,
    .page-slot-games__advantage-icon,
    .page-slot-games__step-image,
    .page-slot-games__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-slot-games__video-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__strategy-list,
    .page-slot-games__faq-container {
        padding: 0;
    }
    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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