/* style/arcade.css */
.page-arcade {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-arcade__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000; /* Dark background for hero section */
}

.page-arcade__hero-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
}

.page-arcade__hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6; /* Slightly dim the image to make text pop */
    object-fit: cover;
}

.page-arcade__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    padding: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-arcade__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-arcade__hero-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__hero-button:hover {
    background-color: #e0a33c;
    transform: translateY(-3px);
}

.page-arcade__introduction-section,
.page-arcade__game-types-section,
.page-arcade__features-section,
.page-arcade__guide-section,
.page-arcade__faq-section,
.page-arcade__cta-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

.page-arcade__introduction-container,
.page-arcade__game-types-container,
.page-arcade__features-container,
.page-arcade__guide-container,
.page-arcade__faq-container,
.page-arcade__cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade__introduction-title,
.page-arcade__game-types-title,
.page-arcade__features-title,
.page-arcade__guide-title,
.page-arcade__faq-title,
.page-arcade__cta-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #000000;
}

.page-arcade__introduction-text,
.page-arcade__game-types-description,
.page-arcade__features-description,
.page-arcade__guide-description,
.page-arcade__faq-description,
.page-arcade__cta-description {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-arcade__game-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-arcade__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

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

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

.page-arcade__game-card-title a:hover {
    color: #FCBC45;
}

.page-arcade__game-card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-arcade__game-card-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.page-arcade__game-card-button:hover {
    background-color: #e0a33c;
}

.page-arcade__features-section {
    background-color: #000000;
    color: #FFFFFF;
}

.page-arcade__features-title {
    color: #FFFFFF;
}

.page-arcade__features-description {
    color: #e0e0e0;
}

.page-arcade__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 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;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.page-arcade__feature-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-arcade__feature-heading {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 10px;
}

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

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

.page-arcade__guide-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-arcade__guide-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-arcade__guide-card-title {
    font-size: 1.8em;
    color: #000000;
    margin: 20px 20px 10px;
}

.page-arcade__guide-card-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.page-arcade__guide-card-title a:hover {
    color: #FCBC45;
}

.page-arcade__guide-card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-arcade__guide-card-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.page-arcade__guide-card-button:hover {
    background-color: #e0a33c;
}

.page-arcade__faq-items {
    margin-top: 40px;
    text-align: left;
}

.page-arcade__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__faq-question {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-arcade__faq-question::after {
    content: '+';
    font-size: 1.2em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

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

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

.page-arcade__faq-answer.active {
    max-height: 200px; /* Adjust based on content */
    padding-top: 15px;
}

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

.page-arcade__cta-title {
    color: #FFFFFF;
    font-size: 3em;
}

.page-arcade__cta-description {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 40px;
}

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

.page-arcade__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__cta-button--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-arcade__cta-button--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.page-arcade__cta-button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-arcade__cta-button--login:hover {
    background-color: #e0a33c;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 2.8em;
    }
    .page-arcade__hero-description {
        font-size: 1.1em;
    }
    .page-arcade__introduction-title,
    .page-arcade__game-types-title,
    .page-arcade__features-title,
    .page-arcade__guide-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-arcade__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    }
    .page-arcade__hero-content {
        padding: 15px;
    }
    .page-arcade__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-arcade__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-arcade__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-arcade__introduction-title,
    .page-arcade__game-types-title,
    .page-arcade__features-title,
    .page-arcade__guide-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 1.8em;
    }
    .page-arcade__introduction-text,
    .page-arcade__game-types-description,
    .page-arcade__features-description,
    .page-arcade__guide-description,
    .page-arcade__faq-description,
    .page-arcade__cta-description {
        font-size: 0.95em;
    }
    .page-arcade__game-cards,
    .page-arcade__feature-list,
    .page-arcade__guide-cards {
        grid-template-columns: 1fr;
    }
    .page-arcade__game-card-image,
    .page-arcade__guide-card-image {
        height: 200px;
    }
    .page-arcade__feature-icon {
        width: 200px;
        height: 200px;
    }
    .page-arcade__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__cta-button {
        width: 100%;
        max-width: 300px;
        font-size: 1.1em;
    }
    /* Ensure all images within .page-arcade are responsive and do not overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
    /* Specific override for smaller images if they somehow get styled less than 200px */
    .page-arcade__feature-icon {
        max-width: 200px;
        height: auto;
    }
    .page-arcade__game-card-image, .page-arcade__guide-card-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure images are not too small */
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 1.8em;
    }
    .page-arcade__hero-description {
        font-size: 0.9em;
    }
    .page-arcade__hero-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-arcade__introduction-title,
    .page-arcade__game-types-title,
    .page-arcade__features-title,
    .page-arcade__guide-title,
    .page-arcade__faq-title,
    .page-arcade__cta-title {
        font-size: 1.5em;
    }
    .page-arcade__faq-question {
        font-size: 1.2em;
    }
    .page-arcade__faq-answer {
        font-size: 0.9em;
    }
}