/* style/game-introduction.css */

/* Variables for consistency */
:root {
    --page-game-introduction-primary-color: #0A1931;
    --page-game-introduction-secondary-color: #FFD700;
    --page-game-introduction-text-light: #F5F5F5; /* For dark backgrounds */
    --page-game-introduction-text-dark: #333333; /* For light backgrounds */
    --page-game-introduction-text-accent: #FFD700; /* For highlights */
    --page-game-introduction-bg-dark: #0A1931;
    --page-game-introduction-bg-light: #FFFFFF;
    --page-game-introduction-border-color: #FFD700;
    --page-game-introduction-button-hover-bg: #e6c200; /* Slightly darker gold */
    --page-game-introduction-button-hover-text: #0A1931;
}

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

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

/* Hero Section */
.page-game-introduction__hero {
    background: var(--page-game-introduction-bg-dark); /* Dark background */
    color: var(--page-game-introduction-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-game-introduction__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-game-introduction-text-light); /* Ensure contrast */
}

.page-game-introduction__hero-title .highlight {
    color: var(--page-game-introduction-secondary-color); /* Gold highlight */
}

.page-game-introduction__hero-subtitle {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #CCCCCC; /* Slightly lighter for readability */
}

.page-game-introduction__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-game-introduction__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.page-game-introduction__button--primary {
    background-color: var(--page-game-introduction-secondary-color);
    color: var(--page-game-introduction-primary-color);
    border: 2px solid var(--page-game-introduction-secondary-color);
}

.page-game-introduction__button--primary:hover {
    background-color: var(--page-game-introduction-button-hover-bg);
    color: var(--page-game-introduction-button-hover-text);
    border-color: var(--page-game-introduction-button-hover-bg);
    transform: translateY(-2px);
}

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

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

.page-game-introduction__button--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
    background-color: var(--page-game-introduction-secondary-color);
    color: var(--page-game-introduction-primary-color);
    border: none;
    margin-top: 15px;
}

.page-game-introduction__button--small:hover {
    background-color: var(--page-game-introduction-button-hover-bg);
    transform: translateY(-1px);
}

/* General Section Styling */
.page-game-introduction__section {
    padding: 60px 0;
    text-align: center;
}

.page-game-introduction__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Light grey for alternating sections */
}

.page-game-introduction__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--page-game-introduction-primary-color);
    font-weight: bold;
}

.page-game-introduction__section-title .highlight {
    color: var(--page-game-introduction-secondary-color);
}

.page-game-introduction__text-content {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--page-game-introduction-text-dark);
}

.page-game-introduction__image-wrapper {
    margin: 40px 0;
}

.page-game-introduction__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Game Categories Section */
.page-game-introduction__game-categories {
    background-color: var(--page-game-introduction-bg-light);
}

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

.page-game-introduction__game-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-game-introduction__game-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-introduction__game-item-title {
    font-size: 1.8em;
    color: var(--page-game-introduction-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-introduction__game-item-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures descriptions take equal height */
}

/* Why Choose Section */
.page-game-introduction__why-choose {
    background-color: var(--page-game-introduction-bg-dark);
    color: var(--page-game-introduction-text-light);
}

.page-game-introduction__why-choose .page-game-introduction__section-title {
    color: var(--page-game-introduction-text-light);
}

.page-game-introduction__why-choose .page-game-introduction__section-title .highlight {
    color: var(--page-game-introduction-secondary-color);
}

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

.page-game-introduction__feature-item {
    background-color: #1A2B47; /* Slightly lighter dark for contrast */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-introduction__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* In a real scenario, this would be an SVG icon, not an image */
    filter: invert(80%) sepia(100%) saturate(500%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Example to tint a white icon gold */
}

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

.page-game-introduction__feature-description {
    font-size: 1em;
    color: #CCCCCC;
}

/* Call to Action Bottom */
.page-game-introduction__cta-bottom {
    background-color: var(--page-game-introduction-bg-light);
    padding: 80px 0;
}

.page-game-introduction__cta-content {
    background-color: var(--page-game-introduction-primary-color);
    border-radius: 15px;
    padding: 60px 40px;
    color: var(--page-game-introduction-text-light);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-game-introduction__cta-bottom .page-game-introduction__section-title {
    color: var(--page-game-introduction-text-light);
    margin-bottom: 20px;
}

.page-game-introduction__cta-bottom .page-game-introduction__section-title .highlight {
    color: var(--page-game-introduction-secondary-color);
}

.page-game-introduction__cta-bottom .page-game-introduction__text-content {
    color: #CCCCCC;
    margin-bottom: 40px;
}

.page-game-introduction__cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-introduction__hero-title {
        font-size: 2.8em;
    }
    .page-game-introduction__section-title {
        font-size: 2em;
    }
    .page-game-introduction__game-list,
    .page-game-introduction__features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-introduction__hero {
        padding: 80px 0;
    }
    .page-game-introduction__hero-title {
        font-size: 2.2em;
    }
    .page-game-introduction__hero-subtitle {
        font-size: 1em;
    }
    .page-game-introduction__hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-game-introduction__button {
        width: 80%;
        max-width: 300px;
    }
    .page-game-introduction__section {
        padding: 40px 0;
    }
    .page-game-introduction__section-title {
        font-size: 1.8em;
    }
    .page-game-introduction__text-content {
        font-size: 0.95em;
    }
    .page-game-introduction__game-list,
    .page-game-introduction__features {
        grid-template-columns: 1fr;
    }
    .page-game-introduction__cta-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-introduction__hero-title {
        font-size: 1.8em;
    }
    .page-game-introduction__section-title {
        font-size: 1.5em;
    }
    .page-game-introduction__button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-game-introduction__cta-actions {
        flex-direction: column;
    }
}