/* style/index.css */

/* Base styles for the page content */
.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

/* Ensure images are responsive and meet minimum size requirements */
.page-index img {
    display: block; /* Remove extra space below images */
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Ensure images fill their space nicely */
    /* No filter properties to change image colors */
}

/* General container for content sections */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section titles and descriptions */
.page-index__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Buttons */
.page-index__button {
    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;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #000000;
}

.page-index__button--register:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.page-index__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
    margin-left: 15px;
}

.page-index__button--login:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-index__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    min-width: unset;
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
}

.page-index__button--small:hover {
    background-color: #333333;
}

.page-index__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--download:hover {
    background-color: #e0a53b;
}

.page-index__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 20px;
}

.page-index__button--large:hover {
    background-color: #e0a53b;
}


/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    padding: 0; /* Remove default padding as image will fill */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero section */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the background image */
    z-index: 1;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index__hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.page-index__hero-content {
    position: relative;
    z-index: 3; /* Ensure content is above the overlay */
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #e0e0e0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-actions {
    margin-top: 30px;
}

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

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

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

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

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

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

/* Games Section */
.page-index__games-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-index__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index__game-title {
    font-size: 1.5em;
    color: #000000;
    margin: 15px 15px 10px;
}

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

/* Promotions Section */
.page-index__promo-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

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

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

.page-index__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index__promo-title {
    font-size: 1.8em;
    color: #000000;
    margin: 15px 15px 10px;
}

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

/* App Download Section */
.page-index__app-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-index__app-flex-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-index__app-content {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    text-align: center;
}

.page-index__app-image-wrapper {
    flex: 1;
    min-width: 250px; /* Minimum width for image before wrapping */
    display: flex;
    justify-content: center;
}

.page-index__app-image {
    max-width: 300px; /* Max width for the phone image */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Responsible Gaming Section & CTA Section */
.page-index__responsible-gaming-section,
.page-index__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f8f8f8; /* Light background */
}

.page-index__cta-section {
    background-color: #000000; /* Dark background for final CTA */
    color: #FFFFFF;
}

.page-index__cta-section .page-index__section-title {
    color: #FFFFFF;
}

.page-index__cta-section .page-index__section-description {
    color: #e0e0e0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 450px;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-index__button--login {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__section-description {
        font-size: 1em;
    }
    .page-index__feature-card,
    .page-index__game-card,
    .page-index__promo-card {
        margin-bottom: 20px;
    }
    .page-index__app-flex-container {
        flex-direction: column;
    }
    .page-index__app-content,
    .page-index__app-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-index__app-image {
        max-width: 250px;
    }

    /* Ensure all images in content area are responsive */
    .page-index img {
        max-width: 100% !important; /* Override any fixed widths */
        height: auto !important;
        min-width: 200px; /* Ensure min size is still met for content images */
        min-height: 200px; /* Ensure min size is still met for content images */
    }
    .page-index__game-image,
    .page-index__promo-image {
        height: auto; /* Allow height to adjust for responsiveness */
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__button--large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
}