/* style/games.css */

/* Biến CSS cho màu sắc */
:root {
    --page-games-primary-color: #0A192F; /* Deep Navy Blue */
    --page-games-accent-color: #FFD700;  /* Gold */
    --page-games-text-light: #F0F0F0;
    --page-games-text-dark: #1A1A1A;
    --page-games-background-dark: #0A192F;
    --page-games-background-light: #1A2A40; /* Slightly lighter dark blue for contrast */
    --page-games-button-hover-primary: #1F304B;
    --page-games-button-hover-secondary: #E0B800;
}

.page-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-games-text-light);
    background-color: var(--page-games-background-dark);
    line-height: 1.6;
}

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

.page-games__hero-section {
    background: linear-gradient(135deg, var(--page-games-primary-color) 0%, #1A2A40 70%, var(--page-games-accent-color) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,gaming,tech,background]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-games__hero-title {
    font-size: 3.5em;
    color: var(--page-games-accent-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-games__hero-description {
    font-size: 1.3em;
    color: var(--page-games-text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
}

.page-games__highlight {
    color: var(--page-games-accent-color);
    font-weight: bold;
}

.page-games__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.page-games__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
}

.page-games__button--primary {
    background-color: var(--page-games-accent-color);
    color: var(--page-games-primary-color);
    border: 2px solid var(--page-games-accent-color);
}

.page-games__button--primary:hover {
    background-color: var(--page-games-button-hover-secondary);
    transform: translateY(-3px);
}

.page-games__button--secondary {
    background-color: transparent;
    color: var(--page-games-accent-color);
    border: 2px solid var(--page-games-accent-color);
}

.page-games__button--secondary:hover {
    background-color: var(--page-games-accent-color);
    color: var(--page-games-primary-color);
    transform: translateY(-3px);
}

.page-games__button--tertiary {
    background-color: var(--page-games-background-light);
    color: var(--page-games-accent-color);
    border: 1px solid var(--page-games-accent-color);
    padding: 10px 20px;
    font-size: 1em;
}

.page-games__button--tertiary:hover {
    background-color: var(--page-games-accent-color);
    color: var(--page-games-primary-color);
    transform: translateY(-2px);
}

.page-games__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-games__button--center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

.page-games__intro-section, .page-games__categories-section, .page-games__why-choose-hi88, .page-games__detail-pages-section, .page-games__final-cta {
    padding: 60px 0;
    background-color: var(--page-games-background-dark);
}

.page-games__section-title {
    font-size: 2.5em;
    color: var(--page-games-accent-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--page-games-accent-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

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

.page-games__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-games__image--full-width {
    width: 100%;
    margin-top: 30px;
}

.page-games__game-category {
    background-color: var(--page-games-background-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.page-games__category-title {
    font-size: 2em;
    color: var(--page-games-accent-color);
    margin-bottom: 15px;
    width: 100%;
}

.page-games__image--category {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 0;
}

.page-games__category-description {
    font-size: 1em;
    text-align: justify;
    flex-grow: 1;
}

.page-games__why-choose-hi88 {
    background-color: var(--page-games-primary-color);
}

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

.page-games__feature-item {
    background-color: var(--page-games-background-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-games__feature-item:hover {
    transform: translateY(-10px);
}

.page-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-games-accent-color));
}

.page-games__feature-title {
    font-size: 1.5em;
    color: var(--page-games-accent-color);
    margin-bottom: 10px;
}

.page-games__feature-description {
    font-size: 0.95em;
    color: var(--page-games-text-light);
}

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

.page-games__detail-item {
    background-color: var(--page-games-background-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-games__detail-title {
    font-size: 1.3em;
    color: var(--page-games-accent-color);
    margin-bottom: 10px;
}

.page-games__detail-title a {
    color: var(--page-games-accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-games__detail-title a:hover {
    color: var(--page-games-button-hover-secondary);
    text-decoration: underline;
}

.page-games__detail-description {
    font-size: 0.9em;
    color: var(--page-games-text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-games__final-cta {
    background-color: var(--page-games-background-dark);
    text-align: center;
    padding-bottom: 80px;
}

.page-games__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-games__hero-title {
        font-size: 2.5em;
    }
    .page-games__hero-description {
        font-size: 1.1em;
    }
    .page-games__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-games__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-games__section-title {
        font-size: 2em;
    }
    .page-games__category-title {
        font-size: 1.8em;
    }
    .page-games__features-grid {
        grid-template-columns: 1fr;
    }
    .page-games__detail-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-games__hero-title {
        font-size: 2em;
    }
    .page-games__hero-description {
        font-size: 1em;
    }
    .page-games__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-games__section-title {
        font-size: 1.8em;
    }
    .page-games__category-title {
        font-size: 1.5em;
    }
    .page-games__feature-icon {
        width: 60px;
        height: 60px;
    }
    .page-games__detail-title {
        font-size: 1.1em;
    }
}