/* style/index.css */

:root {
    --page-index-primary-color: #FFD700; /* Gold */
    --page-index-secondary-color: #DC143C; /* Crimson */
    --page-index-background-color: #1A1A2E; /* Dark Blue/Near Black */
    --page-index-text-color: #FFFFFF; /* White */
    --page-index-light-text-color: #E0E0E0; /* Light Gray */
    --page-index-card-background: #2A2A4A;
    --page-index-border-color: #3A3A5A;
    --page-index-gradient: linear-gradient(135deg, var(--page-index-primary-color), var(--page-index-secondary-color));
}

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

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

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

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

.page-index__section-subtitle {
    font-size: 1.2em;
    color: var(--page-index-light-text-color);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-index__btn--secondary {
    background: var(--page-index-secondary-color);
    color: var(--page-index-text-color);
    border: 2px solid var(--page-index-secondary-color);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.page-index__btn--secondary:hover {
    background: #FF3366;
    border-color: #FF3366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.page-index__btn--link {
    color: var(--page-index-primary-color);
    background: transparent;
    padding: 0;
    font-weight: normal;
    text-decoration: underline;
}

.page-index__btn--link:hover {
    color: var(--page-index-secondary-color);
    text-decoration: none;
}

.page-index__image--rounded {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-index__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: var(--page-index-background-color);
    color: var(--page-index-text-color);
    position: relative;
    overflow: hidden;
}

.page-index__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--page-index-gradient);
    opacity: 0.15;
    z-index: 0;
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-index__hero-title {
    font-size: 3.8em;
    color: var(--page-index-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: var(--page-index-light-text-color);
}

.page-index__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
    margin-top: 50px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.page-index__about {
    padding: 80px 0;
    background-color: var(--page-index-background-color);
}

.page-index__about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-index__about-text {
    flex: 1;
}

.page-index__about-text p {
    margin-bottom: 15px;
    color: var(--page-index-light-text-color);
    font-size: 1.1em;
}

.page-index__about-text p strong {
    color: var(--page-index-primary-color);
}

.page-index__about-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__game-card {
    background-color: var(--page-index-background-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-index-border-color);
}

.page-index__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-index__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--page-index-primary-color);
}

.page-index__game-title {
    font-size: 1.8em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__game-description {
    font-size: 1em;
    color: var(--page-index-light-text-color);
}

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

.page-index__promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right */
}

.page-index__promo-text {
    flex: 1;
}

.page-index__promo-text h3 {
    font-size: 2em;
    color: var(--page-index-primary-color);
    margin-bottom: 15px;
}

.page-index__promo-text p {
    margin-bottom: 15px;
    color: var(--page-index-light-text-color);
    font-size: 1.1em;
}

.page-index__promo-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-index__security {
    padding: 80px 0;
    background-color: var(--page-index-card-background);
}

.page-index__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-index__security-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__security-text {
    flex: 1;
}

.page-index__security-text p {
    margin-bottom: 15px;
    color: var(--page-index-light-text-color);
    font-size: 1.1em;
}

.page-index__security-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-index__security-text ul li {
    background-color: var(--page-index-background-color);
    border-left: 4px solid var(--page-index-primary-color);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--page-index-light-text-color);
    font-size: 1.05em;
}

.page-index__security-text ul li strong {
    color: var(--page-index-primary-color);
}

/* App Download Section */
.page-index__app-download {
    padding: 80px 0;
    background-color: var(--page-index-background-color);
}

.page-index__app-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right */
}

.page-index__app-image {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__app-text {
    flex: 1;
}

.page-index__app-text p {
    margin-bottom: 15px;
    color: var(--page-index-light-text-color);
    font-size: 1.1em;
}

.page-index__app-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-index__app-text ul li {
    background-color: var(--page-index-card-background);
    border-left: 4px solid var(--page-index-secondary-color);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--page-index-light-text-color);
    font-size: 1.05em;
}

.page-index__app-text ul li strong {
    color: var(--page-index-secondary-color);
}

/* Why Choose Us Section */
.page-index__why-choose-us {
    padding: 80px 0;
    background-color: var(--page-index-card-background);
}

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

.page-index__advantage-item {
    background-color: var(--page-index-background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-index-border-color);
}

.page-index__advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-index__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.page-index__advantage-title {
    font-size: 2em;
    color: var(--page-index-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__advantage-description {
    font-size: 1.1em;
    color: var(--page-index-light-text-color);
}

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

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

.page-index__detail-item {
    background-color: var(--page-index-card-background);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-index-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-index__detail-title a {
    color: var(--page-index-primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-index__detail-description {
    font-size: 1em;
    color: var(--page-index-light-text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive adjustments */
@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__about-grid,
    .page-index__promo-content,
    .page-index__security-content,
    .page-index__app-content {
        flex-direction: column;
    }
    .page-index__promo-content {
        flex-direction: column; /* Reset for mobile, image on top */
    }
    .page-index__security-content {
        flex-direction: column-reverse; /* Text on top */
    }
    .page-index__app-content {
        flex-direction: column; /* Image on top */
    }
    .page-index__about-image, .page-index__promo-image, .page-index__security-image, .page-index__app-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-index__hero {
        padding: 60px 15px;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
    }
    .page-index__btn {
        width: 100%;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__games,
    .page-index__about,
    .page-index__promotions,
    .page-index__security,
    .page-index__app-download,
    .page-index__why-choose-us,
    .page-index__detail-pages {
        padding: 50px 0;
    }
}

@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.5em;
    }
    .page-index__game-grid,
    .page-index__advantages-grid,
    .page-index__detail-list {
        grid-template-columns: 1fr;
    }
    .page-index__game-image {
        height: 150px;
    }
}