/* style/game-guides.css */

/* Biến màu sắc */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-color: #08160F;
    --card-background: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --default-dark-text: #333333;
    --default-light-text: #ffffff;
}

/* Reset và Typography cơ bản */
.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Sử dụng màu chữ chính cho toàn bộ trang */
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-game-guides h1, .page-game-guides h2, .page-game-guides h3, .page-game-guides h4, .page-game-guides h5, .page-game-guides h6 {
    color: var(--text-main-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-game-guides h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: bold;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.page-game-guides h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-game-guides p {
    margin-bottom: 15px;
}

.page-game-guides a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-game-guides a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Phần chung cho các container */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Các Section chung */
.page-game-guides__section-title {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-game-guides__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

/* Nền tối */
.page-game-guides__dark-bg {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-game-guides__dark-section {
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

/* Các nút CTA */
.page-game-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: var(--default-light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--default-light-text);
    transform: translateY(-2px);
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.page-game-guides__description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Types Section */
.page-game-guides__game-list {
    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-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
}

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

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

.page-game-guides__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 20px 5px;
    color: var(--secondary-color);
}

.page-game-guides__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-game-guides__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--default-light-text);
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* Tips and Strategy Section */
.page-game-guides__tips-strategy-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-main-color);
}

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

.page-game-guides__strategy-item {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

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

.page-game-guides__item-description {
    color: var(--text-secondary-color);
}

/* Video Section */
.page-game-guides__video-section {
    padding: 60px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    text-align: center;
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
}

.page-game-guides__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

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

.page-game-guides__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-main-color);
}

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

.page-game-guides__faq-item {
    background-color: var(--card-background);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--text-main-color);
}

.page-game-guides__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main-color);
    position: relative;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--secondary-color);
    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: 0.95rem;
    color: var(--text-secondary-color);
    border-top: 1px solid var(--divider-color);
    margin-top: -1px;
}

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

.page-game-guides__faq-support-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: var(--default-light-text);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-support-link:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* CTA Section cuối trang */
.page-game-guides__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-game-guides__hero-image-wrapper {
        max-height: 400px;
    }
}

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

    .page-game-guides h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-game-guides h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-game-guides h3 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

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

    .page-game-guides__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-game-guides__hero-image,
    .page-game-guides__card-image,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-game-guides__container,
    .page-game-guides__game-list,
    .page-game-guides__strategy-grid,
    .page-game-guides__faq-list,
    .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;
    }

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

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__game-list {
        grid-template-columns: 1fr;
    }

    .page-game-guides__strategy-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-game-guides__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-image-wrapper {
        max-height: 250px;
    }
    .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
        min-width: unset;
    }
}