/* style/index.css */

/* Biến CSS cho màu sắc */
:root {
    --page-index-primary-color: #007bff;
    --page-index-secondary-color: #ffc107;
    --page-index-dark-text: #333;
    --page-index-light-text: #fff;
    --page-index-light-bg: #f8f9fa;
    --page-index-dark-bg: #343a40;
}

/* Các kiểu chung cho trang index */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-index-dark-text);
}

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

.page-index-section-padding {
    padding: 80px 0;
}

.page-index-section-title {
    font-size: 2.8em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-index-section-subtitle {
    font-size: 1.2em;
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
}

.page-index-bg-light {
    background-color: var(--page-index-light-bg);
}

.page-index-bg-dark {
    background-color: var(--page-index-dark-bg);
}

.page-index-bg-primary {
    background-color: var(--page-index-primary-color);
}

.page-index-text-light {
    color: var(--page-index-light-text);
}

.page-index-text-center {
    text-align: center;
}

/* Nút chung */
.page-index-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-index-btn-primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-light-text);
}

.page-index-btn-primary:hover {
    background-color: #0056b3; /* Một màu xanh đậm hơn */
}

.page-index-btn-secondary {
    background-color: #6c757d;
    color: var(--page-index-light-text);
    margin-left: 15px;
}

.page-index-btn-secondary:hover {
    background-color: #5a6268;
}

.page-index-btn-warning {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-dark-text);
}

.page-index-btn-warning:hover {
    background-color: #e0a800; /* Một màu vàng đậm hơn */
}

.page-index-btn-outline {
    background-color: transparent;
    border: 2px solid var(--page-index-primary-color);
    color: var(--page-index-primary-color);
    padding: 10px 20px;
}

.page-index-btn-outline:hover {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-light-text);
}

.page-index-btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-index-btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-index-btn-link {
    color: var(--page-index-primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0;
    background: none;
    border: none;
}

.page-index-btn-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-index-hero-section {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #0056b3 100%); /* Blue gradient */
    color: var(--page-index-light-text);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

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

.page-index-hero-section > .page-index-container {
    position: relative;
    z-index: 1;
}

.page-index-hero-title {
    font-size: 3.8em;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--page-index-light-text);
}

.page-index-hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: #e0e0e0;
}

.page-index-hero-buttons .page-index-btn {
    margin: 0 10px;
    min-width: 180px;
    font-size: 1.1em;
    padding: 15px 30px;
}

/* About Section */
.page-index-about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-index-about-content p {
    font-size: 1.1em;
    text-align: justify;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--page-index-dark-text);
}

.page-index-about-image {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Game Categories Section */
.page-index-game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-index-game-card {
    background-color: var(--page-index-light-text);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-game-card-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-index-game-card-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
}

/* Promotions Section */
.page-index-promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-promotion-item {
    background-color: var(--page-index-light-text);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--page-index-secondary-color);
    transition: transform 0.3s ease;
}

.page-index-promotion-item:hover {
    transform: translateY(-5px);
}

.page-index-promotion-title {
    font-size: 1.8em;
    color: var(--page-index-primary-color);
    margin-bottom: 15px;
}

.page-index-promotion-description {
    color: #555;
    margin-bottom: 25px;
}

/* App Download Section */
.page-index-app-download-section {
    background: linear-gradient(90deg, var(--page-index-primary-color) 0%, #0056b3 100%);
    color: var(--page-index-light-text);
    text-align: left;
}

.page-index-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-index-app-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-index-app-content .page-index-section-title {
    text-align: left;
    color: var(--page-index-light-text);
}

.page-index-app-content .page-index-section-title::after {
    background-color: var(--page-index-secondary-color);
    left: 0;
    transform: translateX(0);
}

.page-index-app-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #e0e0e0;
}

.page-index-app-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-index-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--page-index-light-text);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--page-index-primary-color);
    transition: all 0.3s ease;
}

.page-index-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--page-index-secondary-color);
}

.page-index-feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index-feature-title {
    font-size: 1.6em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
}

.page-index-feature-description {
    color: #666;
}

/* Testimonials Section */
.page-index-testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.page-index-testimonial-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background-color: var(--page-index-light-text);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--page-index-secondary-color);
}

.page-index-testimonial-text {
    font-style: italic;
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-index-testimonial-author {
    font-weight: bold;
    color: var(--page-index-primary-color);
    text-align: right;
}

/* Detail Pages Section */
.page-index-detail-page-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-detail-page-card {
    background-color: var(--page-index-light-text);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-top: 5px solid var(--page-index-primary-color);
}

.page-index-detail-page-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.page-index-detail-page-card h3 a {
    font-size: 1.6em;
    color: var(--page-index-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-detail-page-card h3 a:hover {
    color: #0056b3;
}

.page-index-detail-page-description {
    color: #666;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-index-faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-index-faq-item {
    background-color: var(--page-index-light-text);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-index-faq-question {
    font-size: 1.3em;
    color: var(--page-index-primary-color);
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.page-index-faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-index-secondary-color);
}

.page-index-faq-question.active::after {
    content: '-';
}

.page-index-faq-answer {
    padding: 0 25px 20px;
    color: #555;
    font-size: 1.05em;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-index-faq-question.active + .page-index-faq-answer {
    max-height: 200px; /* Điều chỉnh nếu câu trả lời dài hơn */
    padding: 0 25px 20px;
}

/* Call to Action Section */
.page-index-cta-section {
    background: linear-gradient(45deg, var(--page-index-primary-color) 0%, #0056b3 100%);
    padding: 100px 0;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.page-index-cta-section .page-index-section-title {
    color: var(--page-index-light-text);
    font-size: 3.2em;
}

.page-index-cta-section .page-index-section-title::after {
    background-color: var(--page-index-secondary-color);
}

.page-index-cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero-title {
        font-size: 3em;
    }
    .page-index-hero-description {
        font-size: 1.2em;
    }
    .page-index-section-title {
        font-size: 2.2em;
    }
    .page-index-app-image {
        order: -1; /* Đẩy ảnh lên trên trên mobile */
    }
    .page-index-app-content .page-index-section-title {
        text-align: center;
    }
    .page-index-app-content .page-index-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .page-index-hero-section {
        padding: 80px 0;
    }
    .page-index-hero-title {
        font-size: 2.5em;
    }
    .page-index-hero-description {
        font-size: 1.1em;
    }
    .page-index-hero-buttons .page-index-btn {
        display: block;
        margin: 15px auto;
        min-width: unset;
        width: 80%;
    }
    .page-index-section-padding {
        padding: 60px 0;
    }
    .page-index-section-title {
        font-size: 2em;
    }
    .page-index-game-categories, .page-index-promotion-list, .page-index-features-grid {
        grid-template-columns: 1fr;
    }
    .page-index-testimonial-carousel {
        flex-wrap: nowrap;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
    }
    .page-index-testimonial-item {
        flex: 0 0 90%;
        max-width: 400px;
        margin: 0 auto;
    }
    .page-index-flex-center {
        flex-direction: column;
        gap: 30px;
    }
    .page-index-cta-section .page-index-section-title {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .page-index-hero-title {
        font-size: 2em;
    }
    .page-index-hero-description {
        font-size: 1em;
    }
    .page-index-section-title {
        font-size: 1.8em;
    }
    .page-index-btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-faq-question {
        font-size: 1.1em;
    }
    .page-index-cta-section .page-index-section-title {
        font-size: 2em;
    }
}