/* style/index.css */

/* Biến CSS */
:root {
    --page-index-primary-color: #FFD700; /* Vàng kim */
    --page-index-secondary-color: #1E90FF; /* Xanh hoàng gia */
    --page-index-dark-text: #333333;
    --page-index-light-text: #ffffff;
    --page-index-gray-bg: #f5f5f5;
    --page-index-dark-bg: #1a1a1a;
    --page-index-border-color: #e0e0e0;
}

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

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

.page-index__section-title {
    font-size: 2.8em;
    color: var(--page-index-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page-index__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

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

.page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-dark-text);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.page-index__btn--secondary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-light-text);
    border: 2px solid var(--page-index-secondary-color);
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.4);
}

.page-index__btn--secondary:hover {
    background-color: #1a7ae0;
    border-color: #1a7ae0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.6);
}

.page-index__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-light-text);
}

.page-index__btn--small:hover {
    background-color: #1a7ae0;
}

.page-index__btn--large {
    padding: 15px 35px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Hero Section */
.page-index__hero {
    background: linear-gradient(135deg, var(--page-index-secondary-color) 0%, #1565c0 100%);
    color: var(--page-index-light-text);
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-index__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: page-index-bubble-float 15s infinite alternate ease-in-out;
}

.page-index__hero::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    animation: page-index-bubble-float 20s infinite alternate-reverse ease-in-out;
}

@keyframes page-index-bubble-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(20px, 30px) scale(1.05); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
}

.page-index__hero .page-index__container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-index__hero-content {
    flex: 1;
    text-align: left;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-index-primary-color);
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-index__hero-actions {
    display: flex;
    gap: 20px;
}

.page-index__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-index__features {
    background-color: var(--page-index-light-text);
    padding: 80px 0;
}

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

.page-index__feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* filter: none; */ /* Đảm bảo không có filter */
}

.page-index__feature-heading {
    font-size: 1.5em;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
}

.page-index__feature-description {
    color: #555;
}

/* Games Overview Section */
.page-index__games-overview {
    padding: 80px 0;
    background-color: var(--page-index-gray-bg);
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-index__game-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* filter: none; */ /* Đảm bảo không có filter */
}

.page-index__game-title {
    font-size: 1.4em;
    color: var(--page-index-secondary-color);
    margin: 20px 0 10px;
}

.page-index__game-description {
    padding: 0 20px;
    color: #666;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions {
    padding: 80px 0;
    background-color: var(--page-index-light-text);
}

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

.page-index__promo-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /* filter: none; */ /* Đảm bảo không có filter */
}

.page-index__promo-title {
    font-size: 1.5em;
    color: var(--page-index-secondary-color);
    padding: 20px 20px 0;
}

.page-index__promo-description {
    padding: 0 20px 20px;
    color: #666;
}

.page-index__promo-card .page-index__btn {
    margin-bottom: 20px;
}

/* About Section */
.page-index__about {
    background-color: var(--page-index-dark-bg);
    color: var(--page-index-light-text);
    padding: 80px 0;
    text-align: center;
}

.page-index__about .page-index__section-title {
    color: var(--page-index-primary-color);
}

.page-index__about-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 25px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.page-index__about .page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-dark-text);
    border: none;
}

.page-index__about .page-index__btn--primary:hover {
    background-color: #e6c200;
}

/* Detail Pages Section */
.page-index__detail-pages {
    padding: 80px 0;
    background-color: var(--page-index-gray-bg);
}

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

.page-index__detail-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__detail-title {
    font-size: 1.6em;
    margin-bottom: 15px;
}

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

.page-index__detail-title a:hover {
    text-decoration: underline;
    color: #1a7ae0;
}

.page-index__detail-description {
    color: #666;
    margin-bottom: 20px;
}

/* CTA Bottom Section */
.page-index__cta-bottom {
    background: linear-gradient(45deg, var(--page-index-primary-color), #f7e07e);
    padding: 60px 0;
    text-align: center;
    color: var(--page-index-dark-text);
}

.page-index__cta-content {
    max-width: 800px;
}

.page-index__cta-title {
    font-size: 2.5em;
    color: var(--page-index-dark-text);
    margin-bottom: 20px;
}

.page-index__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #444;
}

.page-index__cta-bottom .page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-light-text);
}

.page-index__cta-bottom .page-index__btn--primary:hover {
    background-color: #1a7ae0;
}

/* Floating Promo Button */
.page-index__floating-promo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.page-index__floating-btn {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-dark-text);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-index__floating-btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__floating-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    /* filter: none; */ /* Đảm bảo không có filter */
}

.page-index__floating-text {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero .page-index__container {
        flex-direction: column;
        text-align: center;
    }

    .page-index__hero-content,
    .page-index__hero-image-wrapper {
        flex: none;
        width: 100%;
    }

    .page-index__hero-title {
        font-size: 2.8em;
    }

    .page-index__hero-description {
        font-size: 1.1em;
    }

    .page-index__hero-actions {
        justify-content: center;
    }

    .page-index__section-title {
        font-size: 2.2em;
    }

    .page-index__feature-grid,
    .page-index__game-grid,
    .page-index__promo-grid,
    .page-index__detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__hero {
        padding: 60px 0;
        min-height: auto;
    }

    .page-index__hero-title {
        font-size: 2.2em;
    }

    .page-index__hero-description {
        font-size: 1em;
    }

    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__btn--primary,
    .page-index__btn--secondary {
        width: 100%;
    }

    .page-index__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-index__section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-index__floating-promo {
        bottom: 20px;
        right: 20px;
    }

    .page-index__floating-btn {
        padding: 10px 15px;
    }

    .page-index__floating-icon {
        width: 24px;
        height: 24px;
    }

    .page-index__floating-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-index__container {
        padding: 0 15px;
    }

    .page-index__hero-title {
        font-size: 1.8em;
    }

    .page-index__section-title {
        font-size: 1.5em;
    }

    .page-index__feature-grid,
    .page-index__game-grid,
    .page-index__promo-grid,
    .page-index__detail-grid {
        grid-template-columns: 1fr;
    }

    .page-index__about-text {
        font-size: 0.95em;
    }

    .page-index__cta-title {
        font-size: 1.8em;
    }

    .page-index__cta-description {
        font-size: 1em;
    }

    .page-index__btn--large {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Logo styling for shared-header, assuming it will be within a .shared-header .logo a */
/* This is a general suggestion for branding, not directly affecting the main content, 
   but adheres to the brand style requested for the logo in the prompt. */
.shared-header .logo a {
    font-family: 'Georgia', serif; /* A more classic, strong font */
    font-size: 2.2em; /* Prominent size */
    font-weight: 900; /* Extra bold */
    color: var(--page-index-primary-color); /* Gold color */
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    letter-spacing: 1px; /* Slightly spaced letters */
    transition: color 0.3s ease;
}

.shared-header .logo a:hover {
    color: #e6c200; /* Slightly darker gold on hover */
}

.shared-header .logo a::before {
    content: '⚡'; /* Optional: Add a lightning bolt or star icon */
    margin-right: 5px;
    color: var(--page-index-secondary-color); /* Blue accent */
}