/* style/arcade.css */

.page-arcade {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-arcade__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-arcade__hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #FFFFFF; /* White text over hero image */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-content {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for readability */
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.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;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-arcade__button--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

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

.page-arcade__button--secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text */
    border: 2px solid #FFFFFF;
}

.page-arcade__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

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

.page-arcade__introduction-section,
.page-arcade__game-categories-section,
.page-arcade__gcash-advantage-section,
.page-arcade__how-to-play-section,
.page-arcade__why-choose-section,
.page-arcade__faq-section,
.page-arcade__cta-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade__introduction-container,
.page-arcade__game-categories-container,
.page-arcade__gcash-advantage-container,
.page-arcade__how-to-play-container,
.page-arcade__why-choose-container,
.page-arcade__faq-container,
.page-arcade__cta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-arcade__introduction-title,
.page-arcade__game-categories-title,
.page-arcade__gcash-advantage-title,
.page-arcade__how-to-play-title,
.page-arcade__why-choose-title,
.page-arcade__faq-title,
.page-arcade__cta-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #000000;
    font-weight: bold;
}

.page-arcade__introduction-text,
.page-arcade__gcash-advantage-text,
.page-arcade__cta-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 30px;
}

.page-arcade__game-categories-section {
    background-color: #f8f8f8;
}

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

.page-arcade__category-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-arcade__category-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-arcade__category-name {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 15px;
}

.page-arcade__category-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-arcade__category-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FCBC45;
    color: #000000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-arcade__category-button:hover {
    background-color: #e0a53b;
}

.page-arcade__gcash-advantage-section {
    background: linear-gradient(135deg, #000000, #333333);
    color: #FFFFFF;
}

.page-arcade__gcash-advantage-container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-arcade__gcash-advantage-content {
    flex: 1;
}

.page-arcade__gcash-advantage-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #FCBC45;
    text-align: left;
}

.page-arcade__gcash-advantage-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.page-arcade__gcash-advantage-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.page-arcade__gcash-advantage-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-arcade__gcash-advantage-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-arcade__gcash-advantage-image {
    flex: 1;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-arcade__how-to-play-section {
    background-color: #FFFFFF;
}

.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: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-arcade__step-card:hover {
    background-color: #f0f0f0;
}

.page-arcade__step-icon {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

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

.page-arcade__step-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-arcade__step-button:hover {
    background-color: #333333;
}

.page-arcade__why-choose-section {
    background-color: #f8f8f8;
}

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

.page-arcade__advantage-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-arcade__advantage-icon {
    width: 300px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-arcade__advantage-title {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 15px;
}

.page-arcade__advantage-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

.page-arcade__faq-section {
    background-color: #FFFFFF;
    text-align: left;
}

.page-arcade__faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.page-arcade__faq-question {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

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

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

.page-arcade__faq-answer {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.page-arcade__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    opacity: 1;
}

.page-arcade__faq-answer a {
    color: #FCBC45;
    text-decoration: none;
}

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

.page-arcade__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
}

.page-arcade__cta-title {
    font-size: 3rem;
    color: #FCBC45;
    margin-bottom: 20px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .page-arcade__hero-title {
        font-size: 2.8rem;
    }

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

    .page-arcade__introduction-title,
    .page-arcade__game-categories-title,
    .page-arcade__gcash-advantage-title,
    .page-arcade__how-to-play-title,
    .page-arcade__why-choose-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 2.2rem;
    }

    .page-arcade__gcash-advantage-container {
        flex-direction: column;
        text-align: center;
    }

    .page-arcade__gcash-advantage-title,
    .page-arcade__gcash-advantage-text,
    .page-arcade__gcash-advantage-list {
        text-align: center;
    }

    .page-arcade__gcash-advantage-list li {
        padding-left: 0;
    }

    .page-arcade__gcash-advantage-list li::before {
        position: static;
        margin-right: 10px;
    }

    .page-arcade__gcash-advantage-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-arcade__hero-title {
        font-size: 2.2rem;
    }

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

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

    .page-arcade__button {
        width: 100%;
    }

    .page-arcade__introduction-title,
    .page-arcade__game-categories-title,
    .page-arcade__gcash-advantage-title,
    .page-arcade__how-to-play-title,
    .page-arcade__why-choose-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 1.8rem;
    }

    .page-arcade__introduction-text,
    .page-arcade__gcash-advantage-text,
    .page-arcade__cta-description {
        font-size: 0.95rem;
    }

    .page-arcade__category-grid,
    .page-arcade__steps-grid,
    .page-arcade__advantages-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure all images within .page-arcade are responsive and do not overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }

    /* Specific check for content images to ensure they are not too small */
    .page-arcade__category-image,
    .page-arcade__gcash-advantage-image,
    .page-arcade__step-icon,
    .page-arcade__advantage-icon {
        min-width: 200px; /* Maintain minimum display size */
        min-height: 200px; /* Maintain minimum display size */
        width: 100%; /* Allow scaling up to 100% of container */
        height: auto; /* Maintain aspect ratio */
    }

    /* Override any specific selectors that might inadvertently shrink images */
    .page-arcade__step-icon,
    .page-arcade__advantage-icon {
        width: 200px; /* Explicitly set to minimum allowed if smaller */
        height: auto;
    }
}

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

    .page-arcade__hero-description {
        font-size: 0.9rem;
    }

    .page-arcade__button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-arcade__introduction-title,
    .page-arcade__game-categories-title,
    .page-arcade__gcash-advantage-title,
    .page-arcade__how-to-play-title,
    .page-arcade__why-choose-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 1.5rem;
    }
}