/* style/index.css */

/* Base styling for the page content */
.page-index {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: #1E90FF; /* Royal Blue for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__sub-section-title {
    font-size: 2em;
    color: #FFD700; /* Gold for sub-titles */
    text-align: center;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__section-description,
.page-index__content-paragraph {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    min-width: 180px; /* Ensure buttons are not too small */
}

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

.page-index__button--primary:hover {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
}

.page-index__button--secondary {
    background-color: transparent;
    color: #1E90FF; /* Royal Blue text */
    border: 2px solid #1E90FF;
    margin-left: 15px;
}

.page-index__button--secondary:hover {
    background-color: #1E90FF; /* Royal Blue */
    color: #ffffff; /* White text for royal blue background */
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: unset;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a; /* Dark background for hero */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-index__hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text for dark background */
    padding: 60px 20px;
}

.page-index__hero-image {
    width: 100%; /* HTML width 1200, height 675 */
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5); /* Darken image to make text readable, NOT changing color */
    z-index: 0;
    min-height: 400px; /* Ensure image has a minimum height */
}

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

.page-index__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title */
    font-weight: bold;
    line-height: 1.1;
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for description */
}

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

/* Why Choose Section */
.page-index__why-choose-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background */
}

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

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

.page-index__feature-card:hover {
    transform: translateY(-10px);
}

.page-index__feature-icon {
    width: 100%; /* HTML width 400, height 300 */
    height: auto;
    max-width: 300px; /* Constrain icon size */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Ensure min width */
    min-height: 200px; /* Ensure min height */
}

.page-index__feature-title {
    font-size: 1.5em;
    color: #1E90FF;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Game Categories Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__game-card {
    display: block;
    background-color: #f0f8ff; /* Light blue background for cards */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-image {
    width: 100%; /* HTML width 600, height 400 */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure min width */
    min-height: 200px; /* Ensure min height */
}

.page-index__game-card-title {
    font-size: 1.4em;
    color: #1E90FF;
    padding: 20px 20px 0;
    font-weight: bold;
}

.page-index__game-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 10px 20px 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
    transform: translateY(-10px);
}

.page-index__promo-card-image {
    width: 100%; /* HTML width 600, height 400 */
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min width */
    min-height: 200px; /* Ensure min height */
}

.page-index__promo-card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: bold;
}

.page-index__promo-card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    padding: 0 20px;
}

.page-index__promo-cta {
    text-align: center;
    margin-top: 50px;
}

/* Mobile App Section */
.page-index__app-section {
    padding: 80px 0;
    background-color: #e6f0ff; /* Lighter blue background */
}

.page-index__app-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__app-content {
    flex: 1;
    min-width: 300px; /* Ensure content doesn't shrink too much */
}

.page-index__app-image-wrapper {
    flex: 1;
    text-align: center;
    min-width: 300px; /* Ensure image doesn't shrink too much */
}

.page-index__app-image {
    width: 100%; /* HTML width 800, height 600 */
    max-width: 500px; /* Max width for the image */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Ensure min width */
    min-height: 200px; /* Ensure min height */
}

.page-index__app-features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
    color: #555555;
    font-size: 1.1em;
}

.page-index__app-features-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-index__app-features-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FFD700;
}

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

/* Call to Action Section */
.page-index__cta-section {
    padding: 80px 0;
    background-color: #1E90FF; /* Royal Blue background */
    color: #ffffff; /* White text */
    text-align: center;
}

.page-index__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title */
    font-weight: bold;
}

.page-index__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-index {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__sub-section-title {
        font-size: 1.6em;
    }
    .page-index__section-description,
    .page-index__content-paragraph {
        font-size: 1em;
    }
    .page-index__button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset;
    }
    .page-index__button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-index__hero-actions,
    .page-index__cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-index__app-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-index__app-features-list {
        text-align: center;
    }
    .page-index__app-features-list li {
        padding-left: 0;
    }
    .page-index__app-features-list li::before {
        position: static;
        margin-right: 10px;
    }

    /* Ensure all images within page-index are responsive and do not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }

    /* Important: Content area images must not be smaller than 200px */
    .page-index__feature-icon,
    .page-index__game-card-image,
    .page-index__promo-card-image,
    .page-index__app-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-index__game-card-image {
        height: auto; /* Allow height to adjust on mobile */
    }
    .page-index__promo-card-image {
        height: auto; /* Allow height to adjust on mobile */
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__cta-title {
        font-size: 2em;
    }
}