/* style/arcade.css */
.page-arcade {
    color: #ffffff; /* Light text for dark background #0d0d0d */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

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

.page-arcade__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold primary color */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

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

.page-arcade__button--primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red */
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-arcade__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-arcade__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold */
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.page-arcade__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0; /* padding-top handled by .page-arcade */
}

.page-arcade__hero-container {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero image, adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7; /* Slightly dim the background image */
}

.page-arcade__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
    border-radius: 10px;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

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

/* Introduction Section */
.page-arcade__introduction-section {
    padding: 80px 0;
    background-color: rgba(139, 0, 0, 0.1); /* Slight red tint */
}

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

.page-arcade__feature-item {
    background-color: rgba(255, 215, 0, 0.05); /* Very subtle gold tint */
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-arcade__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 215, 0, 0.1);
}

.page-arcade__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__feature-text {
    font-size: 1em;
    color: #cccccc;
}

/* Featured Games Section */
.page-arcade__featured-games-section {
    padding: 80px 0;
}

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

.page-arcade__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-arcade__game-image {
    width: 100%;
    height: 200px; /* Ensure image height is at least 200px for content cards */
    object-fit: cover;
    display: block;
}

.page-arcade__game-card h3 {
    padding: 15px 20px 10px;
    font-size: 1.4em;
    color: #FFD700;
    font-weight: bold;
}

.page-arcade__game-card h3 a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-arcade__game-card h3 a:hover {
    color: #e6c200;
}

.page-arcade__game-description {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1; /* Make description take available space */
}

.page-arcade__game-card .page-arcade__button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}


/* Mobile Section */
.page-arcade__mobile-section {
    padding: 80px 0;
    background-color: rgba(139, 0, 0, 0.2);
}

.page-arcade__mobile-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-arcade__mobile-content {
    flex: 1;
    min-width: 300px;
}

.page-arcade__mobile-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-arcade__mobile-features li {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-arcade__mobile-features li::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-arcade__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-arcade__mobile-image {
    width: 100%;
    max-width: 500px; /* Max width for mobile image */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure no extra space below image */
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
}

/* Benefits Section */
.page-arcade__benefits-section {
    padding: 80px 0;
}

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

.page-arcade__benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-arcade__benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(139, 0, 0, 0.1);
}

.page-arcade__benefit-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__benefit-text {
    font-size: 1em;
    color: #cccccc;
}

/* Promotions Section */
.page-arcade__promotions-section {
    padding: 80px 0;
    background-color: rgba(255, 215, 0, 0.05);
}

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

.page-arcade__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-arcade__promo-image {
    width: 100%;
    height: 250px; /* Ensure image height is at least 200px */
    object-fit: cover;
    display: block;
}

.page-arcade__promo-title {
    padding: 15px 20px 10px;
    font-size: 1.4em;
    color: #FFD700;
    font-weight: bold;
}

.page-arcade__promo-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-arcade__promo-title a:hover {
    color: #e6c200;
}

.page-arcade__promo-text {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1;
}

.page-arcade__promo-card .page-arcade__button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-arcade__view-all-promos {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-arcade__faq-section {
    padding: 80px 0;
}

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

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

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

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

.page-arcade__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

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

.page-arcade__faq-answer.open {
    max-height: 500px; /* Arbitrary large value to allow content to expand */
    opacity: 1;
    padding-top: 15px;
}

.page-arcade__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-arcade__faq-answer a:hover {
    color: #e6c200;
}

/* Call to Action Section */
.page-arcade__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #8B0000; /* Dark Red background for strong CTA */
    color: #ffffff;
}

.page-arcade__cta-section .page-arcade__section-title {
    color: #FFD700;
    text-shadow: none;
}

.page-arcade__cta-section .page-arcade__section-description {
    color: #f0f0f0;
}

.page-arcade__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 3em;
    }
    .page-arcade__section-title {
        font-size: 2em;
    }
    .page-arcade__hero-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-arcade__hero-title {
        font-size: 2.5em;
    }
    .page-arcade__hero-description {
        font-size: 1.1em;
    }
    .page-arcade__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-arcade__hero-container {
        height: 400px;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__section-description {
        font-size: 1em;
    }
    .page-arcade__mobile-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-arcade__mobile-image {
        max-width: 100%; /* Ensure mobile images don't overflow */
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-arcade__games-grid,
    .page-arcade__features-grid,
    .page-arcade__benefits-grid,
    .page-arcade__promos-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__game-image,
    .page-arcade__promo-image {
        min-height: 200px; /* Ensure content images are not small */
        width: 100%;
        max-width: 100%; /* Important for mobile responsiveness */
        height: auto;
    }
    .page-arcade__game-card .page-arcade__button,
    .page-arcade__promo-card .page-arcade__button {
        width: calc(100% - 40px);
    }

    /* Content area images must be responsive and not cause overflow */
    .page-arcade__hero-section img,
    .page-arcade__introduction-section img,
    .page-arcade__featured-games-section img,
    .page-arcade__mobile-section img,
    .page-arcade__benefits-section img,
    .page-arcade__promotions-section img,
    .page-arcade__faq-section img,
    .page-arcade__cta-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__section-title {
        font-size: 1.5em;
    }
    .page-arcade__hero-container {
        height: 350px;
    }
    .page-arcade__button {
        width: 90%;
    }
    .page-arcade__cta-buttons {
        flex-direction: column;
    }
}