/* style/game-guides.css */

/* Cấu hình màu sắc từ bảng màu tùy chỉnh */
:root {
    --bg-primary: #08160F; /* Nền chính */
    --bg-card: #11271B; /* Nền thẻ */
    --text-main: #F2FFF6; /* Văn bản chính */
    --text-secondary: #A7D9B8; /* Văn bản phụ */
    --btn-gradient-start: #2AD16F;
    --btn-gradient-end: #13994A;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-game-guides {
    background-color: var(--bg-primary); /* Nền chính của trang */
    color: var(--text-main); /* Văn bản chính màu sáng */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.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; /* Nhỏ gọn để tránh xung đột với padding-top của body */
    overflow: hidden;
    background-color: var(--deep-green);
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-game-guides__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-game-guides__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--btn-gradient-start);
    background-image: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--btn-gradient-start);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-game-guides__content-area p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-game-guides__content-area strong {
    color: var(--text-main);
}

.page-game-guides__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

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

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

.page-game-guides__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px;
    color: var(--gold-color);
    margin-bottom: 0;
}

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

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

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

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

.page-game-guides__card-link:hover {
    background-color: var(--btn-gradient-end);
}

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

.page-game-guides__strategy-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
}

.page-game-guides__strategy-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px 0;
    display: block;
}

.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: var(--deep-green);
}

.page-game-guides__faq-item details > summary {
    list-style: none;
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-game-guides__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-game-guides__cta-buttons--bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--divider-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-game-guides__hero-description {
        font-size: 1.05rem;
    }
    .page-game-guides__section-title {
        font-size: 2.2rem;
    }
    .page-game-guides__game-list,
    .page-game-guides__strategy-grid {
        gap: 20px;
    }
}

@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-image,
    .page-game-guides__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__hero-content,
    .page-game-guides__content-area,
    .page-game-guides__game-list,
    .page-game-guides__strategy-grid,
    .page-game-guides__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-game-guides__hero-description {
        font-size: 1rem;
    }
    .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: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-game-guides__content-area p {
        font-size: 1rem;
    }
    .page-game-guides__game-card,
    .page-game-guides__strategy-item,
    .page-game-guides__faq-item {
        padding: 20px;
    }
    .page-game-guides__card-title {
        font-size: 1.2rem;
    }
    .page-game-guides__strategy-title {
        font-size: 1.5rem;
    }
    .page-game-guides__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-game-guides__section-title {
        font-size: 1.8rem;
    }
    .page-game-guides__content-area {
        padding: 40px 10px;
    }
    .page-game-guides__game-list {
        grid-template-columns: 1fr;
    }
}