/* style/slot-games.css */

/* Variables */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Body background handled by shared.css */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--color-text-secondary);
}

.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body padding-top handled by shared.css */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--color-background);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    margin-top: -100px; /* Adjust to position content over the bottom part of the image */
    background: linear-gradient(to top, var(--color-background) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
    border-radius: 15px;
}

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

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.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;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

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

.page-slot-games__introduction-section,
.page-slot-games__game-showcase-section,
.page-slot-games__security-section,
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

.page-slot-games__features-section,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__mobile-section,
.page-slot-games__tips-section,
.page-slot-games__final-cta-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

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

.page-slot-games__feature-card,
.page-slot-games__game-card,
.page-slot-games__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__feature-icon,
.page-slot-games__game-thumbnail,
.page-slot-games__promo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

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

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promo-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-slot-games__guide-step {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-slot-games__guide-step-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__guide-step-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

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

.page-slot-games__security-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__security-item,
.page-slot-games__tips-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--color-text-main);
    line-height: 1.7;
}

.page-slot-games__security-item strong,
.page-slot-games__tips-item strong {
    color: var(--color-primary);
}

.page-slot-games__mobile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-slot-games__mobile-text {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-slot-games__mobile-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-primary);
}

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

.page-slot-games__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-divider);
    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(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-slot-games__final-cta-section {
    background-color: var(--color-card-bg);
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__cta-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-slot-games__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(87, 227, 141, 0.5);
    border: 3px solid var(--color-glow);
}

.page-slot-games__cta-text-block {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-slot-games__hero-content {
        margin-top: -60px;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__feature-title,
    .page-slot-games__game-title,
    .page-slot-games__promo-title {
        font-size: 1.3em;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-slot-games__mobile-content {
        flex-direction: column;
    }
    .page-slot-games__mobile-image-wrapper {
        order: -1; /* Image above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__guide-step {
        padding: 20px;
    }
    .page-slot-games__feature-icon,
    .page-slot-games__game-thumbnail,
    .page-slot-games__promo-thumbnail {
        height: 180px;
    }
    .page-slot-games__security-item,
    .page-slot-games__tips-item {
        font-size: 1em;
        padding: 15px;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__mobile-image-wrapper,
    .page-slot-games__cta-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__hero-image {
        height: auto;
    }
    .page-slot-games__introduction-section,
    .page-slot-games__features-section,
    .page-slot-games__game-showcase-section,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__mobile-section,
    .page-slot-games__security-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta-section {
        padding: 40px 0;
    }
    .page-slot-games__cta-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__hero-content {
        margin-top: -20px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 10vw, 2.2em);
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 0.9em;
        padding: 12px 15px;
    }
}