/* style/slot-games.css */

/* Variables for consistency */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --border-color: #244D84;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --body-bg: #08162B; /* Inherited from shared.css, used for context */
}

.page-slot-games {
    color: var(--text-main); /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg); /* Ensure consistency if shared.css is not loaded */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-navy);
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-slot-games__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    z-index: 1;
}

.page-slot-games__main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-slot-games__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 2px;
}

/* Intro Section */
.page-slot-games__intro-section p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__intro-section p a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-slot-games__intro-section p a:hover {
    color: var(--gold-color);
}

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

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

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

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* Added for image style */
}

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

.page-slot-games__feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Games Showcase Section */
.page-slot-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-slot-games__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

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

.page-slot-games__game-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 15px 20px;
}

.page-slot-games__btn-play {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px 0;
    background: var(--button-gradient);
    color: var(--text-main);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(43, 115, 246, 0.4);
}

/* How to Play Section */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

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

.page-slot-games__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-slot-games__step-item p {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-slot-games__step-item p a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-slot-games__step-item p a:hover {
    color: var(--gold-color);
}

.page-slot-games__how-to-play-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section (details-based) */
.page-slot-games__faq-section {
    padding-bottom: 60px;
}

details.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
    background: rgba(var(--primary-color), 0.2); /* Lighter hover for dark card */
}
.page-slot-games__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-slot-games__faq-toggle {
    font-size: 28px; /* Larger for better visibility */
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 25px 25px;
    background: rgba(var(--primary-color), 0.1); /* Slightly lighter background for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 16px;
    text-align: justify;
}

/* Final CTA Section */
.page-slot-games__cta-final {
    text-align: center;
    padding-bottom: 80px;
}

.page-slot-games__cta-final p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Global image responsive */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 42px;
    }
    .page-slot-games__section-title {
        font-size: 32px;
    }
    .page-slot-games__hero-content {
        padding: 30px 20px;
    }
    .page-slot-games__container {
        padding: 30px 20px;
    }
    .page-slot-games__feature-title {
        font-size: 22px;
    }
    .page-slot-games__game-card h3 {
        font-size: 20px;
    }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-slot-games__main-title {
        font-size: 32px !important; /* Smaller font size for mobile H1 */
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-slot-games__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* General container and section padding */
    .page-slot-games__container {
        padding: 20px 15px;
    }
    .page-slot-games__section-title {
        font-size: 26px !important;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .page-slot-games__section-title::after {
        width: 60px;
        height: 3px;
    }

    /* Intro Section */
    .page-slot-games__intro-section p {
        font-size: 15px;
    }

    /* Features Section */
    .page-slot-games__features-grid {
        grid-template-columns: 1fr; /* Single column for features */
        gap: 20px;
    }
    .page-slot-games__feature-card {
        padding: 25px;
    }
    .page-slot-games__feature-title {
        font-size: 20px;
    }
    .page-slot-games__feature-icon {
        max-height: 150px;
    }

    /* Games Showcase Section */
    .page-slot-games__game-cards-grid {
        grid-template-columns: 1fr; /* Single column for game cards */
        gap: 20px;
    }
    .page-slot-games__game-thumbnail {
        height: 180px; /* Adjust height for mobile */
    }
    .page-slot-games__game-card h3 {
        font-size: 18px;
        margin: 15px 15px 8px;
    }
    .page-slot-games__game-description {
        font-size: 14px;
        margin: 0 15px 15px;
    }
    .page-slot-games__btn-play {
        padding: 10px 0;
        font-size: 15px;
    }

    /* How to Play Section */
    .page-slot-games__steps-list {
        margin: 20px 0;
    }
    .page-slot-games__step-item {
        padding: 20px 25px;
    }
    .page-slot-games__step-title {
        font-size: 20px;
    }
    .page-slot-games__step-item p {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-qtext {
        font-size: 16px;
    }
    .page-slot-games__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    /* Final CTA Section */
    .page-slot-games__cta-final p {
        font-size: 16px;
        padding: 0 15px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important; /* Ensure buttons wrap */
    }

    /* Universal image responsiveness for content area */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__games-showcase,
    .page-slot-games__how-to-play,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific section rules */
    }
}