/* style/home.css */
.page-home {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-home__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-home__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-home__section-text--more-games {
    margin-top: 40px;
}

.page-home__button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.page-home__button--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000;
}

.page-home__button--primary:hover {
    background-color: #e0a53b;
}

.page-home__button--secondary {
    background-color: #000000;
    color: #FFFFFF; /* Register color */
}

.page-home__button--secondary:hover {
    background-color: #333333;
}

.page-home__button--register {
    background-color: #FCBC45;
    color: #000000;
}

.page-home__button--register:hover {
    background-color: #e0a53b;
}

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

.page-home__button--login:hover {
    background-color: #333333;
    color: #FFFFFF;
}

.page-home__button--small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Hero Section */
.page-home__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    padding: 80px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-home__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.page-home__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-home__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-home__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #FCBC45;
}

.page-home__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-home__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

/* About Section */
.page-home__about-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

/* Games Section */
.page-home__games-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
}

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

.page-home__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-home__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-home__game-card-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-home__game-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Promotions Section */
.page-home__promo-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-home__promo-section .page-home__section-title {
    color: #FCBC45;
}

.page-home__promo-section .page-home__section-title::after {
    background-color: #FCBC45;
}

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

.page-home__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-home__why-choose-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

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

.page-home__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: left;
}

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

.page-home__feature-description {
    font-size: 1em;
    color: #555555;
}

/* App Download Section */
.page-home__app-download-section {
    padding: 80px 20px;
    background-color: #FCBC45;
    color: #000000;
    text-align: center;
}

.page-home__app-download-section .page-home__section-title {
    color: #000000;
}

.page-home__app-download-section .page-home__section-title::after {
    background-color: #000000;
}

.page-home__app-download-section .page-home__section-text {
    color: #333333;
}

.page-home__app-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

/* CTA Section */
.page-home__cta-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-home__cta-section .page-home__section-title {
    color: #FCBC45;
}

.page-home__cta-section .page-home__section-title::after {
    background-color: #FCBC45;
}

.page-home__cta-section .page-home__section-text {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-home__cta-section .page-home__button {
    margin: 0 10px;
}

/* Blog/News Section */
.page-home__blog-news-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
}

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

.page-home__blog-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-home__blog-card-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
}

.page-home__blog-card-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

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

.page-home__blog-card-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

    .page-home__hero-description {
        font-size: 1.1em;
    }

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

@media (max-width: 768px) {
    .page-home__hero-section {
        flex-direction: column;
        padding: 60px 20px 0;
    }

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

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

    .page-home__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-home__hero-actions .page-home__button {
        width: 100%;
        max-width: 300px;
    }

    .page-home__container {
        padding: 0 15px;
    }

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

    .page-home__section-text {
        font-size: 0.95em;
    }

    .page-home__game-card-image, .page-home__promo-image, .page-home__app-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-home__game-card-image img, .page-home__promo-image img, .page-home__app-image img, .page-home__hero-image img {
        max-width: 100%;
        height: auto;
    }
    
    .page-home__games-section img, .page-home__promo-section img, .page-home__app-download-section img, .page-home__hero-section img {
        max-width: 100%;
        height: auto;
    }

    .page-home__game-card {
        padding: 20px;
    }

    .page-home__feature-card {
        padding: 20px;
    }

    .page-home__blog-card {
        padding: 20px;
    }
}

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

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

    .page-home__hero-actions .page-home__button {
        padding: 10px 20px;
    }

    .page-home__button {
        padding: 10px 20px;
    }

    .page-home__game-card-image, .page-home__promo-image, .page-home__app-image {
        width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}