/* style/arcade.css */
/* Base styling for the arcade page content */
.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 */
    background-color: #FFFFFF; /* Explicitly set for content area if needed, though body handles it */
}

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

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

.page-arcade__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-arcade__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    object-fit: cover; /* Ensure image covers the area */
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-arcade__hero-content {
    position: absolute; /* Overlay content on the image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    border-radius: 15px;
    z-index: 10;
}

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

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

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

/* General Buttons */
.page-arcade__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

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

.page-arcade__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-arcade__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #FCBC45;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-arcade__button--small:hover {
    background-color: #e0a73d;
    transform: translateY(-1px);
}

.page-arcade__button--large {
    padding: 18px 35px;
    font-size: 1.1em;
    background-color: #FCBC45;
    color: #000000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.page-arcade__button--large:hover {
    background-color: #e0a73d;
    transform: translateY(-3px);
}

.page-arcade__button--register {
    background-color: #FFFFFF; /* Specific styling for register button in CTA */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-arcade__button--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}


/* Section common styles */
.page-arcade__intro-section,
.page-arcade__game-types-section,
.page-arcade__features-section,
.page-arcade__how-to-play-section,
.page-arcade__seo-content {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-arcade__intro-section {
    background-color: #f8f8f8;
}

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

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

.page-arcade__section-text,
.page-arcade__paragraph {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-arcade__paragraph {
    text-align: left; /* SEO content paragraphs can be left-aligned */
    margin-bottom: 20px;
}

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

.page-arcade__game-card {
    background-color: #F0F0F0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-arcade__game-card-image {
    width: 100%; /* HTML width/height attributes for display area */
    max-width: 400px; /* Ensure images don't exceed their container */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    filter: none; /* No CSS filter to change image color */
}

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

.page-arcade__game-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Features Section */
.page-arcade__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-arcade__feature-item {
    background-color: #000000; /* Dark background for feature cards */
    color: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-arcade__feature-icon {
    width: 100%;
    max-width: 200px; /* HTML width/height attributes for display area */
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    filter: none; /* No CSS filter to change image color */
}

.page-arcade__feature-title {
    font-size: 1.6em;
    color: #FCBC45; /* Accent color for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__feature-description {
    font-size: 1em;
    color: #E0E0E0;
    flex-grow: 1;
}

/* How-To-Play Section */
.page-arcade__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-arcade__step-card {
    background-color: #F0F0F0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

/* SEO Content Section */
.page-arcade__seo-content {
    background-color: #000000; /* Dark background for SEO content */
    color: #FFFFFF;
}

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

.page-arcade__seo-content .page-arcade__subsection-title {
    color: #FFFFFF;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-arcade__seo-content .page-arcade__section-text,
.page-arcade__seo-content .page-arcade__paragraph {
    color: #E0E0E0;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-arcade__call-to-action {
    margin-top: 50px;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animation for elements on scroll */
.page-arcade__game-card,
.page-arcade__feature-item,
.page-arcade__step-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-arcade--animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 2.8em;
    }
    .page-arcade__hero-description {
        font-size: 1.1em;
    }
    .page-arcade__section-title {
        font-size: 2em;
    }
    .page-arcade__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* Mobile content area image constraint */
    .page-arcade__container img,
    .page-arcade__game-card-image,
    .page-arcade__feature-icon {
        max-width: 100%;
        height: auto;
        /* Ensure min-width/height are still respected by layout, but image itself scales */
        min-width: 200px; /* Still apply min size for content images */
        min-height: 200px;
    }
    .page-arcade__hero-content {
        position: static;
        transform: none;
        width: 100%;
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.7);
        margin-top: 20px;
    }
    .page-arcade__hero-image {
        filter: brightness(0.8); /* Less darkening on mobile if content is separate */
    }
    .page-arcade__hero-section {
        padding: 40px 15px;
    }
    .page-arcade__hero-title {
        font-size: 2.2em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        width: 100%;
        max-width: 300px; /* Constrain button width */
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__subsection-title {
        font-size: 1.4em;
    }
    .page-arcade__section-text,
    .page-arcade__paragraph {
        font-size: 0.95em;
        text-align: left; /* Default to left align on mobile for readability */
        margin-left: 0;
        margin-right: 0;
    }
    .page-arcade__game-grid,
    .page-arcade__feature-list,
    .page-arcade__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-arcade__game-card,
    .page-arcade__feature-item,
    .page-arcade__step-card {
        padding: 20px;
    }
    .page-arcade__call-to-action {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__call-to-action .page-arcade__button {
        width: 100%;
        max-width: none;
    }
}

/* Ensure no horizontal scroll for mobile */
@media (max-width: 768px) {
    .page-arcade {
        overflow-x: hidden;
    }
    .page-arcade__container {
        padding: 0 15px;
    }
}