/* style/slot-games.css */

/* --- Base Styles for .page-slot-games --- */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for the page, light for dark body background */
    background-color: var(--background, #08160F); /* Ensure consistency if shared.css doesn't set it */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll for the main content area */
}

/* --- Section Headers --- */
.page-slot-games__section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.page-slot-games__section-title {
    font-size: clamp(24px, 4vw, 38px); /* H2 size, clamped */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-slot-games__section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary, #A7D9B8);
}

/* --- Card Base Style --- */
.page-slot-games__card {
    background: var(--card-bg, #11271B); /* Dark background for cards */
    border: 1px solid var(--border, #2E7A4E); /* Border color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main, #F2FFF6); /* Light text on dark card background */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* --- Buttons --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6); /* Light text for secondary button */
    border: 2px solid var(--deep-green, #0A4B2C); /* Deep green border */
}

.page-slot-games__btn-secondary:hover {
    background: var(--deep-green, #0A4B2C);
    color: #ffffff;
}

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

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

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

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-width: 1200px; /* Constrain max width for desktop */
    margin: 0 auto;
}

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

.page-slot-games__hero-title {
    font-size: clamp(32px, 5vw, 56px); /* Clamped H1 size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-slot-games__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

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

/* --- Video Section --- */
.page-slot-games__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-slot-games__video-container {
    width: 100%; /* Desktop width: 100% */
    max-width: 1000px; /* Max width for larger screens */
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.page-slot-games__video-link {
    display: block;
    line-height: 0; /* Remove extra space below video */
}

.page-slot-games__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* --- Features Section --- */
.page-slot-games__features-section {
    padding: 80px 20px;
}

.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__feature-card {
    text-align: center;
    padding: 40px;
}

.page-slot-games__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 250px; /* Max width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-slot-games__feature-title {
    font-size: 24px;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__feature-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

/* --- How-To-Play Section --- */
.page-slot-games__how-to-play-section {
    padding: 80px 20px;
    background-color: var(--deep-green, #0A4B2C); /* Slightly different background for visual separation */
}

.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__step-card {
    text-align: center;
    padding: 30px;
    position: relative;
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gold, #F2C14E); /* Gold color for step numbers */
    color: #000000; /* Black text on gold */
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid var(--glow, #57E38D);
}

.page-slot-games__step-title {
    font-size: 22px;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__step-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
    padding: 80px 20px;
}

.page-slot-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__promotion-card {
    text-align: center;
    padding: 0; /* No padding on card itself, image fills top */
    overflow: hidden;
}

.page-slot-games__promotion-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    min-height: 200px; /* Enforce min size for images */
}

.page-slot-games__promotion-card .page-slot-games__card-content {
    padding: 30px;
}

.page-slot-games__promotion-title {
    font-size: 22px;
    color: var(--text-main, #F2FFF6);
    margin: 20px 0 10px;
    font-weight: 700;
    padding: 0 20px; /* Padding for title within card */
}

.page-slot-games__promotion-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    padding: 0 20px; /* Padding for text within card */
}

/* --- Tips Section --- */
.page-slot-games__tips-section {
    padding: 80px 20px;
    background-color: var(--deep-green, #0A4B2C); /* Consistent background */
}

.page-slot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__tip-card {
    text-align: left;
    padding: 30px;
}

.page-slot-games__tip-title {
    font-size: 22px;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__tip-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding: 80px 20px;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__faq-item {
    margin-bottom: 20px;
    cursor: pointer;
    padding: 0; /* Remove padding from card itself, summary will have it */
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    background: var(--card-bg, #11271B); /* Use card background for summary */
    border-radius: 12px;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-slot-games__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-slot-games__faq-answer {
    padding: 20px 30px;
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    background: var(--card-bg, #11271B); /* Match summary background */
    border-top: 1px solid var(--divider, #1E3A2A);
    border-radius: 0 0 12px 12px;
    margin-top: -1px; /* Overlap border with summary */
}

.page-slot-games__faq-answer p {
    margin: 0;
}

/* --- Call to Action Section --- */
.page-slot-games__call-to-action-section {
    padding: 80px 20px;
    text-align: center;
}

.page-slot-games__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.page-slot-games__cta-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-slot-games__cta-description {
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

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

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    /* All images must be responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All video must be responsive */
    .page-slot-games video,
    .page-slot-games__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* All buttons must be responsive */
    .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-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }

    /* Containers for responsive elements */
    .page-slot-games__hero-section,
    .page-slot-games__video-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action-section,
    .page-slot-games__hero-content,
    .page-slot-games__video-container,
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promotions-grid,
    .page-slot-games__tips-grid,
    .page-slot-games__faq-list,
    .page-slot-games__cta-content,
    .page-slot-games__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    
    /* Specific overrides for video section padding */
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-slot-games__hero-title {
        font-size: 32px;
    }

    .page-slot-games__hero-description {
        font-size: 18px;
    }

    .page-slot-games__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-slot-games__section-title {
        font-size: 28px;
    }

    .page-slot-games__feature-card,
    .page-slot-games__step-card,
    .page-slot-games__promotion-card,
    .page-slot-games__tip-card,
    .page-slot-games__cta-content {
        padding: 25px;
    }

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

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