/* style/arcade.css */
.page-arcade {
    color: #ffffff; /* Light text for dark body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #000000; /* Dark background as per scheme */
}

.page-arcade__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.page-arcade__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-arcade__hero-title {
    font-size: 3.5rem;
    color: #FCBC45; /* Login button color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-arcade__hero-description {
    font-size: 1.2rem;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 40px;
}

.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: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    min-width: 180px;
    text-align: center;
}

.page-arcade__button:hover {
    transform: translateY(-3px);
}

.page-arcade__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

.page-arcade__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-arcade__button--register:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-arcade__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.page-arcade__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure image meets min size requirement */
    min-height: 200px;
}

.page-arcade__introduction-section,
.page-arcade__game-categories-section,
.page-arcade__why-choose-jl99,
.page-arcade__getting-started,
.page-arcade__responsible-gaming,
.page-arcade__faq-section {
    padding: 60px 20px;
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-arcade__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade__section-title {
    font-size: 2.8rem;
    color: #FCBC45;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    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.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
    text-align: justify;
}

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

.page-arcade__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-arcade__game-card-image {
    width: 100%;
    height: 280px; /* Ensuring min-size > 200px */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-arcade__game-card-title {
    font-size: 1.8rem;
    color: #FCBC45;
    margin: 25px 15px 15px;
    font-weight: bold;
}

.page-arcade__game-card-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.page-arcade__button--play,
.page-arcade__button--promo,
.page-arcade__button--info {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 12px 25px;
    font-size: 1rem;
}

.page-arcade__button--play:hover,
.page-arcade__button--promo:hover,
.page-arcade__button--info:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

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

.page-arcade__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-arcade__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-arcade__feature-title {
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-arcade__feature-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
}

.page-arcade__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-arcade__cta-bottom .page-arcade__paragraph {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FCBC45;
    margin-bottom: 30px;
}

.page-arcade__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

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

.page-arcade__step-title {
    font-size: 1.7rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-arcade__step-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-arcade__faq-list {
    margin-top: 40px;
}

.page-arcade__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    transition: background-color 0.3s ease;
}

.page-arcade__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-arcade__faq-question {
    font-size: 1.2rem;
    color: #FCBC45;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.page-arcade__faq-answer {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
    display: none; /* Hidden by default, toggled by JS */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 3rem;
    }
    .page-arcade__hero-description {
        font-size: 1.1rem;
    }
    .page-arcade__section-title {
        font-size: 2.5rem;
    }
    .page-arcade__game-card-image, .page-arcade__hero-image {
        height: auto; /* Allow image to scale */
    }
}

@media (max-width: 768px) {
    .page-arcade__hero-title {
        font-size: 2.5rem;
    }
    .page-arcade__hero-description {
        font-size: 1rem;
    }
    .page-arcade__button {
        width: 100%;
        min-width: unset;
    }
    .page-arcade__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__introduction-section,
    .page-arcade__game-categories-section,
    .page-arcade__why-choose-jl99,
    .page-arcade__getting-started,
    .page-arcade__responsible-gaming,
    .page-arcade__faq-section {
        padding: 40px 15px;
    }
    .page-arcade__section-title {
        font-size: 2rem;
    }
    .page-arcade__paragraph {
        font-size: 0.95rem;
    }
    .page-arcade__game-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__features-list {
        grid-template-columns: 1fr;
    }
    .page-arcade__game-card-image,
    .page-arcade__hero-image {
        max-width: 100%; /* Prevent overflow for images */
        height: auto;
    }
    /* Ensure all images within .page-arcade are responsive and don't overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
    .page-arcade__hero-image-container, .page-arcade__game-card {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2rem;
    }
    .page-arcade__section-title {
        font-size: 1.8rem;
    }
    .page-arcade__game-card-title {
        font-size: 1.5rem;
    }
    .page-arcade__feature-title,
    .page-arcade__step-title,
    .page-arcade__faq-question {
        font-size: 1.3rem;
    }
}