/* style/arcade.css */

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

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

.page-arcade__section-title {
    font-size: 2.5em;
    color: #000000;
    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: #FCBC45; /* Login button color for emphasis */
    border-radius: 2px;
}

.page-arcade__section-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero text contrast */
    color: #FFFFFF;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-arcade__hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

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

.page-arcade__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* HTML width/height attributes handle aspect ratio, CSS ensures full cover */
}

.page-arcade__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #F0F0F0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-arcade__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
}

.page-arcade__button--primary:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

.page-arcade__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

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

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

.page-arcade__button--tertiary:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 1em;
    min-width: 150px;
    margin-top: 15px;
}

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

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

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

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

.page-arcade__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 25px;
}

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

.page-arcade__game-card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 25px;
    margin-bottom: 20px;
}

/* Why Winph111 Section */
.page-arcade__why-winph111 {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

.page-arcade__feature-item:hover {
    background-color: rgba(252, 188, 69, 0.1);
}

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

.page-arcade__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Get Started Section */
.page-arcade__get-started {
    padding: 80px 0;
    background-color: #000000; /* Dark background for this section */
    color: #FFFFFF;
    text-align: center;
}

.page-arcade__get-started .page-arcade__section-title {
    color: #FFFFFF;
}

.page-arcade__get-started .page-arcade__section-title::after {
    background-color: #FCBC45;
}

.page-arcade__get-started .page-arcade__section-text {
    color: #F0F0F0;
}

.page-arcade__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
    margin-bottom: 60px;
}

.page-arcade__step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: background-color 0.3s ease;
}

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

.page-arcade__step-title {
    font-size: 1.5em;
    color: #FCBC45; /* Accent color for step titles */
    margin-bottom: 15px;
}

.page-arcade__step-description {
    font-size: 1em;
    color: #E0E0E0;
}

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

/* Tips Section */
.page-arcade__tips-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

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

.page-arcade__tip-item {
    background-color: #FFFFFF;
    border-left: 5px solid #FCBC45;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-arcade__tip-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
}

.page-arcade__tip-description {
    font-size: 1em;
    color: #555555;
}

/* Detail Page Promo Section */
.page-arcade__detail-page-promo {
    padding: 80px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.page-arcade__detail-card {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-arcade__detail-card-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 15px;
}

.page-arcade__detail-card-link {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.page-arcade__detail-card-link:hover {
    color: #FCBC45;
}

.page-arcade__detail-card-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

/* Responsible Gaming Section */
.page-arcade__responsible-gaming {
    padding: 80px 0;
    background-color: #F0F0F0;
    text-align: center;
}

/* Final CTA Section */
.page-arcade__final-cta {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-arcade__final-cta .page-arcade__section-title {
    color: #FFFFFF;
}

.page-arcade__final-cta .page-arcade__section-title::after {
    background-color: #FCBC45;
}

.page-arcade__final-cta .page-arcade__section-text {
    color: #F0F0F0;
}


/* 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: 2em;
    }
}

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-arcade__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .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%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .page-arcade__game-grid,
    .page-arcade__features-list,
    .page-arcade__steps-list,
    .page-arcade__tips-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-arcade__game-card-image {
        height: 200px; /* Adjust height for smaller screens, > 200px */
    }
    .page-arcade__game-card-title {
        font-size: 1.5em;
    }

    .page-arcade__feature-title,
    .page-arcade__step-title,
    .page-arcade__tip-title {
        font-size: 1.3em;
    }

    .page-arcade__detail-card-title {
        font-size: 1.5em;
    }

    /* Important: Mobile content images must not overflow */
    .page-arcade__container img,
    .page-arcade__game-card-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__hero-description {
        font-size: 0.95em;
    }
    .page-arcade__section-title {
        font-size: 1.5em;
    }
    .page-arcade__section-text {
        font-size: 0.9em;
    }
}