/* style/game-guides.css */

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

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--suncity888-text-main); /* Default text color for the page */
    background-color: var(--suncity888-background);
}

.page-game-guides__dark-bg {
    background-color: var(--suncity888-background);
    color: var(--suncity888-text-main);
}

.page-game-guides__light-bg {
    background-color: #f8f9fa; /* A very light background for contrast */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    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-game-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--suncity888-text-main);
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for text */
    border-radius: 10px;
}

.page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--suncity888-gold);
}

.page-game-guides__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--suncity888-text-main);
}

/* General Section Styles */
.page-game-guides__section {
    padding: 60px 20px;
    text-align: center;
}

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--suncity888-gold);
}

.page-game-guides__paragraph {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section for contrast */
}

.page-game-guides__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-game-guides__why-choose-section .page-game-guides__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-game-guides__why-choose-section .page-game-guides__list-item {
    background-color: var(--suncity888-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--suncity888-border);
}

.page-game-guides__why-choose-section .page-game-guides__list-item-title {
    font-size: 1.5rem;
    color: var(--suncity888-gold);
    margin-bottom: 15px;
}

.page-game-guides__why-choose-section .page-game-guides__list-item-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--suncity888-text-secondary);
}

/* Categories Section */
.page-game-guides__categories-section .page-game-guides__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-game-guides__card {
    background-color: #ffffff; /* Light background for cards in light section */
    color: #333333; /* Dark text for light card background */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.3rem;
    color: var(--suncity888-primary);
    margin: 15px;
    font-weight: bold;
}

.page-game-guides__card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 15px 15px;
    color: #555555;
}

.page-game-guides__card-link {
    display: inline-block;
    background-color: var(--suncity888-primary);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 15px 15px;
    transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
    background-color: var(--suncity888-secondary);
}

/* Tips Section */
.page-game-guides__tips-section .page-game-guides__grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    align-items: center;
}

.page-game-guides__tips-section .page-game-guides__subtitle {
    font-size: 1.4rem;
    color: var(--suncity888-gold);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-guides__tips-section .page-game-guides__paragraph {
    color: var(--suncity888-text-secondary);
}

.page-game-guides__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__image-content--rounded {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-game-guides__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-game-guides__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    color: #333333; /* Dark text for light background */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-item[open] {
    background-color: #f0f0f0;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #333333;
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-game-guides__faq-answer .page-game-guides__paragraph {
    color: #555555;
}

.page-game-guides__link-button {
    display: inline-block;
    background-color: var(--suncity888-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.page-game-guides__link-button:hover {
    background-color: var(--suncity888-secondary);
}

/* CTA Section */
.page-game-guides__cta-section {
    padding: 80px 20px;
    background-color: var(--suncity888-deep-green);
    color: var(--suncity888-text-main);
}

.page-game-guides__cta-content {
    max-width: 800px;
}

.page-game-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Buttons */
.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-game-guides__cta-button--primary {
    background: var(--suncity888-button-gradient);
    color: var(--suncity888-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-button--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-game-guides__cta-button--secondary {
    background-color: transparent;
    color: var(--suncity888-gold);
    border: 2px solid var(--suncity888-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-button--secondary:hover {
    background-color: var(--suncity888-gold);
    color: var(--suncity888-background);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        padding: 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }

    .page-game-guides__tips-section .page-game-guides__grid-two-col {
        grid-template-columns: 1fr;
    }
}

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

    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-game-guides__hero-content {
        padding: 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .page-game-guides__intro-text {
        font-size: 1rem;
    }

    .page-game-guides__section {
        padding: 40px 15px;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.4rem, 5.5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-game-guides__paragraph,
    .page-game-guides__list-item-text,
    .page-game-guides__card-text,
    .page-game-guides__faq-answer p {
        font-size: 0.95rem;
    }

    .page-game-guides__why-choose-section .page-game-guides__list-item {
        padding: 25px;
    }

    .page-game-guides__why-choose-section .page-game-guides__list-item-title {
        font-size: 1.3rem;
    }

    .page-game-guides__categories-section .page-game-guides__grid {
        grid-template-columns: 1fr;
    }

    .page-game-guides__card {
        margin: 0 auto;
        max-width: 400px;
    }

    .page-game-guides__tips-section .page-game-guides__grid-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-game-guides__image-content,
    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-section,
    .page-game-guides__cta-section,
    .page-game-guides__cta-buttons,
    .page-game-guides__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-guides__cta-button,
    .page-game-guides a[class*="button"],
    .page-game-guides 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;
        padding-right: 15px;
    }

    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }

    .page-game-guides__section {
        padding: 30px 10px;
    }

    .page-game-guides__cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
}