/* style/arcade.css */

/* --- Base Styles --- */
.page-arcade {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-arcade__section {
    padding: 60px 0;
    text-align: center;
}

.page-arcade__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Light grey background for alternating sections */
}

.page-arcade__section-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-arcade__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-arcade__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
    padding: 80px 20px 40px; /* Adjust padding as needed */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-arcade__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.page-arcade__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-arcade__button--login {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-arcade__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

.page-arcade__hero-image {
    margin-top: 40px;
}

.page-arcade__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto; /* Center the image */
}

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

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

.page-arcade__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-arcade__image-full-width {
    margin-top: 60px;
}

.page-arcade__image-full-width img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the image */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-arcade__feature-card {
    background-color: #000000; /* Dark background for feature cards */
    color: #FFFFFF; /* Light text for dark cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.page-arcade__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-arcade__feature-card-title {
    font-size: 1.8em;
    color: #FCBC45; /* Emphasize title with accent color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__feature-card-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-arcade__feature-card-text a {
    color: #FCBC45; /* Link color in dark card */
    text-decoration: none;
    font-weight: bold;
}

.page-arcade__feature-card-text a:hover {
    text-decoration: underline;
}

/* --- Steps Grid Section (Getting Started) --- */
.page-arcade__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-arcade__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__step-card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-arcade__button--play {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

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

/* --- Responsible Gaming Section --- */
.page-arcade__section--responsible-gaming {
    background-color: #000000; /* Dark background for responsible gaming */
    color: #FFFFFF; /* Light text */
}

.page-arcade__section--responsible-gaming .page-arcade__section-title {
    color: #FCBC45; /* Accent color for title */
}

.page-arcade__section--responsible-gaming .page-arcade__section-text {
    color: #f0f0f0;
}

.page-arcade__section--responsible-gaming .page-arcade__section-text a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-arcade__section--responsible-gaming .page-arcade__section-text a:hover {
    text-decoration: underline;
}

/* --- CTA Section --- */
.page-arcade__cta-section {
    background-color: #FCBC45; /* Accent color background for CTA */
    color: #000000; /* Dark text for light background */
    padding: 80px 20px;
    text-align: center;
}

.page-arcade__cta-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000000;
}

.page-arcade__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

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

.page-arcade__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    border-width: 3px;
}

.page-arcade__cta-actions .page-arcade__button--register {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.page-arcade__cta-actions .page-arcade__button--register:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.page-arcade__cta-actions .page-arcade__button--play {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.page-arcade__cta-actions .page-arcade__button--play:hover {
    background-color: #000000;
    color: #FCBC45;
    border-color: #FCBC45;
}

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

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 120px); /* Ensure mobile content is not hidden by fixed header */
    }
    .page-arcade__hero-title {
        font-size: 2.5em;
    }
    .page-arcade__hero-description {
        font-size: 1.2em;
    }
    .page-arcade__hero-actions,
    .page-arcade__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        width: 100%;
        max-width: 300px;
    }
    .page-arcade__section {
        padding: 40px 0;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__game-grid,
    .page-arcade__feature-grid,
    .page-arcade__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__cta-title {
        font-size: 2em;
    }

    /* Important: Mobile content area images must be responsive */
    .page-arcade img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size even on mobile */
        min-height: 200px; /* Enforce minimum size even on mobile */
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__section-title {
        font-size: 1.5em;
    }
    .page-arcade__game-card-title,
    .page-arcade__feature-card-title,
    .page-arcade__step-card-title {
        font-size: 1.5em;
    }
    .page-arcade__cta-title {
        font-size: 1.8em;
    }
}