/* style/index.css */

/* --- Global Page-specific Styles --- */
.page-index {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Auxiliary gold color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

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

.page-index__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C; /* Dark text */
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    transform: translateY(-2px);
}

.page-index__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
    margin-left: 15px;
}

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

.page-index__button--tertiary {
    background-color: #1A202C; /* Dark primary color */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-index__button--tertiary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.95em;
}

.page-index__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-index__center-button {
    text-align: center;
    margin-top: 50px;
}

/* --- Hero Section --- */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh; /* Ensure it's tall enough */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* padding-top handled by .page-index */
    color: #ffffff;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darken image for text readability, not color change */
}

.page-index__hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- About Section --- */
.page-index__about-section {
    background-color: #1A202C; /* Primary dark color */
    padding: 80px 0;
}

.page-index__about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-index__about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e0e0;
}

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

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

/* --- Games Section --- */
.page-index__games-section {
    padding: 80px 0;
    background-color: #0d1117; /* Body background */
}

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

.page-index__game-card {
    background-color: #1A202C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.page-index__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will crop if needed */
    object-fit: cover;
    display: block;
}

.page-index__game-card h3 {
    font-size: 1.8em;
    color: #FFD700;
    padding: 20px 20px 10px;
    margin: 0;
}
.page-index__game-card h3 a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-index__game-card h3 a:hover {
    color: #e0b800;
}


.page-index__game-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 20px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-index__game-card .page-index__button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* --- Promotions Section --- */
.page-index__promo-section {
    background-color: #1A202C;
    padding: 80px 0;
}

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

.page-index__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.page-index__promo-image {
    width: 100%;
    height: 220px; /* Fixed height */
    object-fit: cover;
    display: block;
}

.page-index__promo-title {
    font-size: 1.8em;
    color: #FFD700;
    padding: 20px 20px 10px;
    margin: 0;
}

.page-index__promo-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-index__promo-card .page-index__button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* --- App Section --- */
.page-index__app-section {
    padding: 80px 0;
    background-color: #0d1117; /* Body background */
}

.page-index__app-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-index__app-section .page-index__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-index__app-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-index__app-features li {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-index__app-features li::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

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

.page-index__app-image {
    width: 100%;
    max-width: 450px; /* Max width for app image */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* --- Security Section --- */
.page-index__security-section {
    background-color: #1A202C;
    padding: 80px 0;
}

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

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

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

.page-index__feature-icon {
    width: 200px; /* Min size */
    height: 200px; /* Min size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-index__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__feature-text {
    font-size: 1em;
    color: #cccccc;
}

/* --- Why Choose Us Section --- */
.page-index__why-choose-us-section {
    background-color: #0d1117; /* Body background */
    padding: 80px 0;
}

.page-index__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-index__benefit-item {
    background-color: #1A202C;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-index__benefit-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__benefit-text {
    font-size: 1em;
    color: #cccccc;
}

/* --- CTA Section --- */
.page-index__cta-section {
    background: linear-gradient(45deg, #1A202C, #0d1117); /* Blend of primary and body background */
    padding: 80px 0;
    text-align: center;
}

.page-index__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__cta-description {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .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__app-section .page-index__container {
        grid-template-columns: 1fr;
    }
    .page-index__about-image-wrapper,
    .page-index__app-image-wrapper {
        order: -1; /* Image above content on mobile */
        margin-bottom: 40px;
    }
    .page-index__app-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button--secondary {
        margin-left: 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 0.95em;
    }
    .page-index__hero-section,
    .page-index__about-section,
    .page-index__games-section,
    .page-index__promo-section,
    .page-index__app-section,
    .page-index__security-section,
    .page-index__why-choose-us-section,
    .page-index__cta-section {
        padding: 60px 0;
    }
    .page-index__game-image,
    .page-index__promo-image {
        height: 180px;
    }
    .page-index__feature-icon {
        width: 200px; /* Still minimum 200px */
        height: 200px; /* Still minimum 200px */
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    .page-index__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    /* Mobile content area images must be constrained */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no content causes horizontal scroll */
    .page-index {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__game-card h3,
    .page-index__promo-title,
    .page-index__feature-title,
    .page-index__benefit-title {
        font-size: 1.5em;
    }
}