/* style/index.css */

/* Ensure main content area has proper padding to avoid header overlap */
.page-index {
    padding-top: var(--header-offset, 120px); /* Default padding for desktop */
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-index__hero-section {
    background-color: #4A148C; /* Main brand color for hero background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

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

.page-index__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for emphasis */
    font-weight: bold;
}

.page-index__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-index__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.page-index__button--primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #4A148C; /* Main brand color for text */
}

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

.page-index__button--secondary {
    background-color: #805baf; /* Lighter shade of main color */
    color: #ffffff;
    border: 1px solid #FFD700;
}

.page-index__button--secondary:hover {
    background-color: #6a4b92;
    transform: translateY(-2px);
}

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

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

.page-index__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #FFD700;
    color: #4A148C;
    border-radius: 5px;
}

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

.page-index__button--text {
    background: none;
    color: #4A148C;
    padding: 0;
    font-weight: bold;
    text-decoration: underline;
}

.page-index__button--text:hover {
    color: #FFD700;
    text-decoration: none;
}

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

.page-index__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
}

/* General Section Styling */
.page-index__section-title {
    font-size: 2.5em;
    color: #4A148C;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-index__text-content {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.page-index__about-section,
.page-index__why-choose-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__responsible-gaming-section,
.page-index__join-us-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-index__about-section {
    background-color: #ffffff;
}

/* Why Choose Section */
.page-index__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-top: 5px solid #4A148C;
}

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

.page-index__feature-title {
    font-size: 1.5em;
    color: #4A148C;
    margin-bottom: 15px;
}

.page-index__feature-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* Games Section */
.page-index__games-section {
    background-color: #f0f2f5;
}

.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 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
}

.page-index__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    filter: none;
}

.page-index__game-title {
    font-size: 1.4em;
    color: #4A148C;
    margin: 20px 15px 10px;
}

.page-index__game-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__game-card .page-index__button--small {
    margin: 0 15px 20px;
    align-self: center;
}

/* Detail Cards for About/Why Choose sections */
.page-index__detail-cards {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__detail-card {
    background-color: #f0f2f5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #FFD700;
}

.page-index__detail-card-title {
    font-size: 1.3em;
    color: #4A148C;
    margin-bottom: 10px;
}

.page-index__detail-card-title a {
    color: #4A148C;
    text-decoration: none;
}

.page-index__detail-card-title a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.page-index__detail-card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

/* Join Us Section */
.page-index__join-us-section {
    background-color: #4A148C;
    color: #ffffff;
    text-align: center;
}

.page-index__join-us-section .page-index__section-title {
    color: #FFD700;
}

.page-index__join-us-section .page-index__section-title::after {
    background-color: #ffffff;
}

.page-index__join-us-section .page-index__text-content {
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

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

@media (max-width: 768px) {
    .page-index {
        padding-top: var(--header-offset, 80px);
    }

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

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

    .page-index__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .page-index__text-content {
        font-size: 1em;
    }

    .page-index__features-grid,
    .page-index__game-categories {
        grid-template-columns: 1fr;
    }

    .page-index__game-card img {
        height: 200px;
    }

    .page-index__game-card .page-index__button--small {
        width: calc(100% - 30px);
    }

    /* Ensure content area images do not overflow horizontally */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
}

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

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

    .page-index__hero-section,
    .page-index__about-section,
    .page-index__why-choose-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__responsible-gaming-section,
    .page-index__join-us-section {
        padding: 40px 0;
    }
}