/* style/slot-games.css */

/* Custom Colors */
:root {
    --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-slot-games-card-bg: #11271B;
    --page-slot-games-bg: #08160F;
    --page-slot-games-text-main: #F2FFF6;
    --page-slot-games-text-secondary: #A7D9B8;
    --page-slot-games-border: #2E7A4E;
    --page-slot-games-glow: #57E38D;
    --page-slot-games-gold: #F2C14E;
    --page-slot-games-divider: #1E3A2A;
    --page-slot-games-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-slot-games-text-main); /* Main text color for dark background */
    background-color: var(--page-slot-games-bg); /* Page specific background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above the image but not overlapping */
    z-index: 2; /* Ensure text is above any potential background elements */
    padding: 0 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--page-slot-games-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--page-slot-games-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-btn-gradient);
    color: var(--page-slot-games-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

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

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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

/* Section Titles */
.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-slot-games-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

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

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

.page-slot-games__card {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-slot-games-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.3);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--page-slot-games-gold);
    margin-bottom: 15px;
}

.page-slot-games__card-description {
    font-size: 0.95em;
    color: var(--page-slot-games-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Advantages Section */
.page-slot-games__feature-item {
    background-color: var(--page-slot-games-deep-green);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__feature-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--page-slot-games-gold);
    margin-bottom: 10px;
}

/* Guide Section */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__guide-list li {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-slot-games__guide-step-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-slot-games-gold);
    margin-bottom: 5px;
}

/* Promotions Section */
.page-slot-games__promo-grid .page-slot-games__card-image {
    height: 180px;
}

/* Tips Section */
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__tips-list li {
    background-color: var(--page-slot-games-deep-green);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__tip-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-slot-games-gold);
    margin-bottom: 10px;
}

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

.page-slot-games__faq-item {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    color: var(--page-slot-games-text-main);
}

.page-slot-games__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--page-slot-games-gold);
    background-color: var(--page-slot-games-deep-green);
    border-bottom: 1px solid var(--page-slot-games-divider);
}

.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;
    width: 100%;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: 20px 25px;
    font-size: 1em;
    color: var(--page-slot-games-text-secondary);
    border-top: 1px solid var(--page-slot-games-divider);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility classes */
.page-slot-games__mt-40 {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        max-height: 550px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }
    .page-slot-games__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }
    .page-slot-games__hero-content {
        padding: 0 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .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;
        margin: 0 auto; /* Center buttons */
    }
    .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;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
    }
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__card-image {
        height: auto;
        min-height: 200px; /* Ensure min size */
    }
    .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__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-image {
        max-height: 250px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__card-title {
        font-size: 1.2em;
    }
    .page-slot-games__feature-title,
    .page-slot-games__guide-step-title,
    .page-slot-games__tip-title {
        font-size: 1.1em;
    }
}