/* style/arcade-games.css */

:root {
    --plus777-gold: #FFD700;
    --plus777-red: #8B0000;
    --plus777-dark: #1a1a1a;
    --plus777-light-gray: #f5f5f5;
    --plus777-text-dark: #333333;
    --plus777-text-light: #ffffff;
}

.page-arcade-games {
    font-family: Arial, sans-serif;
    color: var(--plus777-text-dark);
    background-color: var(--plus777-light-gray);
}

.page-arcade-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-arcade-games__section-title {
    font-size: 2.5em;
    color: var(--plus777-dark);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-arcade-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--plus777-gold);
    border-radius: 2px;
}

.page-arcade-games__section-description {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary,
.page-arcade-games__btn-play {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-arcade-games__btn-primary {
    background-color: var(--plus777-gold);
    color: var(--plus777-text-light);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-arcade-games__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-arcade-games__btn-secondary {
    background-color: transparent;
    color: var(--plus777-gold);
    border: 2px solid var(--plus777-gold);
}

.page-arcade-games__btn-secondary:hover {
    background-color: var(--plus777-gold);
    color: var(--plus777-text-light);
    transform: translateY(-2px);
}

.page-arcade-games__btn-play {
    background-color: var(--plus777-red);
    color: var(--plus777-text-light);
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-arcade-games__btn-play:hover {
    background-color: #a00000;
    transform: translateY(-1px);
}

/* Hero Section */
.page-arcade-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--plus777-text-light);
    overflow: hidden;
    padding-top: 10px; /* Small top padding to avoid double spacing with body */
}

.page-arcade-games__hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    position: relative; /* Ensure image is part of document flow */
}

.page-arcade-games__hero-content {
    padding: 60px 20px;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    margin-top: -100px; /* Overlap with image for visual flow */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-arcade-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--plus777-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #f0f0f0;
}

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

/* Game Categories Section */
.page-arcade-games__game-categories {
    padding: 80px 0;
    background-color: var(--plus777-light-gray);
}

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

.page-arcade-games__category-card {
    background-color: var(--plus777-text-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade-games__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__category-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.page-arcade-games__category-title {
    font-size: 1.5em;
    color: var(--plus777-dark);
    margin-bottom: 10px;
}

.page-arcade-games__category-text {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Featured Games Section */
.page-arcade-games__featured-games {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-arcade-games__game-card {
    background-color: var(--plus777-text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-arcade-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-arcade-games__game-title {
    font-size: 1.4em;
    color: var(--plus777-dark);
    margin: 20px 15px 5px;
}

.page-arcade-games__game-provider {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.page-arcade-games__game-card .page-arcade-games__btn-play {
    margin-top: auto; /* Push button to bottom */
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.page-arcade-games__view-all-wrapper {
    text-align: center;
}

/* Why Play Section */
.page-arcade-games__why-play {
    padding: 80px 0;
    background-color: var(--plus777-text-light);
}

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

.page-arcade-games__feature-item {
    background-color: var(--plus777-light-gray);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade-games__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-arcade-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.page-arcade-games__feature-title {
    font-size: 1.6em;
    color: var(--plus777-dark);
    margin-bottom: 10px;
}

.page-arcade-games__feature-text {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.page-arcade-games__cta-wrapper {
    text-align: center;
}

/* How to Play Section */
.page-arcade-games__how-to-play {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-arcade-games__step-card {
    background-color: var(--plus777-text-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-arcade-games__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade-games__step-number {
    font-size: 3em;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.3);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.page-arcade-games__step-title {
    font-size: 1.6em;
    color: var(--plus777-dark);
    margin-top: 50px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-arcade-games__step-text {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Game Providers Section */
.page-arcade-games__game-providers {
    padding: 80px 0;
    background-color: var(--plus777-dark);
    color: var(--plus777-text-light);
}

.page-arcade-games__game-providers .page-arcade-games__section-title {
    color: var(--plus777-gold);
}

.page-arcade-games__game-providers .page-arcade-games__section-description {
    color: #ccc;
}

.page-arcade-games__providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.page-arcade-games__provider-logo {
    width: 100%;
    max-width: 167px;
    height: 127px;
    object-fit: contain;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-arcade-games__provider-logo:hover {
    transform: scale(1.05);
    background-color: rgba(255, 215, 0, 0.1);
}

/* FAQ Section */
.page-arcade-games__faq-section {
    padding: 80px 0;
    background-color: var(--plus777-light-gray);
}

.page-arcade-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-arcade-games__faq-item {
    background-color: var(--plus777-text-light);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-arcade-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--plus777-dark);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-arcade-games__faq-question:hover {
    background-color: #f9f9f9;
}

.page-arcade-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
}

.page-arcade-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: var(--plus777-gold);
    transition: transform 0.3s ease;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-toggle {
    transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    line-height: 1.6;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-arcade-games__hero-title {
        font-size: 3em;
    }
    .page-arcade-games__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-arcade-games__hero-section {
        padding-top: 10px !important;
    }
    .page-arcade-games__hero-image {
        height: 400px;
    }
    .page-arcade-games__hero-content {
        padding: 40px 20px;
        margin-top: -80px;
    }
    .page-arcade-games__hero-title {
        font-size: 2.2em;
    }
    .page-arcade-games__hero-description {
        font-size: 1em;
    }
    .page-arcade-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade-games__btn-primary,
    .page-arcade-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .page-arcade-games__section-title {
        font-size: 2em;
    }
    .page-arcade-games__section-description {
        font-size: 0.95em;
    }
    
    .page-arcade-games__game-categories,
    .page-arcade-games__featured-games,
    .page-arcade-games__why-play,
    .page-arcade-games__how-to-play,
    .page-arcade-games__game-providers,
    .page-arcade-games__faq-section {
        padding: 50px 0;
    }

    .page-arcade-games__category-icon {
        width: 50px;
        height: 50px;
    }
    .page-arcade-games__category-title {
        font-size: 1.3em;
    }

    .page-arcade-games__game-thumbnail {
        height: 180px;
    }
    .page-arcade-games__game-title {
        font-size: 1.2em;
    }

    .page-arcade-games__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-arcade-games__feature-title {
        font-size: 1.4em;
    }

    .page-arcade-games__step-number {
        font-size: 2.5em;
    }
    .page-arcade-games__step-title {
        font-size: 1.4em;
        margin-top: 40px;
    }

    .page-arcade-games__provider-logo {
        max-width: 120px;
        height: 90px;
    }

    .page-arcade-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-arcade-games__faq-question h3 {
        font-size: 1.1em;
    }
    .page-arcade-games__faq-toggle {
        font-size: 1.5em;
    }
    .page-arcade-games__faq-answer {
        padding: 0 20px;
    }
    .page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image and container responsiveness */
    .page-arcade-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-arcade-games__hero-image {
        width: 100% !important;
        height: auto !important; /* Adjust height for better mobile display */
        max-height: 400px !important;
    }

    .page-arcade-games__section,
    .page-arcade-games__card,
    .page-arcade-games__container,
    .page-arcade-games__hero-section,
    .page-arcade-games__game-categories,
    .page-arcade-games__featured-games,
    .page-arcade-games__why-play,
    .page-arcade-games__how-to-play,
    .page-arcade-games__game-providers,
    .page-arcade-games__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mobile button responsiveness */
    .page-arcade-games__btn-primary,
    .page-arcade-games__btn-secondary,
    .page-arcade-games__btn-play,
    .page-arcade-games a[class*="button"],
    .page-arcade-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-arcade-games__hero-buttons,
    .page-arcade-games__cta-buttons,
    .page-arcade-games__button-group,
    .page-arcade-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Handled by parent section padding */
        padding-right: 0 !important; /* Handled by parent section padding */
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-arcade-games__hero-buttons {
        flex-direction: column !important;
    }
}