/* style/game-guides.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0d0d0d; /* Assuming shared.css defines --dark-bg which is dark */
    --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for the page, assuming dark body bg */
    background-color: var(--dark-bg, #0d0d0d); /* Fallback to dark if --dark-bg is not set */
}

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: var(--dark-bg, #0d0d0d);
    color: var(--text-light);
}

.page-game-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides__hero-description {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast with gold primary color */
    border: 2px solid var(--primary-color);
}

.page-game-guides__btn-primary:hover {
    background-color: #e6c200;
    color: var(--text-dark);
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.page-game-guides__section {
    padding: 80px 20px;
    background-color: var(--dark-bg, #0d0d0d);
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

/* Video Section */
.page-game-guides__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-game-guides__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-game-guides__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-game-guides__video-description {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

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

.page-game-guides__game-card {
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.page-game-guides__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-game-guides__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--text-light);
}

.page-game-guides__card-description {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 20px 15px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
    background-color: #a30000;
}

/* Account Management Section */
.page-game-guides__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-game-guides__step-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-game-guides__step-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-game-guides__step-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Tips and Strategies Section */
.page-game-guides__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-guides__list-item {
    background-color: var(--card-bg-dark);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-game-guides__list-item h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.page-game-guides__list-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Safety and Support Section */
.page-game-guides__dark-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: var(--text-light);
}

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

.page-game-guides__feature-card {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--text-light);
}

.page-game-guides__feature-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-game-guides__feature-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    background-color: var(--card-bg-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 20px 20px;
}

.page-game-guides__faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 3rem;
    }
    .page-game-guides__hero-description {
        font-size: 1.2rem;
    }
    .page-game-guides__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-game-guides__hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .page-game-guides__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-game-guides__section {
        padding: 60px 0;
    }
    .page-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-game-guides__text-block {
        font-size: 1rem;
    }
    .page-game-guides__game-grid,
    .page-game-guides__guide-steps,
    .page-game-guides__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card-title {
        font-size: 1.3rem;
    }
    .page-game-guides__card-description {
        font-size: 0.95rem;
    }
    .page-game-guides__step-title {
        font-size: 1.5rem;
    }
    .page-game-guides__list-item h3 {
        font-size: 1.4rem;
    }
    .page-game-guides__feature-title {
        font-size: 1.4rem;
    }
    .page-game-guides__faq-question h3 {
        font-size: 1.1rem;
    }
    
    /* Mobile image and video responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure images are not too small */
        min-height: 200px !important;
    }
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__container,
    .page-game-guides__game-card,
    .page-game-guides__step-item,
    .page-game-guides__feature-card,
    .page-game-guides__list-item,
    .page-game-guides__faq-item,
    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper,
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-game-guides__video-wrapper {
        padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, or keep 16:9 */
    }
    .page-game-guides__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-title {
        font-size: 1.8rem;
    }
    .page-game-guides__section-title {
        font-size: 1.6rem;
    }
    .page-game-guides__card-title {
        font-size: 1.2rem;
    }
    .page-game-guides__step-title {
        font-size: 1.3rem;
    }
    .page-game-guides__list-item h3 {
        font-size: 1.2rem;
    }
    .page-game-guides__feature-title {
        font-size: 1.2rem;
    }
    .page-game-guides__faq-question h3 {
        font-size: 1rem;
    }
}