/* style/slot-games.css */

/* Variables for colors */
:root {
    --g365-primary-color: #11A84E;
    --g365-secondary-color: #22C768;
    --g365-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --g365-card-bg: #11271B;
    --g365-background: #08160F;
    --g365-text-main: #F2FFF6;
    --g365-text-secondary: #A7D9B8;
    --g365-border: #2E7A4E;
    --g365-glow: #57E38D;
    --g365-gold: #F2C14E;
    --g365-divider: #1E3A2A;
    --g365-deep-green: #0A4B2C;
}

.page-slot-games {
    background-color: var(--g365-background);
    color: var(--g365-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
}

.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__games-showcase,
.page-slot-games__how-to-play,
.page-slot-games__promotions-section,
.page-slot-games__features-section,
.page-slot-games__faq-section,
.page-slot-games__call-to-action {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--g365-background);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-slot-games__main-title {
    color: var(--g365-gold);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-slot-games__hero-description {
    font-size: 1.15rem;
    color: var(--g365-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__section-title {
    color: var(--g365-gold);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--g365-text-main);
    text-align: justify;
}

/* Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: var(--g365-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--g365-gold);
    border: 2px solid var(--g365-gold);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background: var(--g365-gold);
    color: var(--g365-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-slot-games__btn-card {
    background: var(--g365-button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 15px;
    width: fit-content;
}

.page-slot-games__btn-card:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-1px);
}

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

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
    background-color: var(--g365-card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--g365-border);
    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;
    border: 1px solid var(--g365-divider);
}

.page-slot-games__card-title {
    font-size: 1.4rem;
    color: var(--g365-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__card-description {
    font-size: 0.95rem;
    color: var(--g365-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* How to Play */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__list-item {
    background-color: var(--g365-card-bg);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--g365-primary-color);
}

.page-slot-games__list-title {
    font-size: 1.3rem;
    color: var(--g365-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__list-item p {
    color: var(--g365-text-main);
    line-height: 1.6;
}

.page-slot-games__list-item a {
    color: var(--g365-gold);
    text-decoration: underline;
}

.page-slot-games__list-item a:hover {
    color: var(--g365-glow);
}

/* Features Section */
.page-slot-games__deep-green-bg {
    background-color: var(--g365-deep-green);
}

.page-slot-games__features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__feature-item {
    background-color: var(--g365-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--g365-border);
}

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

.page-slot-games__feature-title {
    font-size: 1.3rem;
    color: var(--g365-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__feature-item p {
    font-size: 0.95rem;
    color: var(--g365-text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--g365-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--g365-border);
}

.page-slot-games__faq-item summary {
    list-style: none;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--g365-text-main);
    cursor: pointer;
    background-color: var(--g365-card-bg);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: var(--g365-divider);
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--g365-gold);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--g365-text-secondary);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-slot-games__call-to-action .page-slot-games__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }

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

@media (max-width: 768px) {
    .page-slot-games__hero-section,
    .page-slot-games__intro-section,
    .page-slot-games__games-showcase,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions-section,
    .page-slot-games__features-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action {
        padding: 40px 0;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

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

    .page-slot-games__text-block {
        font-size: 0.95rem;
    }

    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__features-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-slot-games__card-image {
        max-height: 200px;
    }

    .page-slot-games__card-title {
        font-size: 1.2rem;
    }

    .page-slot-games__list-item {
        padding: 20px;
    }

    .page-slot-games__list-title {
        font-size: 1.15rem;
    }

    .page-slot-games__feature-item {
        padding: 25px;
    }

    .page-slot-games__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-slot-games__feature-title {
        font-size: 1.15rem;
    }

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

    /* Image specific mobile rules */
    .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,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__feature-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-section {
        padding-top: 10px !important;
    }

    /* Video specific mobile rules (if any video was present) */
    .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-section {
        padding-top: 10px !important;
    }
}

/* Ensure content images meet minimum size requirements */
.page-slot-games__card-image,
.page-slot-games__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* Overwrite specific padding for container in sections to avoid double padding */
.page-slot-games__intro-section .page-slot-games__container,
.page-slot-games__games-showcase .page-slot-games__container,
.page-slot-games__how-to-play .page-slot-games__container,
.page-slot-games__promotions-section .page-slot-games__container,
.page-slot-games__features-section .page-slot-games__container,
.page-slot-games__faq-section .page-slot-games__container,
.page-slot-games__call-to-action .page-slot-games__container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .page-slot-games__intro-section .page-slot-games__container,
    .page-slot-games__games-showcase .page-slot-games__container,
    .page-slot-games__how-to-play .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__features-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__call-to-action .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}