/* style/slot-games.css */

/* Custom Colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-light: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --white-text: #FFFFFF;
}

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for light background */
    background-color: var(--background-light); /* Assuming shared.css body background is light */
    line-height: 1.6;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background: var(--primary-color); /* Fallback for dark-bg, but hero-image should be on top */
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white-text); /* White text on dark background */
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white-text);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--white-text);
}

/* Call to Action Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--white-text);
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-text);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* General Sections */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

.page-slot-games__section-title--white {
    color: var(--white-text);
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

.page-slot-games__text-block--white {
    color: var(--white-text);
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Use white background for contrast */
}

.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-slot-games__game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__game-card h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: var(--text-main);
}

.page-slot-games__game-card p {
    font-size: 1em;
    color: var(--text-main);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-slot-games__btn-text {
    display: flex;
    align-items: center;
    padding: 10px 20px 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-slot-games__btn-text:hover {
    color: var(--text-black);
}

.page-slot-games__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-slot-games__btn-text:hover .page-slot-games__arrow {
    transform: translateX(5px);
}

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


/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white-text);
}

.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-slot-games__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on blue */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-slot-games__feature-icon {
    width: 100px; /* Adjusted icon size */
    height: auto;
    margin-bottom: 20px;
    /* filter: brightness(1.2); */ /* No filter to change color */
    object-fit: contain;
    max-width: 100px; /* Ensure icon doesn't exceed 100px in width */
    min-width: 200px; /* Minimum size requirement for images */
    min-height: 200px; /* Minimum size requirement for images */
}

.page-slot-games__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--white-text);
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.page-slot-games__step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-slot-games__step-description {
    font-size: 1em;
    color: var(--text-main);
}

.page-slot-games__image-how-to-play {
    text-align: center;
    margin-bottom: 50px;
}

.page-slot-games__main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}


/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-slot-games__faq-item {
    background: var(--background-light); /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.7;
    animation: fadeIn 0.3s ease-out;
}

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

/* Call to Action Section (Bottom) */
.page-slot-games__call-to-action {
    padding: 80px 0;
    background: var(--primary-color);
    text-align: center;
    color: var(--white-text);
}

.page-slot-games__cta-content {
    max-width: 800px;
}

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

@media (max-width: 768px) {
    /* General mobile padding */
    .page-slot-games__container {
        padding: 0 15px !important;
    }

    /* Hero section */
    .page-slot-games__hero-section {
        padding: 10px 0 40px 0 !important; /* body padding-top is handled by shared.css */
    }
    .page-slot-games__hero-image {
        max-height: 300px !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
    }
    .page-slot-games__hero-description {
        font-size: 1em !important;
    }

    /* Buttons responsive */
    .page-slot-games__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px !important; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section titles and text */
    .page-slot-games__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px !important;
    }
    .page-slot-games__text-block {
        font-size: 1em !important;
        text-align: left !important;
    }

    /* Image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-card,
    .page-slot-games__image-how-to-play,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content within sections, already applied to .page-slot-games__container */
    }
    .page-slot-games__game-card .page-slot-games__card-image {
        height: auto !important; /* Allow image to scale with aspect ratio */
        min-height: 200px !important; /* Maintain minimum size */
    }

    /* Feature icons minimum size check */
    .page-slot-games__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important; /* Make it take full width of its container for scaling */
        max-width: 250px !important; /* But limit its max width */
        height: auto !important;
        object-fit: contain !important;
    }

    /* FAQ section */
    .page-slot-games__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px !important;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: clamp(1.5em, 8vw, 2em) !important;
    }
    .page-slot-games__section-title {
        font-size: 1.5em !important;
    }
    .page-slot-games__hero-description {
        font-size: 0.9em !important;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 1em !important;
        padding: 12px 20px !important;
    }
    .page-slot-games__game-card h3 {
        font-size: 1.3em !important;
    }
    .page-slot-games__feature-title {
        font-size: 1.3em !important;
    }
    .page-slot-games__step-title {
        font-size: 1.2em !important;
    }
}

/* Color Contrast Enforcement */
.page-slot-games__dark-bg {
  background: var(--primary-color);
  color: var(--white-text); /* Enforce white text on primary color background */
}

.page-slot-games__light-bg {
  background: var(--background-light);
  color: var(--text-main); /* Enforce dark text on light background */
}

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

.page-slot-games p,
.page-slot-games li {
  color: var(--text-main); /* Default text color for paragraphs and list items */
}

/* Specific overrides for text on dark backgrounds */
.page-slot-games__dark-bg .page-slot-games__text-block,
.page-slot-games__dark-bg .page-slot-games__feature-description {
    color: rgba(255, 255, 255, 0.9);
}
.page-slot-games__dark-bg .page-slot-games__feature-title {
    color: var(--white-text);
}