/* style/arcade.css */

/* Base styles for the arcade page */
.page-arcade {
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-arcade__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.page-arcade__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.page-arcade__button--primary {
    background-color: #0A2463; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #0A2463;
}

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

.page-arcade__button--secondary {
    background-color: #FFD700; /* Secondary brand color */
    color: #0A2463; /* Primary brand color */
    border: 2px solid #FFD700;
}

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

.page-arcade__button--small {
    padding: 8px 18px;
    font-size: 0.95em;
}

.page-arcade__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

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

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

.page-arcade__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-arcade__hero-actions .page-arcade__button {
    margin: 0 10px;
}

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

/* Features Section */
.page-arcade__features-section {
    padding: 60px 0;
    background-color: #0A2463; /* Primary brand color as background */
    color: #ffffff;
}

.page-arcade__features-section .page-arcade__section-title,
.page-arcade__features-section .page-arcade__section-title::after {
    color: #ffffff;
    background-color: #FFD700; /* Secondary brand color for line */
}

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

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

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

.page-arcade__feature-icon {
    width: 200px; /* Minimum size */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-arcade__feature-card .page-arcade__card-title {
    color: #FFD700; /* Secondary brand color */
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-arcade__feature-card .page-arcade__card-description {
    color: #f0f0f0;
}

/* Game Showcase Section */
.page-arcade__game-showcase {
    padding: 60px 0;
    background-color: #ffffff;
}

.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: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-arcade__game-image {
    width: 100%;
    height: 200px; /* Ensure images are not too small */
    object-fit: cover;
    display: block;
}

.page-arcade__game-card .page-arcade__card-title {
    color: #0A2463;
    font-size: 1.4em;
    margin: 15px 10px 10px;
}

.page-arcade__game-card .page-arcade__card-description {
    color: #555555;
    padding: 0 15px 15px;
    font-size: 0.95em;
}

.page-arcade__game-card .page-arcade__button {
    margin-bottom: 20px;
}

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

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

.page-arcade__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.page-arcade__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFD700;
    color: #0A2463;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #0A2463;
}

.page-arcade__step-card .page-arcade__card-title {
    color: #0A2463;
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-arcade__step-card .page-arcade__card-description {
    color: #555555;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-arcade__promotions-section {
    padding: 60px 0;
    background-color: #0A2463;
    color: #ffffff;
}

.page-arcade__promotions-section .page-arcade__section-title,
.page-arcade__promotions-section .page-arcade__section-title::after {
    color: #ffffff;
    background-color: #FFD700;
}

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

.page-arcade__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-arcade__promo-image {
    width: 100%;
    height: 250px; /* Ensure images are not too small */
    object-fit: cover;
    display: block;
}

.page-arcade__promo-card .page-arcade__card-title {
    color: #FFD700;
    font-size: 1.5em;
    margin: 15px 10px 10px;
}

.page-arcade__promo-card .page-arcade__card-description {
    color: #f0f0f0;
    padding: 0 15px 15px;
}

.page-arcade__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-arcade__faq-question {
    color: #0A2463;
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

/* Contact CTA Section */
.page-arcade__contact-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #e6eef7;
}

.page-arcade__contact-cta .page-arcade__section-title {
    color: #0A2463;
}

.page-arcade__contact-cta .page-arcade__text-content {
    margin-bottom: 30px;
}

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

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
    }
    .page-arcade__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    .page-arcade__hero-content {
        padding: 15px;
    }
    .page-arcade__hero-title {
        font-size: 2.5em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__hero-actions {
        flex-direction: column;
    }
    .page-arcade__hero-actions .page-arcade__button {
        margin: 10px 0;
        width: 80%;
    }
    .page-arcade__section-title {
        font-size: 2em;
    }
    .page-arcade__features-grid,
    .page-arcade__game-grid,
    .page-arcade__steps-grid,
    .page-arcade__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__container {
        padding: 0 15px;
    }
    /* Mobile specific image handling to prevent overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
    .page-arcade__feature-icon,
    .page-arcade__game-image,
    .page-arcade__promo-image {
        height: auto; /* Allow height to adjust proportionally */
        min-height: 200px; /* Ensure minimum height */
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__text-content {
        font-size: 0.95em;
    }
    .page-arcade__button {
        font-size: 1em;
        padding: 10px 20px;
    }
    .page-arcade__hero-actions .page-arcade__button {
        width: 90%;
    }
}