/* style/game-categories.css */

/* Variables for colors */
:root {
    --page-game-categories-primary-color: #007BFF; /* Deep Blue */
    --page-game-categories-secondary-color: #FFD700; /* Gold */
    --page-game-categories-text-dark: #333;
    --page-game-categories-text-light: #fff;
    --page-game-categories-background-light: #f8f9fa;
    --page-game-categories-background-dark: #0056b3; /* Darker blue for contrast */
    --page-game-categories-accent-orange: #ff8400; /* Complementary to primary */
    --page-game-categories-accent-blue: #0028ff; /* Complementary to secondary */
}

.page-game-categories {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--page-game-categories-text-dark);
    background-color: var(--page-game-categories-background-light);
}

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

/* Hero Section */
.page-game-categories__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--page-game-categories-primary-color), var(--page-game-categories-background-dark)); /* Darker blue for gradient */
    color: var(--page-game-categories-text-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-game-categories__hero-content {
    z-index: 1;
    max-width: 800px;
}

.page-game-categories__hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--page-game-categories-text-light); /* Ensure high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-categories__hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-game-categories-text-light); /* Ensure high contrast */
}

.page-game-categories__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

.page-game-categories__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* General Headings */
.page-game-categories h2 {
    font-size: 2.5em;
    color: var(--page-game-categories-primary-color);
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-game-categories h3 {
    font-size: 1.8em;
    color: var(--page-game-categories-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Buttons */
.page-game-categories__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-game-categories__btn--primary {
    background-color: var(--page-game-categories-secondary-color);
    color: var(--page-game-categories-background-dark); /* Dark text for contrast on gold */
    margin: 10px;
}

.page-game-categories__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
}

.page-game-categories__btn--secondary {
    background-color: var(--page-game-categories-primary-color);
    color: var(--page-game-categories-text-light);
    margin: 10px;
}

.page-game-categories__btn--secondary:hover {
    background-color: var(--page-game-categories-background-dark); /* Darker blue */
    transform: translateY(-2px);
}

.page-game-categories__btn--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-game-categories__btn--link {
    color: var(--page-game-categories-primary-color);
    background: none;
    padding: 0;
    margin: 0;
    text-decoration: underline;
}
.page-game-categories__btn--link:hover {
    color: var(--page-game-categories-background-dark);
    text-decoration: none;
    transform: none;
}


/* Introduction Section */
.page-game-categories__introduction {
    padding: 60px 0;
    background-color: var(--page-game-categories-background-light);
}

.page-game-categories__introduction p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Game Categories List */
.page-game-categories__list {
    padding: 60px 0;
    background-color: #f0f4f8; /* A very light blue-grey */
}

.page-game-categories__category-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    background-color: var(--page-game-categories-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-game-categories__category-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-game-categories__category-image {
    flex: 1;
    min-width: 300px;
    height: 350px;
}

.page-game-categories__category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-game-categories__category-content {
    flex: 2;
    padding: 40px;
    text-align: justify;
}

.page-game-categories__category-content h3 {
    margin-top: 0;
    color: var(--page-game-categories-primary-color);
}

.page-game-categories__category-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* Benefits Section */
.page-game-categories__benefits {
    padding: 60px 0;
    background-color: var(--page-game-categories-background-light);
}

.page-game-categories__benefits ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-game-categories__benefits li {
    background-color: var(--page-game-categories-text-light);
    padding: 25px;
    border-left: 5px solid var(--page-game-categories-secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    line-height: 1.8;
    position: relative;
}

.page-game-categories__benefits li strong {
    color: var(--page-game-categories-primary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-game-categories__cta {
    background: linear-gradient(45deg, var(--page-game-categories-primary-color), var(--page-game-categories-background-dark));
    color: var(--page-game-categories-text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-game-categories__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-categories__cta h2 {
    color: var(--page-game-categories-text-light);
    font-size: 2.8em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-game-categories__cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-game-categories__cta-small-text {
    font-size: 0.9em;
    margin-top: 20px;
}

.page-game-categories__cta-small-text a {
    color: var(--page-game-categories-secondary-color);
    text-decoration: underline;
}

.page-game-categories__cta-small-text a:hover {
    text-decoration: none;
    color: #e6c200;
}

/* FAQ Section */
.page-game-categories__faq {
    padding: 60px 0;
    background-color: var(--page-game-categories-background-light);
}

.page-game-categories__faq-item {
    background-color: var(--page-game-categories-text-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-categories__faq-item h3 {
    color: var(--page-game-categories-primary-color);
    font-size: 1.5em;
    margin-top: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-game-categories__faq-item p {
    margin-top: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-categories__hero h1 {
        font-size: 2.5em;
    }
    .page-game-categories h2 {
        font-size: 2em;
    }
    .page-game-categories__category-item {
        flex-direction: column;
    }
    .page-game-categories__category-item:nth-child(even) {
        flex-direction: column;
    }
    .page-game-categories__category-image {
        width: 100%;
        height: 250px;
    }
    .page-game-categories__category-content {
        padding: 30px;
    }
    .page-game-categories__benefits ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-game-categories__hero {
        padding: 60px 15px;
    }
    .page-game-categories__hero h1 {
        font-size: 2em;
    }
    .page-game-categories__hero p {
        font-size: 1em;
    }
    .page-game-categories h2 {
        font-size: 1.8em;
        margin: 40px 0 30px;
    }
    .page-game-categories h3 {
        font-size: 1.5em;
    }
    .page-game-categories__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-game-categories__btn--large {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-game-categories__introduction,
    .page-game-categories__list,
    .page-game-categories__benefits,
    .page-game-categories__cta,
    .page-game-categories__faq {
        padding: 40px 0;
    }
    .page-game-categories__category-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-game-categories__hero h1 {
        font-size: 1.8em;
    }
    .page-game-categories h2 {
        font-size: 1.5em;
    }
    .page-game-categories__container {
        padding: 0 15px;
    }
    .page-game-categories__btn {
        display: block;
        width: fit-content;
        margin: 10px auto;
    }
    .page-game-categories__category-item {
        margin-bottom: 40px;
    }
}