/* style/arcade.css */

/* Base styles for the page content */
.page-arcade {
    font-family: Arial, sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set as per color scheme */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

/* Mobile header offset - no additional padding if already set on .page-arcade */
@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    text-align: center;
    color: #FFFFFF; /* Light text for hero content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Minimum height for hero section */
    overflow: hidden;
    padding: 40px 20px;
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-arcade__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire hero section */
    display: block;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-arcade__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text box */
    border-radius: 10px;
}

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

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

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

/* General button styles */
.page-arcade__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;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    min-width: 150px;
}

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

.page-arcade__button--primary:hover {
    background-color: #e0a33c;
    border-color: #e0a33c;
}

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

.page-arcade__button--secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
}

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

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
    background-color: #FCBC45;
    color: #000000;
    border: none;
}

.page-arcade__button--small:hover {
    background-color: #e0a33c;
}

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

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

/* General Section Styles */
.page-arcade__section-title {
    font-size: 2.8em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-arcade__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* About Section */
.page-arcade__about-section {
    padding: 60px 20px;
    background-color: #F8F8F8; /* Light background for contrast */
}

.page-arcade__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade__feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-arcade__feature-card img {
    width: 100%; /* Ensure images fill card width */
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-arcade__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Popular Games Section */
.page-arcade__popular-games {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-arcade__game-card {
    background-color: #000000; /* Dark background for game cards */
    color: #FFFFFF; /* Light text for dark background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-arcade__game-card img {
    width: 100%;
     /* Fixed height, object-fit */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-arcade__game-title {
    font-size: 1.8em;
    color: #FCBC45; /* Accent color for game titles */
    margin-bottom: 10px;
}

.page-arcade__game-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* How to Play Section */
.page-arcade__how-to-play {
    padding: 60px 20px;
    background-color: #F0F0F0;
}

.page-arcade__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-arcade__step-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-arcade__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-arcade__step-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

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

.page-arcade__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

/* FAQ Section */
.page-arcade__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-arcade__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px 25px;
}

.page-arcade__faq-question {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-arcade__faq-question--active {
    color: #FCBC45;
}

.page-arcade__faq-answer {
    font-size: 1em;
    color: #555555;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* Resources Section */
.page-arcade__resources-section {
    padding: 60px 20px;
    background-color: #F8F8F8;
}

.page-arcade__resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade__resource-card {
    display: block;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

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

.page-arcade__resource-description {
    font-size: 1em;
    color: #666666;
}

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

@media (max-width: 768px) {
    .page-arcade__hero-section {
        min-height: 450px;
        padding: 20px;
    }
    .page-arcade__hero-title {
        font-size: 2.5em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        width: 80%;
        max-width: 300px;
    }
    .page-arcade__section-title {
        font-size: 2em;
        margin-top: 40px;
    }
    .page-arcade__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-arcade__about-section,
    .page-arcade__popular-games,
    .page-arcade__how-to-play,
    .page-arcade__cta-section,
    .page-arcade__faq-section,
    .page-arcade__resources-section {
        padding: 40px 15px;
    }
    .page-arcade__feature-card img,
    .page-arcade__game-card img {
        height: auto; /* Allow height to adjust for mobile */
        max-width: 100%; /* Ensure images don't overflow */
        min-height: 200px; /* Ensure minimum size */
    }
    /* Enforce minimum image size for all content area images */
    .page-arcade img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-arcade__cta-title {
        font-size: 2em;
    }
    .page-arcade__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__feature-title,
    .page-arcade__game-title,
    .page-arcade__step-title,
    .page-arcade__resource-title,
    .page-arcade__faq-question {
        font-size: 1.4em;
    }
    .page-arcade__button--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}