/* style/slots.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Aux */
    --color-background-card: #11271B; /* Card BG */
    --color-background-main: #08160F; /* Background */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-slots {
    background-color: var(--color-background-main); /* Body background is dark, so content text should be light */
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-slots h1,
.page-slots h2,
.page-slots h3,
.page-slots h4,
.page-slots h5,
.page-slots h6 {
    color: var(--color-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-slots h1 {
    font-weight: bold;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-bottom: 20px;
}

.page-slots__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em); /* Responsive font size for titles */
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-gold); /* Using gold for section titles for emphasis */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slots__text-block {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-slots__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block above text block */
    align-items: center;
    padding-bottom: 60px;
    background-color: var(--color-deep-green); /* Darker background for hero */
    overflow: hidden; /* Ensure no overflow */
}

.page-slots__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-slots__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-slots__hero-content {
    position: relative; /* Relative to flow */
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-main);
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the dimmed image area */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--color-background-main) 100%);
    border-radius: 15px;
    padding-top: 10px; /* Small top padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slots__main-title {
    color: var(--color-gold);
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
    margin-top: 0;
    margin-bottom: 15px;
}

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

.page-slots__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-slots__btn-primary,
.page-slots__btn-secondary,
.page-slots__btn-link {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slots__btn-primary {
    background: var(--gradient-button);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

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

.page-slots__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

.page-slots__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.5);
}

.page-slots__btn-link {
    background: none;
    border: none;
    color: var(--color-gold);
    text-decoration: underline;
    padding: 5px 10px;
    font-size: 1em;
}

.page-slots__btn-link:hover {
    color: var(--color-primary);
}


/* Section styles */
.page-slots__introduction-section,
.page-slots__features-section,
.page-slots__popular-games-section,
.page-slots__guide-section,
.page-slots__tips-section,
.page-slots__faq-section,
.page-slots__cta-section {
    padding: 80px 0;
    position: relative;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-slots__dark-section {
    background-color: var(--color-deep-green);
}

/* Grid Layout for Features */
.page-slots__grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slots__card {
    background-color: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
}

.page-slots__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slots__card-title {
    color: var(--color-gold);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slots__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

/* Popular Games Section */
.page-slots__game-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slots__game-item {
    background-color: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-slots__game-image {
    width: 100%;
    height: 250px; /* Larger image for game showcase */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-slots__game-name {
    color: var(--color-gold);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slots__game-description {
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

.page-slots__cta-buttons--center {
    margin-top: 50px;
    text-align: center;
}

/* Guide Section */
.page-slots__guide-list,
.page-slots__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slots__guide-item,
.page-slots__tip-item {
    background-color: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    position: relative;
    padding-left: 80px; /* For step number */
}

.page-slots__guide-item:last-child,
.page-slots__tip-item:last-child {
    margin-bottom: 0;
}

.page-slots__guide-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-slots__guide-list {
    counter-reset: step-counter;
}

.page-slots__guide-step-title,
.page-slots__tip-title {
    color: var(--color-gold);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slots__guide-step-description,
.page-slots__tip-description {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

/* FAQ Section */
.page-slots__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slots__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.page-slots__faq-question:hover {
    background-color: var(--color-divider);
}

.page-slots__faq-item[open] .page-slots__faq-question {
    border-bottom: 1px solid var(--color-border);
}

.page-slots__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-slots__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-text-main);
}

.page-slots__faq-answer {
    padding: 20px 25px;
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

.page-slots__faq-item[open] .page-slots__faq-answer {
    animation: fadein 0.3s ease-in-out;
}

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

/* CTA Section */
.page-slots__cta-section {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-deep-green) 0%, var(--color-primary) 100%);
}

.page-slots__cta-content {
    max-width: 900px;
}

.page-slots__cta-section .page-slots__section-title {
    color: var(--color-text-main);
    text-shadow: none;
    margin-bottom: 20px;
}

.page-slots__cta-section .page-slots__text-block {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Images within content */
.page-slots__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slots__hero-content {
        margin-top: -50px;
    }
    .page-slots__section-title {
        font-size: clamp(1.6em, 3.5vw, 2em);
    }
    .page-slots__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slots__btn-primary,
    .page-slots__btn-secondary {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-slots__grid-3-col {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-slots__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 40px;
    }
    .page-slots__hero-content {
        padding: 20px 15px;
        margin-top: -30px;
    }
    .page-slots__main-title {
        font-size: clamp(1.5em, 5vw, 2em);
        padding-bottom: 10px;
    }
    .page-slots__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-slots__section-title {
        font-size: clamp(1.5em, 4.5vw, 1.8em);
        margin-bottom: 20px;
    }
    .page-slots__text-block {
        font-size: 0.9em;
    }

    /* All images must be responsive */
    .page-slots img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image containers must be responsive */
    .page-slots__section,
    .page-slots__card,
    .page-slots__container,
    .page-slots__hero-image-wrapper,
    .page-slots__game-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slots__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-slots__hero-image {
        min-width: unset;
        min-height: unset;
    }

    /* All buttons must be responsive */
    .page-slots__cta-button,
    .page-slots__btn-primary,
    .page-slots__btn-secondary,
    .page-slots a[class*="button"],
    .page-slots 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-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }
    .page-slots__cta-buttons,
    .page-slots__button-group,
    .page-slots__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Spacing between wrapped buttons */
        flex-direction: column; /* Stack buttons vertically */
    }
    .page-slots__cta-buttons {
        flex-direction: column; /* Ensure vertical stacking for mobile CTA */
    }

    .page-slots__grid-3-col {
        grid-template-columns: 1fr;
    }
    .page-slots__card,
    .page-slots__game-item,
    .page-slots__guide-item,
    .page-slots__tip-item,
    .page-slots__faq-item {
        margin-left: 15px;
        margin-right: 15px;
        width: auto; /* Allow natural width within padding */
    }
    .page-slots__guide-item {
        padding-left: 65px; /* Adjust for smaller screens */
    }
    .page-slots__guide-item::before {
        left: 15px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    .page-slots__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-slots__faq-answer {
        padding: 15px 20px;
    }
    .page-slots__introduction-section,
    .page-slots__features-section,
    .page-slots__popular-games-section,
    .page-slots__guide-section,
    .page-slots__tips-section,
.page-slots__faq-section,
    .page-slots__cta-section {
        padding: 40px 0;
    }
}