/* style/game-guides.css */

/* General styles for the game guides page */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color, #0D0E12); /* Default to dark background if var not set */
    color: var(--text-main, #FFF3E6); /* Main text color for dark background */
    line-height: 1.6;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    background-color: #0D0E12; /* Ensure dark background for hero */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio for hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__hero-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    color: #FFF3E6; /* Ensure light text on dark background */
}

.page-game-guides__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FF8C1A; /* Brand color for H1 */
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size for H1 */
}

.page-game-guides__intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF3E6;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For desktop, but essential for mobile */
    box-sizing: border-box; /* For desktop, but essential for mobile */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: none;
}

.page-game-guides__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: #FF8C1A;
    border: 2px solid #FF8C1A;
}

.page-game-guides__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-game-guides__section {
    padding: 60px 20px;
    background-color: #0D0E12; /* Consistent dark background */
}

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Container itself shouldn't have horizontal padding if sections already have it */
    box-sizing: border-box;
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: #FF8C1A;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-game-guides__text-block {
    font-size: 1.1rem;
    color: #FFF3E6;
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-guides__text-block strong {
    color: #FFA53A;
}

.page-game-guides__text-block a {
    color: #FFA53A;
    text-decoration: underline;
}

/* Game Categories Grid */
.page-game-guides__game-categories {
    background-color: #0D0E12;
}

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

.page-game-guides__grid--two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.page-game-guides__card {
    background-color: #17191F; /* Card Background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF3E6; /* Text Main */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF8C1A;
    padding: 20px 20px 10px;
    flex-grow: 1; /* Ensure title takes available space */
}

.page-game-guides__card-title a {
    color: #FF8C1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: #FFA53A;
}

.page-game-guides__card-description {
    font-size: 1rem;
    color: #FFF3E6;
    padding: 0 20px 15px;
    flex-grow: 1; /* Ensure description takes available space */
}

.page-game-guides__btn-text {
    display: inline-flex;
    align-items: center;
    color: #FFA53A;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px 20px;
    transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
    color: #FFB04D; /* Glow color on hover */
}

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

.page-game-guides__btn-text:hover .page-game-guides__arrow {
    transform: translateX(5px);
}

/* Advanced Tips Section */
.page-game-guides__advanced-tips {
    background-color: #0D0E12;
}

/* FAQ Section */
.page-game-guides__faq-section {
    background-color: #0D0E12;
    padding-bottom: 80px;
}

.page-game-guides__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-guides__faq-item {
    background-color: #17191F; /* Card Background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #FFF3E6;
}

.page-game-guides__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #FF8C1A;
    outline: none;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #FFA53A;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-game-guides__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #FFF3E6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-answer p {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-game-guides__call-to-action {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0D0E12 0%, #17191F 100%); /* Subtle gradient for CTA */
}

.page-game-guides__dark-section {
    background: #FF8C1A;
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__text-block a {
    color: #FFA53A;
}

/* Responsive Styles for Desktop/Tablet */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
    }

    .page-game-guides__section-title {
        font-size: 2rem;
    }

    .page-game-guides__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-game-guides__grid--two-columns {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .page-game-guides__card-image {
        height: 220px;
    }
}

/* Responsive Styles for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px !important;
    }

    .page-game-guides__hero-image-wrapper {
        max-height: 400px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important; /* Smaller on mobile */
        margin-bottom: 15px;
    }

    .page-game-guides__intro-text {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-game-guides__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .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 !important;
        padding-right: 15px !important;
        font-size: 0.95rem !important;
    }

    /* 其他内容模块 */
    .page-game-guides__section {
        padding: 40px 15px !important;
    }

    .page-game-guides__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px;
    }

    .page-game-guides__text-block {
        font-size: 0.95rem;
        text-align: left;
    }

    /* 产品展示图区域 (General Grid for Game Categories) */
    .page-game-guides__grid {
        grid-template-columns: 1fr !important; /* Single column for cards */
        gap: 20px !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-guides__grid--two-columns {
        grid-template-columns: 1fr !important; /* Single column for tips */
    }

    .page-game-guides__card {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__card-image {
        height: 200px !important; /* Adjust card image height */
        max-width: 100% !important;
        width: 100% !important;
        object-fit: cover;
        min-height: 200px !important; /* Ensure min height */
    }

    .page-game-guides__card-title {
        font-size: 1.3rem !important;
        padding: 15px 15px 5px !important;
    }

    .page-game-guides__card-description {
        font-size: 0.9rem !important;
        padding: 0 15px 10px !important;
    }

    .page-game-guides__btn-text {
        padding: 5px 15px 15px !important;
        font-size: 0.9rem !important;
    }

    /* 通用图片与容器 */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Enforce minimum size for all content images */
    }

    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-game-guides__faq-item summary {
        font-size: 1rem !important;
        padding: 15px !important;
    }

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

    .page-game-guides__faq-list {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}