/* style/arcade.css */

/* Ensure content starts below the fixed header */
.page-arcade {
    padding-top: var(--header-offset, 120px); /* Apply header offset for desktop and mobile */
    background-color: #FFFFFF; /* Page background */
    color: #333333; /* Dark text on light background for readability */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #000000; /* Dark background for the hero section */
    color: #FFFFFF; /* Light text on dark background */
    min-height: 500px;
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Slightly dim the image to make text stand out */
}

.page-arcade__hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-arcade__hero-title {
    font-size: 3.2em;
    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: #F0F0F0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-arcade__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
}

.page-arcade__button--register {
    background-color: #000000; /* Dark button background */
    color: #FFFFFF; /* White text for register */
    border: 2px solid #FFFFFF;
}

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

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

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

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

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

.page-arcade__paragraph {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-arcade__introduction-section {
    padding: 60px 0;
    background-color: #F8F8F8;
}

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

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

.page-arcade__feature-item:hover {
    transform: translateY(-10px);
}

.page-arcade__feature-image {
    width: 100%;
    max-width: 400px; /* Constrain max width to prevent overflow */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

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

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

/* Why Choose Section */
.page-arcade__why-choose-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-arcade__advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-arcade__advantage-item {
    background-color: #F8F8F8;
    border-left: 5px solid #FCBC45;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

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

.page-arcade__advantage-description {
    font-size: 0.95em;
    color: #666666;
}

/* Getting Started Section */
.page-arcade__getting-started-section {
    padding: 60px 0;
    background-color: #000000; /* Dark background for this section */
    color: #FFFFFF;
}

.page-arcade__getting-started-section .page-arcade__section-title {
    color: #FFFFFF;
}

.page-arcade__getting-started-section .page-arcade__section-title::after {
    background-color: #FCBC45;
}

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

.page-arcade__step-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

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

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

/* Popular Games Section */
.page-arcade__popular-games-section {
    padding: 60px 0;
    background-color: #F8F8F8;
}

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

.page-arcade__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;
}

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

.page-arcade__game-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be object-fit: cover */
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-arcade__game-title {
    font-size: 1.5em;
    color: #000000;
    margin: 15px 0 10px;
    padding: 0 15px;
}

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

.page-arcade__button--play {
    display: block; /* Make button full width of card content */
    width: calc(100% - 30px); /* Adjust for padding */
    margin: 0 15px 20px;
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-arcade__button--play:hover {
    background-color: #e0a53b;
}

.page-arcade__call-to-action {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.page-arcade__call-to-action-title {
    font-size: 2em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-arcade__call-to-action-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-arcade__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    background-color: #FCBC45;
    color: #000000;
    border: none;
}

.page-arcade__button--large:hover {
    background-color: #e0a53b;
}

/* FAQ Section */
.page-arcade__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-arcade__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-arcade__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-arcade__faq-item.active .page-arcade__faq-question::after {
    content: '-';
}

.page-arcade__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}


/* 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;
    }
}

@media (max-width: 768px) {
    /* Mobile specific adjustments to prevent overflow */
    .page-arcade img { /* Applies to all images within .page-arcade */
        max-width: 100%;
        height: auto;
    }

    .page-arcade__hero-section {
        padding: 60px 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: 280px; /* Constrain button width */
    }

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

    .page-arcade__paragraph {
        font-size: 0.95em;
    }

    .page-arcade__features-grid,
    .page-arcade__advantage-list,
    .page-arcade__steps-grid,
    .page-arcade__game-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-arcade__feature-item,
    .page-arcade__advantage-item,
    .page-arcade__step-item,
    .page-arcade__game-card {
        padding: 20px;
    }

    .page-arcade__call-to-action {
        padding: 30px 20px;
    }

    .page-arcade__call-to-action-title {
        font-size: 1.8em;
    }

    .page-arcade__call-to-action-description {
        font-size: 1em;
    }

    .page-arcade__button--large {
        width: 100%;
        max-width: 300px;
    }
}

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

    .page-arcade__hero-description {
        font-size: 0.9em;
    }

    .page-arcade__section-title {
        font-size: 1.6em;
    }

    .page-arcade__button {
        padding: 12px 20px;
        font-size: 1em;
    }
}