/* style/slot-games.css */

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

    /* Responsive spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

.page-slot-games {
    font-family: 'Arial', sans-serif; /* Placeholder font */
    color: var(--text-main); /* Default text color for the main section */
    background-color: var(--background-dark); /* Main background for the page content */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    box-sizing: border-box;
}

.page-slot-games__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive H2 */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    font-weight: bold;
}

.page-slot-games__text-block {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.page-slot-games__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__text-block a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: var(--spacing-xl);
    background-color: var(--background-dark);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure image is responsive */
    margin-bottom: var(--spacing-lg); /* Space between image and content */
}

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

.page-slot-games__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size with clamp */
    color: var(--gold-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    font-weight: bold;
}

.page-slot-games__hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-main);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__hero-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__hero-description a:hover {
    color: var(--primary-color);
}

.page-slot-games__hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- 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: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background-color: var(--card-background);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__cta-center {
    text-align: center;
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* --- Section Styling (Dark/Light Backgrounds) --- */
.page-slot-games__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-slot-games__light-bg {
    background-color: var(--card-background); /* Using card background for light sections to maintain theme */
    color: var(--text-secondary);
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--gold-color);
}

.page-slot-games__light-bg .page-slot-games__text-block {
    color: var(--text-secondary);
}

/* --- Image Content --- */
.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-lg) auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* --- Card Styles --- */
.page-slot-games__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

.page-slot-games__card-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
    line-height: 1.3;
}

.page-slot-games__card-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    display: block;
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}


/* --- Features Grid --- */
.page-slot-games__features-grid,
.page-slot-games__game-type-grid,
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* --- How-To Steps --- */
.page-slot-games__step-card {
    align-items: center;
    text-align: center;
}

.page-slot-games__step-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(34, 199, 104, 0.1); /* Light transparent secondary color */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--primary-color);
}

/* --- Strategy List --- */
.page-slot-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.page-slot-games__strategy-list li {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__list-title {
    font-size: 20px;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.page-slot-games__list-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--spacing-md);
    font-size: 18px;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: var(--spacing-md);
    color: var(--primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-slot-games__faq-answer {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
    background-color: var(--card-background);
}

.page-slot-games__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        max-width: 768px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-type-grid,
    .page-slot-games__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .page-slot-games__hero-section {
        padding-bottom: var(--spacing-lg);
    }

    .page-slot-games__main-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .page-slot-games__hero-description {
        font-size: clamp(16px, 3vw, 20px);
        margin-bottom: var(--spacing-md);
    }

    .page-slot-games__hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

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

    .page-slot-games__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: var(--spacing-md);
    }

    .page-slot-games__text-block,
    .page-slot-games__card-text,
    .page-slot-games__list-text,
    .page-slot-games__faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-slot-games__card-title,
    .page-slot-games__list-title {
        font-size: 18px;
    }

    .page-slot-games__faq-question {
        font-size: 16px;
        padding: 15px var(--spacing-sm);
    }

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Card image specific height adjustment */
    .page-slot-games__card-image {
        height: auto !important; /* Allow auto height on mobile */
        min-height: 200px; /* Maintain minimum height */
    }

    /* Video responsiveness (if any, though none explicitly added yet) */
    .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: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        overflow: hidden !important;
    }
    
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Button containers for multiple buttons */
    .page-slot-games__hero-cta,
    .page-slot-games__cta-center {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Ensure content images are at least 200px wide */
.page-slot-games__image-content {
    min-width: 200px;
    min-height: 200px;
}

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

/* Color contrast enforcement (example, using existing classes) */
.page-slot-games__dark-bg {
    color: var(--text-main); /* Deep green background, light text */
}

.page-slot-games__light-bg {
    color: var(--text-secondary); /* Darker background, lighter secondary text */
}

/* Ensure links in dark sections are visible */
.page-slot-games__dark-bg a {
    color: var(--secondary-color);
}

.page-slot-games__dark-bg a:hover {
    color: var(--primary-color);
}

/* Ensure links in light sections are visible */
.page-slot-games__light-bg a {
    color: var(--primary-color);
}

.page-slot-games__light-bg a:hover {
    color: var(--secondary-color);
}

/* No CSS filter on images */
.page-slot-games img {
    filter: none !important;
}