/* style/arcade.css */

/* Base styles for the arcade page content */
.page-arcade {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white background for sections */
}

/* Section common styles */
.page-arcade__section-title {
    font-size: 2.8em;
    color: #1A237E; /* Primary dark blue */
    text-align: center;
    margin-bottom: 30px;
    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: #FFD700; /* Secondary gold */
    border-radius: 2px;
}

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

/* Buttons */
.page-arcade__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-arcade__btn--primary {
    background-color: #FFD700; /* Secondary gold */
    color: #1A237E; /* Primary dark blue */
    border-color: #FFD700;
}

.page-arcade__btn--primary:hover {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-arcade__btn--secondary {
    background-color: transparent;
    color: #1A237E; /* Primary dark blue */
    border-color: #1A237E;
    margin-left: 15px;
}

.page-arcade__btn--secondary:hover {
    background-color: #1A237E; /* Primary dark blue */
    color: #ffffff;
    transform: translateY(-2px);
}

.page-arcade__btn--outline {
    background-color: transparent;
    color: #1A237E; /* Primary dark blue */
    border-color: #1A237E;
    padding: 10px 20px;
    font-size: 1em;
}

.page-arcade__btn--outline:hover {
    background-color: #1A237E;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-arcade__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 6px;
}

.page-arcade__btn--large {
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #1A237E; /* Primary dark blue background for hero */
    color: #ffffff;
    padding: 80px 20px; /* Adjusted padding, assuming shared.css handles body padding-top */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 550px;
}

.page-arcade__hero-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Secondary gold for title */
}

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

.page-arcade__hero-actions {
    display: flex;
    gap: 15px;
}

.page-arcade__hero-actions .page-arcade__btn--secondary {
    color: #FFD700;
    border-color: #FFD700;
}
.page-arcade__hero-actions .page-arcade__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
}


.page-arcade__hero-image-container {
    flex-shrink: 0;
    width: 50%;
    max-width: 700px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-arcade__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Games Showcase Section */
.page-arcade__games-showcase {
    padding: 80px 20px;
    background-color: #ffffff;
}

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

.page-arcade__game-card {
    background-color: #fdfdfd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
}

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

.page-arcade__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-arcade__game-card-title {
    font-size: 1.8em;
    color: #1A237E;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-arcade__game-card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    padding: 0 15px;
}

/* Features Section */
.page-arcade__features {
    padding: 80px 20px;
    background-color: #f0f2f5;
}

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

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

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

.page-arcade__feature-icon {
    width: 200px; /* Min size for content images */
    height: 150px; /* Min size for content images */
    object-fit: contain;
    margin-bottom: 25px;
}

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

.page-arcade__feature-text {
    font-size: 0.95em;
    color: #666666;
}

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

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

.page-arcade__step {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #FFD700;
}

.page-arcade__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #1A237E;
    color: #FFD700;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-title {
    font-size: 1.7em;
    color: #1A237E;
    margin-bottom: 15px;
}

.page-arcade__step-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
}

/* CTA Section */
.page-arcade__cta-section {
    background: linear-gradient(135deg, #1A237E, #3F51B5); /* Dark blue gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-arcade__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary gold */
}

.page-arcade__cta-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-arcade__faq-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
}

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

.page-arcade__faq-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #1A237E; /* Primary dark blue accent */
}

.page-arcade__faq-question {
    font-size: 1.5em;
    color: #1A237E;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__faq-answer {
    font-size: 1em;
    color: #555555;
}

.page-arcade__faq-answer a {
    color: #1A237E;
    text-decoration: none;
    font-weight: bold;
}

.page-arcade__faq-answer a:hover {
    text-decoration: underline;
}

/* Related Links Section */
.page-arcade__related-links {
    padding: 60px 20px;
    background-color: #e0e0e0;
    text-align: center;
}

.page-arcade__link-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.page-arcade__link-list li {
    display: inline-block;
}

.page-arcade__link-list a {
    color: #1A237E;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 15px;
    border: 1px solid #1A237E;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-arcade__link-list a:hover {
    background-color: #1A237E;
    color: #ffffff;
    border-color: #1A237E;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-arcade__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-arcade__hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

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

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

    .page-arcade__hero-actions {
        justify-content: center;
    }

    .page-arcade__hero-image-container {
        width: 80%;
        max-width: 600px;
    }

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

    .page-arcade__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    /* Mobile content area image constraint */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
    .page-arcade {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-arcade__hero-section {
        padding: 50px 15px;
    }

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

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

    .page-arcade__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-arcade__btn {
        width: 100%;
        margin-left: 0 !important; /* Override margin-left for secondary button */
    }

    .page-arcade__game-card-image {
        height: 200px; /* Ensure minimum height */
    }

    .page-arcade__feature-icon {
        width: 250px; /* Ensuring minimum width for content images */
        height: 200px; /* Ensuring minimum height for content images */
        object-fit: contain;
        margin-bottom: 25px;
    }

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

    .page-arcade__cta-title {
        font-size: 2em;
    }

    .page-arcade__cta-description {
        font-size: 1.1em;
    }

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

    .page-arcade__link-list {
        flex-direction: column;
        gap: 10px;
    }
    .page-arcade__link-list a {
        width: 100%;
    }
}

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

/* Ensure content images are never smaller than 200px in the content area */
/* This rule applies to any img within .page-arcade */
.page-arcade img {
    min-width: 200px;
    min-height: 200px;
}
/* Override specific smaller images if they exist, to meet the 200px minimum */
.page-arcade__game-card-image {
    min-height: 200px; /* Ensure it's at least 200px */
}
.page-arcade__feature-icon {
    min-width: 200px; /* Ensure it's at least 200px */
    min-height: 200px; /* Ensure it's at least 200px */
}