/* style/slot-games.css */

/* Custom properties for colors from the palette */
:root {
    --page-slot-games-primary-color: #11A84E;
    --page-slot-games-secondary-color: #22C768;
    --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-slot-games-card-bg: #11271B;
    --page-slot-games-background: #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;

    /* Text colors for light/dark backgrounds */
    --page-slot-games-dark-text: #333333; /* For light backgrounds */
    --page-slot-games-light-text: #ffffff; /* For dark backgrounds */
}

/* Base styles for the page content wrapper */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-slot-games-light-text); /* Default text color for dark body background */
    background-color: var(--page-slot-games-background); /* Explicitly set for main content area if needed, but body handles global */
}

/* Sections */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__advantages-section,
.page-slot-games__types-section,
.page-slot-games__guide-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Specific background and text colors for sections based on contrast rules */
.page-slot-games__dark-section {
    background-color: var(--page-slot-games-background);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Use white for light background sections */
    color: var(--page-slot-games-dark-text); /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__card-title,
.page-slot-games__light-bg .page-slot-games__card-description {
    color: var(--page-slot-games-dark-text); /* Ensure dark text on light background */
}

.page-slot-games__light-bg a {
    color: var(--page-slot-games-primary-color); /* Links in light sections */
}

/* Hero Section */
.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-bottom: 40px; /* Adjust as needed for spacing between image and content */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 20px; /* Space between image and text */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-slot-games-gold); /* Gold color for main title */
}

.page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-slot-games-text-secondary);
}

/* Container for content */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section titles */
.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--page-slot-games-gold);
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--page-slot-games-primary-color); /* Primary color for titles on light background */
}

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

.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;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none; /* Remove default button border */
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: var(--page-slot-games-text-main);
}

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

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

.page-slot-games__dark-section .page-slot-games__btn-secondary {
    border-color: var(--page-slot-games-gold);
    color: var(--page-slot-games-gold);
}

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--page-slot-games-primary-color);
    color: #ffffff;
}

/* Card styles */
.page-slot-games__card {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Recommended size for card images */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects width/height */
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-slot-games-text-main); /* Default for dark cards */
}

.page-slot-games__light-bg .page-slot-games__card-title {
    color: var(--page-slot-games-dark-text); /* Dark text for light cards */
}

.page-slot-games__card-description {
    font-size: 1em;
    color: var(--page-slot-games-text-secondary);
}

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

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

/* Guide List */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__guide-item {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--page-slot-games-text-secondary);
}

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

.page-slot-games__guide-item p {
    margin-bottom: 0;
}

.page-slot-games__guide-cta {
    margin-top: 50px;
}

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

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--page-slot-games-text-main);
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
    color: var(--page-slot-games-gold);
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-slot-games__faq-answer {
    padding: 0 30px 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--page-slot-games-text-secondary);
}

/* Ensure details summary marker is hidden */
.page-slot-games__faq-item summary {
    list-style: none;
}
.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}


/* General text colors for dark sections */
.page-slot-games__text-main {
    color: var(--page-slot-games-text-main);
}

.page-slot-games__text-secondary {
    color: var(--page-slot-games-text-secondary);
}

/* Links within content */
.page-slot-games p a,
.page-slot-games li a {
    color: var(--page-slot-games-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games p a:hover,
.page-slot-games li a:hover {
    color: var(--page-slot-games-glow);
    text-decoration: underline;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small decorative padding only */
    }

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

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-slot-games__description {
        font-size: 1em;
    }

    .page-slot-games__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-slot-games__cta-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: 12px 20px;
    }

    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
      display: flex;
      flex-direction: column; /* Ensure vertical stacking for buttons */
    }

    /* Images 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__advantages-grid,
    .page-slot-games__types-grid,
    .page-slot-games__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }
}