/* style/index.css */

/* Base styles for the page content, ensuring top padding for 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); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text on dark/image background */
    text-align: center;
    padding: 80px 20px; /* Adjusted padding, header offset is on .page-index */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8; /* Slightly dim the image for text readability */
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for highlight */
    line-height: 1.2;
}

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

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

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

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

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

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

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

.page-index__button--explore {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-index__button--explore:hover {
    background-color: #FFFFFF;
    color: #000000;
}

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

.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;
}

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

.page-index__about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.page-index__about-content p {
    font-size: 1.1em;
    color: #333333;
    max-width: 900px;
}

.page-index__about-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

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

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

.page-index__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-index__game-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__game-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-index__button--play {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    width: calc(100% - 40px);
    max-width: 200px;
    margin: 0 20px;
}

.page-index__button--play:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
}

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

.page-index__promotions-section--highlight {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
}

.page-index__promotions-section--highlight .page-index__section-title,
.page-index__promotions-section--highlight .page-index__section-description {
    color: #FFFFFF;
}

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

.page-index__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-index__promo-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

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

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

.page-index__button--view-all {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 40px;
}

.page-index__button--view-all:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

/* VIP Section */
.page-index__vip-section {
    padding: 60px 0;
}

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

.page-index__feature-item {
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.page-index__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

.page-index__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    margin-top: 40px;
}

.page-index__button--learn-more:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
}

/* Security Section */
.page-index__security-section {
    padding: 60px 0;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-index__security-section .page-index__section-title,
.page-index__security-section .page-index__section-description {
    color: #FFFFFF;
}

.page-index__security-section .page-index__security-title {
    color: #FCBC45; /* Highlight title */
}

.page-index__security-section .page-index__security-text {
    color: #f0f0f0;
}

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

.page-index__security-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
}

.page-index__security-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-index__button--responsible-gaming {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 40px;
}

.page-index__button--responsible-gaming:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

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

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

.page-index__testimonial-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
}

.page-index__testimonial-text {
    font-style: italic;
    color: #555555;
    margin-bottom: 20px;
}

.page-index__testimonial-author {
    font-weight: bold;
    color: #000000;
}

/* CTA Section */
.page-index__cta-section {
    padding: 80px 0;
    background: linear-gradient(90deg, #000000 0%, #FCBC45 100%); /* Gradient background */
    color: #FFFFFF;
    text-align: center;
}

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

.page-index__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-index__button--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-index__button--register.page-index__button--large {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.page-index__button--register.page-index__button--large:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
}

.page-index__button--download.page-index__button--large {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-index__button--download.page-index__button--large:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Animations for JS */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .page-index__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }

    .page-index__hero-title {
        font-size: 2.5em;
    }

    .page-index__hero-description {
        font-size: 1em;
    }

    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__button {
        width: 100%;
        max-width: 300px;
    }

    .page-index__section-title {
        font-size: 2em;
        padding-top: 40px;
    }

    .page-index__game-categories,
    .page-index__promo-grid,
    .page-index__vip-features,
    .page-index__security-features,
    .page-index__testimonials-grid {
        grid-template-columns: 1fr;
    }

    .page-index__game-image,
    .page-index__promo-image,
    .page-index__feature-icon,
    .page-index__security-icon,
    .page-index__about-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure images are not too small for content area */
        object-fit: cover;
    }

    /* Important: Content area images must not cause horizontal scroll */
    .page-index img {
        max-width: 100%;
        height: auto;
    }

    .page-index__about-content {
        flex-direction: column;
    }

    .page-index__cta-buttons {
        flex-direction: column;
    }
}

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

    .page-index__section-title {
        font-size: 1.8em;
    }

    .page-index__game-title,
    .page-index__promo-title,
    .page-index__feature-title,
    .page-index__security-title {
        font-size: 1.5em;
    }
}