/* style/index.css */

/* Base styles for the page content, ensuring it doesn't get covered by a fixed header */
.page-index {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Essential for fixed header offset */
    background-color: #FFFFFF; /* Explicitly set for content area if needed */
}

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

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* Light text for hero content over dark/rich image */
    text-align: center;
    padding: 40px 20px; /* Add some padding for smaller screens */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
    padding: 30px;
    border-radius: 8px;
}

.page-index__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-index__button--register {
    background-color: #FFFFFF; /* As per custom color for register */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.page-index__button--login {
    background-color: #FCBC45; /* As per custom color for login */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: #e0a73b;
    transform: translateY(-2px);
}

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

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

.page-index__button--download:hover {
    background-color: #e0a73b;
    transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-index__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

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

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

.page-index__about-content p {
    flex: 1;
    min-width: 300px;
    font-size: 1em;
    color: #333333;
}

.page-index__about-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

/* 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 {
    background-color: #F8F8F8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

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

.page-index__game-card-title a {
    text-decoration: none;
    color: inherit;
}

.page-index__game-card-title a:hover {
    color: #FCBC45;
}

.page-index__game-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1; /* Allows text to push button to bottom */
    margin-bottom: 20px;
}

.page-index__more-games-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

.page-index__more-games-text a,
.page-index__support-link-text a,
.page-index__responsible-gaming-text a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-index__more-games-text a:hover,
.page-index__support-link-text a:hover,
.page-index__responsible-gaming-text a:hover {
    text-decoration: underline;
}

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

.page-index__promo-grid {
    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: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-index__all-promos-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

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

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

.page-index__download-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-index__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    font-size: 1.05em;
    color: #333333;
}

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

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

.page-index__download-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

/* Security Section */
.page-index__security-section {
    background-color: #F8F8F8;
    padding: 60px 0;
}

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

.page-index__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-index__feature-icon {
    width: 200px; /* Corrected to meet min 200px width */
    height: 200px; /* Corrected to meet min 200px height */
    object-fit: contain; /* Ensure the image scales down if needed without cropping */
    margin: 0 auto 20px auto;
    min-width: 200px; /* Explicitly ensure min size */
    min-height: 200px; /* Explicitly ensure min size */
}

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

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

.page-index__support-link-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-index__responsible-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-index__responsible-features .page-index__feature-item {
    background-color: #F8F8F8;
}

.page-index__responsible-gaming-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

/* Call to Action Section */
.page-index__call-to-action {
    background-color: #000000; /* Dark background for strong CTA */
    padding: 80px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-index__call-to-action .page-index__section-title {
    color: #FFFFFF;
    padding-top: 0; /* Override default padding-top for this section */
}

.page-index__call-to-action .page-index__section-description {
    color: #F0F0F0;
    margin-bottom: 50px;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__game-card-image,
    .page-index__promo-card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 0.95em;
    }
    .page-index__about-content {
        flex-direction: column;
    }
    .page-index__about-image {
        max-width: 100%;
        min-width: unset;
    }
    .page-index__download-content {
        flex-direction: column-reverse; /* Image above text for download on mobile */
    }
    .page-index__download-image {
        max-width: 100%;
        min-width: unset;
    }
    .page-index__game-card-image,
    .page-index__promo-card-image {
        height: 200px;
    }
    /* Mobile content area images must not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    /* Ensure content area images are not smaller than 200px, even if they are "icons" */
    .page-index__feature-icon {
        width: 200px; /* Min width */
        height: 200px; /* Min height */
        margin: 0 auto 20px auto; /* Center small images */
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__game-card-title {
        font-size: 1.3em;
    }
    .page-index__promo-card-title {
        font-size: 1.4em;
    }
    .page-index__cta-buttons {
        flex-direction: column;
    }
}