/* style/game-guides.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #FFFFFF;
    --btn-register-bg: #C30808;
    --btn-login-bg: #C30808;
    --btn-register-login-text: #FFFF00;
    --body-bg: #0a0a0a; /* Defined in shared.css, used for contrast calculation */
}

.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--body-bg); /* Ensure consistency, though usually handled by body in shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-game-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
}

.page-game-guides__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background-color: var(--btn-register-bg);
    color: var(--btn-register-login-text);
    border: 2px solid var(--btn-register-bg);
}

.page-game-guides__btn-primary:hover {
    background-color: #e02f2f;
    border-color: #e02f2f;
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--btn-register-login-text);
    border: 2px solid var(--btn-login-bg);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--btn-login-bg);
    color: var(--secondary-color);
}

/* General Section Styling */
.page-game-guides__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

/* Light Background Section */
.page-game-guides__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    padding: 60px 0;
}

.page-game-guides__light-bg .page-game-guides__section-title {
    color: var(--primary-color);
}

.page-game-guides__light-bg .page-game-guides__text-block,
.page-game-guides__light-bg .page-game-guides__card-description,
.page-game-guides__light-bg .page-game-guides__list p {
    color: var(--text-color-light-bg);
}

.page-game-guides__light-bg .page-game-guides__card-title {
    color: var(--primary-color);
}

.page-game-guides__light-bg .page-game-guides__card {
    background-color: var(--card-bg-light-section);
    color: var(--text-color-light-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Background Section */
.page-game-guides__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    padding: 60px 0;
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: var(--text-color-dark-bg);
}

.page-game-guides__dark-section .page-game-guides__text-block,
.page-game-guides__dark-section .page-game-guides__card-description,
.page-game-guides__dark-section .page-game-guides__list p {
    color: var(--text-color-dark-bg);
}

.page-game-guides__dark-section .page-game-guides__card-title {
    color: var(--text-color-dark-bg);
}

.page-game-guides__dark-section .page-game-guides__card {
    background-color: var(--card-bg-dark-section);
    color: var(--text-color-dark-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Feature Cards */
.page-game-guides__feature-cards,
.page-game-guides__grid-two-cols,
.page-game-guides__grid-three-cols {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

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

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

.page-game-guides__card {
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-guides__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-game-guides__card-description {
    font-size: 1em;
    line-height: 1.5;
}

.page-game-guides__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-game-guides__step-item {
    flex: 1 1 200px;
    background-color: var(--card-bg-dark-section);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__step-title {
    font-size: 1.5em;
    color: var(--text-color-dark-bg);
    margin-bottom: 10px;
}

.page-game-guides__step-description {
    font-size: 0.95em;
    color: var(--text-color-dark-bg);
}

.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.page-game-guides__list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-color-dark-bg);
}

.page-game-guides__list li p {
    margin: 0;
}

.page-game-guides__list li::before {
    content: '✓';
    color: var(--btn-register-login-text);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-game-guides__button-full-width {
    width: 100%;
    margin-top: 30px;
    display: block;
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg-dark-section);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question:hover {
    background-color: #005a2d; /* Slightly darker green on hover */
}

.page-game-guides__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-dark-bg);
}

.page-game-guides__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--btn-register-login-text);
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark-bg);
}

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

.page-game-guides__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Call to Action Section */
.page-game-guides__cta-section {
    text-align: center;
    padding: 80px 0;
}

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

/* Links within text */
.page-game-guides__text-block a,
.page-game-guides__faq-answer a {
    color: var(--btn-register-login-text); /* Yellow for links */
    text-decoration: underline;
}

.page-game-guides__text-block a:hover,
.page-game-guides__faq-answer a:hover {
    color: #ffd700; /* Slightly brighter yellow on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 2.8em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__grid-two-cols {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }
    .page-game-guides__hero-content {
        padding: 30px 20px;
    }
    .page-game-guides__hero-title {
        font-size: 2.2em;
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 5px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
    }
    .page-game-guides__feature-cards,
    .page-game-guides__grid-two-cols,
    .page-game-guides__grid-three-cols {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-image {
        height: 200px;
    }
    .page-game-guides__steps {
        flex-direction: column;
    }
    .page-game-guides__step-item {
        flex: none;
        width: 100%;
    }
    .page-game-guides__faq-question {
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px 20px;
    }
    .page-game-guides img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-game-guides__video-section {
        padding-top: var(--header-offset, 120px) !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__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}