/* style/index-game-selection.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f8f8;
    --card-bg: rgba(255, 255, 255, 0.08);
    --border-color: #444444;
}

.page-index-game-selection {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light background */
    background-color: var(--bg-light);
}

.page-index-game-selection__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index-game-selection__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-index-game-selection__section-description,
.page-index-game-selection__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

/* Hero Section */
.page-index-game-selection__hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

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

.page-index-game-selection__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-index-game-selection__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-index-game-selection__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-game-selection__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index-game-selection__btn-primary,
.page-index-game-selection__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-game-selection__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.page-index-game-selection__btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}

.page-index-game-selection__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index-game-selection__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* About Section */
.page-index-game-selection__about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Game Categories */
.page-index-game-selection__game-categories {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-game-selection__game-categories .page-index-game-selection__section-title {
    color: var(--primary-color);
}

.page-index-game-selection__game-categories .page-index-game-selection__section-description {
    color: var(--text-light);
}

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

.page-index-game-selection__category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-index-game-selection__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-index-game-selection__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index-game-selection__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-index-game-selection__card-text {
    padding: 0 20px 20px;
    flex-grow: 1;
    font-size: 0.95em;
}

/* Why Choose Us Section */
.page-index-game-selection__why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-index-game-selection__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-index-game-selection__feature-item:hover {
    transform: translateY(-5px);
}

.page-index-game-selection__feature-icon {
    width: 100%; /* Ensure it's not a small icon */
    max-width: 250px; /* Example max size for a feature icon */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-game-selection__feature-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index-game-selection__feature-description {
    font-size: 1em;
    color: #555555;
}

.page-index-game-selection__feature-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-index-game-selection__feature-description a:hover {
    text-decoration: underline;
}

/* Video Section */
.page-index-game-selection__video-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

.page-index-game-selection__video-section .page-index-game-selection__section-title {
    color: var(--primary-color);
}

.page-index-game-selection__video-section .page-index-game-selection__section-description {
    color: var(--text-light);
}

.page-index-game-selection__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 50px auto 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.page-index-game-selection__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-index-game-selection__video-cta {
    text-align: center;
    margin-top: 30px;
}

/* Promotions CTA Section */
.page-index-game-selection__promotions-cta {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

/* FAQ Section */
.page-index-game-selection__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-game-selection__faq-section .page-index-game-selection__section-title {
    color: var(--primary-color);
}

.page-index-game-selection__faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.page-index-game-selection__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-game-selection__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-index-game-selection__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-index-game-selection__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-index-game-selection__faq-item.active .page-index-game-selection__faq-toggle {
    transform: rotate(45deg);
}

.page-index-game-selection__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    font-size: 1em;
}

.page-index-game-selection__faq-item.active .page-index-game-selection__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-index-game-selection__faq-answer p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Final CTA Section */
.page-index-game-selection__cta-final {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
}

/* Dark background text color override */
.page-index-game-selection__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-game-selection__dark-bg .page-index-game-selection__section-title,
.page-index-game-selection__dark-bg .page-index-game-selection__section-description,
.page-index-game-selection__dark-bg .page-index-game-selection__text-block {
    color: var(--text-light);
}

/* Light background text color override */
.page-index-game-selection__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-index-game-selection__light-bg .page-index-game-selection__section-title,
.page-index-game-selection__light-bg .page-index-game-selection__section-description,
.page-index-game-selection__light-bg .page-index-game-selection__text-block {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-game-selection__hero-title {
        font-size: 3em;
    }
    .page-index-game-selection__hero-description {
        font-size: 1.2em;
    }
    .page-index-game-selection__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index-game-selection__hero-section {
        height: auto;
        min-height: 70vh;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-index-game-selection__hero-content {
        padding: 15px;
    }

    .page-index-game-selection__hero-title {
        font-size: 2.2em;
    }

    .page-index-game-selection__hero-description {
        font-size: 1em;
    }

    .page-index-game-selection__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-game-selection__btn-primary,
    .page-index-game-selection__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-game-selection__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-index-game-selection__section-description,
    .page-index-game-selection__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-index-game-selection__category-grid,
    .page-index-game-selection__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-game-selection__about-section,
    .page-index-game-selection__game-categories,
    .page-index-game-selection__why-choose-us,
    .page-index-game-selection__video-section,
    .page-index-game-selection__promotions-cta,
    .page-index-game-selection__faq-section,
    .page-index-game-selection__cta-final {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-index-game-selection img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-game-selection__section,
    .page-index-game-selection__card,
    .page-index-game-selection__container,
    .page-index-game-selection__category-card,
    .page-index-game-selection__feature-item,
    .page-index-game-selection__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile video responsiveness */
    .page-index-game-selection video,
    .page-index-game-selection__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-game-selection__video-section,
    .page-index-game-selection__video-container,
    .page-index-game-selection__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-index-game-selection {
        overflow-x: hidden;
    }
}