/* style/game-introduction.css */

/* Variables for consistent colors */
:root {
    --page-game-introduction-primary-color: #1A1A2E;
    --page-game-introduction-secondary-color: #E0B95B;
    --page-game-introduction-text-light: #F8F8F8; /* Light text for dark backgrounds */
    --page-game-introduction-text-dark: #1A1A2E; /* Dark text for light backgrounds */
    --page-game-introduction-background-dark: #1A1A2E;
    --page-game-introduction-background-light: #F8F8F8;
    --page-game-introduction-accent-gold: #E0B95B;
    --page-game-introduction-dark-gold: #B89A4A; /* Darker variant for contrast */
    --page-game-introduction-light-grey: #DCDCDC;
    --page-game-introduction-medium-grey: #A9A9A9;
}

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

.page-game-introduction__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-game-introduction__hero {
    background: linear-gradient(135deg, var(--page-game-introduction-primary-color), #2C2C4A);
    color: var(--page-game-introduction-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-game-introduction__hero .page-game-introduction__container {
    position: relative;
    z-index: 2;
}

.page-game-introduction__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--page-game-introduction-accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-introduction__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-introduction__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-game-introduction__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-game-introduction__btn--primary {
    background-color: var(--page-game-introduction-accent-gold);
    color: var(--page-game-introduction-primary-color);
    border: 2px solid var(--page-game-introduction-accent-gold);
}

.page-game-introduction__btn--primary:hover {
    background-color: var(--page-game-introduction-dark-gold);
    color: var(--page-game-introduction-primary-color);
    transform: translateY(-2px);
}

.page-game-introduction__btn--secondary {
    background-color: transparent;
    color: var(--page-game-introduction-accent-gold);
    border: 2px solid var(--page-game-introduction-accent-gold);
}

.page-game-introduction__btn--secondary:hover {
    background-color: var(--page-game-introduction-accent-gold);
    color: var(--page-game-introduction-primary-color);
    transform: translateY(-2px);
}

.page-game-introduction__section {
    padding: 60px 0;
}

.page-game-introduction__section:nth-of-type(even) {
    background-color: #f0f2f5; /* Slightly lighter background for contrast */
}

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

.page-game-introduction__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--page-game-introduction-accent-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-introduction__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--page-game-introduction-text-dark);
}

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

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

.page-game-introduction__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-game-introduction__feature-title {
    font-size: 1.5em;
    color: var(--page-game-introduction-accent-gold);
    margin-bottom: 15px;
}

.page-game-introduction__feature-item p {
    color: var(--page-game-introduction-text-dark);
}

.page-game-introduction__category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-introduction__category-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-introduction__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-game-introduction__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-game-introduction__category-item h3 {
    font-size: 1.6em;
    color: var(--page-game-introduction-primary-color);
    padding: 20px 20px 10px;
}

.page-game-introduction__category-item p {
    padding: 0 20px 20px;
    flex-grow: 1;
    color: var(--page-game-introduction-text-dark);
}

.page-game-introduction__category-actions {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-game-introduction__category-actions .page-game-introduction__btn {
    padding: 10px 15px;
    font-size: 0.9em;
    flex-grow: 1;
    text-align: center;
}

.page-game-introduction__link {
    color: var(--page-game-introduction-accent-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.page-game-introduction__link:hover {
    color: var(--page-game-introduction-dark-gold);
    text-decoration: underline;
}

.page-game-introduction__steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 50px auto;
    max-width: 800px;
}

.page-game-introduction__steps li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 70px;
    color: var(--page-game-introduction-text-dark);
}

.page-game-introduction__steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--page-game-introduction-accent-gold);
    color: var(--page-game-introduction-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-game-introduction__step-title {
    font-size: 1.6em;
    color: var(--page-game-introduction-primary-color);
    margin-bottom: 10px;
}

.page-game-introduction__promotions .page-game-introduction__description {
    margin-bottom: 30px;
}

.page-game-introduction__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 50px;
    max-width: 900px;
}

.page-game-introduction__promo-list li {
    background-color: #FFFFFF;
    border-left: 5px solid var(--page-game-introduction-accent-gold);
    margin-bottom: 20px;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-introduction__promo-title {
    font-size: 1.4em;
    color: var(--page-game-introduction-primary-color);
    margin-bottom: 10px;
}

.page-game-introduction__promo-list p {
    color: var(--page-game-introduction-text-dark);
}

.page-game-introduction__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-introduction__faq-item {
    background-color: #FFFFFF;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-introduction__faq-question {
    font-size: 1.3em;
    color: var(--page-game-introduction-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-game-introduction__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--page-game-introduction-accent-gold);
    transition: transform 0.3s ease;
}

.page-game-introduction__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-game-introduction__faq-answer {
    font-size: 1em;
    color: var(--page-game-introduction-text-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 0 0 0;
}

.page-game-introduction__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 10px 0 0 0;
}

.page-game-introduction__conclusion {
    background-color: var(--page-game-introduction-primary-color);
    color: var(--page-game-introduction-text-light);
    text-align: center;
    padding: 80px 0;
}

.page-game-introduction__conclusion .page-game-introduction__section-title {
    color: var(--page-game-introduction-accent-gold);
}

.page-game-introduction__conclusion .page-game-introduction__description {
    color: var(--page-game-introduction-text-light);
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-game-introduction__title {
        font-size: 2.5em;
    }

    .page-game-introduction__subtitle {
        font-size: 1.1em;
    }

    .page-game-introduction__section-title {
        font-size: 2em;
    }

    .page-game-introduction__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-introduction__btn {
        width: 80%;
        margin: 0 auto;
    }

    .page-game-introduction__steps li {
        padding-left: 60px;
    }

    .page-game-introduction__steps li::before {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .page-game-introduction__feature-title, .page-game-introduction__category-heading, .page-game-introduction__step-title, .page-game-introduction__promo-title, .page-game-introduction__faq-question {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-game-introduction__title {
        font-size: 2em;
    }

    .page-game-introduction__subtitle {
        font-size: 1em;
    }

    .page-game-introduction__section-title {
        font-size: 1.8em;
    }

    .page-game-introduction__btn {
        width: 100%;
    }
}