/* style/arcade.css */

/* Base styling for the arcade page */
.page-arcade {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    background-color: #1A1A2E; /* Main brand color */
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* For image positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-arcade__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    color: #E9B000; /* Auxiliary color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-arcade__hero-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.page-arcade__hero-button--primary {
    background-color: #E9B000; /* Auxiliary color */
    color: #1A1A2E;
    border: 2px solid #E9B000;
}

.page-arcade__hero-button--primary:hover {
    background-color: #ffc81a;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 176, 0, 0.4);
}

.page-arcade__hero-button--secondary {
    background-color: transparent;
    color: #E9B000;
    border: 2px solid #E9B000;
}

.page-arcade__hero-button--secondary:hover {
    background-color: #E9B000;
    color: #1A1A2E;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 176, 0, 0.4);
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-arcade__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
    /* filter: brightness(0.7); Darken image slightly - Removed filter to comply with rules */
}


/* Introduction Section */
.page-arcade__introduction-section {
    background-color: #0d0d1a; /* Dark background */
    padding: 60px 0;
    text-align: center;
}

.page-arcade__introduction-title {
    font-size: 2.8em;
    color: #E9B000;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-arcade__introduction-text {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Features Section */
.page-arcade__features-section {
    background-color: #1A1A2E;
    padding: 80px 0;
}

.page-arcade__features-title {
    font-size: 2.8em;
    color: #E9B000;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.page-arcade__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-arcade__feature-card img {
    width: 400px; /* Display width */
    height: 300px; /* Display height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #E9B000;
}

.page-arcade__feature-card-title {
    font-size: 1.8em;
    color: #E9B000;
    margin-bottom: 15px;
}

.page-arcade__feature-card-text {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.7;
    flex-grow: 1; /* Ensures cards have consistent height */
}

/* Popular Games Section */
.page-arcade__popular-games-section {
    background-color: #0d0d1a;
    padding: 80px 0;
    text-align: center;
}

.page-arcade__popular-games-title {
    font-size: 2.8em;
    color: #E9B000;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-arcade__popular-games-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

.page-arcade__game-category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade__game-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-arcade__game-category-card img {
    width: 300px; /* Display width */
    height: 225px; /* Display height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #E9B000;
}

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

.page-arcade__game-category-card-text {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-arcade__game-category-button {
    display: inline-block;
    background-color: #E9B000;
    color: #1A1A2E;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__game-category-button:hover {
    background-color: #ffc81a;
    transform: translateY(-2px);
}

/* How to Play Section */
.page-arcade__how-to-play-section {
    background-color: #1A1A2E;
    padding: 80px 0;
    text-align: center;
}

.page-arcade__how-to-play-title {
    font-size: 2.8em;
    color: #E9B000;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-arcade__how-to-play-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

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

.page-arcade__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #E9B000;
    color: #1A1A2E;
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-arcade__step-text {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-arcade__step-button {
    display: inline-block;
    background-color: #E9B000;
    color: #1A1A2E;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__step-button:hover {
    background-color: #ffc81a;
    transform: translateY(-2px);
}

/* CTA Banner */
.page-arcade__cta-banner {
    position: relative;
    background-color: #0d0d1a;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-arcade__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-arcade__cta-title {
    font-size: 3em;
    color: #E9B000;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-arcade__cta-button {
    display: inline-block;
    background-color: #E9B000;
    color: #1A1A2E;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 176, 0, 0.4);
}

.page-arcade__cta-button:hover {
    background-color: #ffc81a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 176, 0, 0.6);
}

.page-arcade__cta-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    /* filter: brightness(0.6); - Removed filter to comply with rules */
    z-index: 1;
}

/* FAQ Section */
.page-arcade__faq-section {
    background-color: #1A1A2E;
    padding: 80px 0;
}

.page-arcade__faq-title {
    font-size: 2.8em;
    color: #E9B000;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-arcade__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-arcade__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__faq-question {
    font-size: 1.5em;
    color: #E9B000;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate interactivity */
    position: relative;
    padding-right: 30px;
}

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

.page-arcade__faq-item.active .page-arcade__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 3em;
    }
    .page-arcade__introduction-title,
    .page-arcade__features-title,
    .page-arcade__popular-games-title,
    .page-arcade__how-to-play-title,
    .page-arcade__cta-title,
    .page-arcade__faq-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-arcade__hero-section {
        padding: 60px 0;
    }

    .page-arcade__hero-title {
        font-size: 2.2em;
    }

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

    .page-arcade__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-arcade__hero-button {
        width: 80%;
        max-width: 300px;
    }

    .page-arcade__introduction-title,
    .page-arcade__features-title,
    .page-arcade__popular-games-title,
    .page-arcade__how-to-play-title,
    .page-arcade__cta-title,
    .page-arcade__faq-title {
        font-size: 2em;
    }

    .page-arcade__introduction-text,
    .page-arcade__feature-card-text,
    .page-arcade__popular-games-description,
    .page-arcade__game-category-card-text,
    .page-arcade__how-to-play-description,
    .page-arcade__step-text,
    .page-arcade__cta-description,
    .page-arcade__faq-answer {
        font-size: 0.95em;
    }

    .page-arcade__feature-card img,
    .page-arcade__game-category-card img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Enforce minimum size */
        min- /* Enforce minimum height (assuming 4:3 aspect ratio for 200px width) */
    }

    .page-arcade__cta-title {
        font-size: 2.5em;
    }
    .page-arcade__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-arcade__faq-question {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 1.8em;
    }
    .page-arcade__introduction-title,
    .page-arcade__features-title,
    .page-arcade__popular-games-title,
    .page-arcade__how-to-play-title,
    .page-arcade__cta-title,
    .page-arcade__faq-title {
        font-size: 1.8em;
    }
    .page-arcade__hero-button {
        width: 90%;
    }
    .page-arcade__cta-title {
        font-size: 2em;
    }
}