/* style/game-guides.css */

/* Variables from custom palette */
:root {
    --page-game-guides-primary-color: #11A84E;
    --page-game-guides-secondary-color: #22C768;
    --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-game-guides-card-bg: #11271B;
    --page-game-guides-background: #08160F;
    --page-game-guides-text-main: #F2FFF6;
    --page-game-guides-text-secondary: #A7D9B8;
    --page-game-guides-border-color: #2E7A4E;
    --page-game-guides-glow-color: #57E38D;
    --page-game-guides-gold-color: #F2C14E;
    --page-game-guides-divider-color: #1E3A2A;
    --page-game-guides-deep-green: #0A4B2C;
}

.page-game-guides {
    background-color: var(--page-game-guides-background);
    color: var(--page-game-guides-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image for better visual flow */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
    border-radius: 10px;
}

.page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3.2em);
    color: var(--page-game-guides-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides__description {
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-game-guides-button-gradient);
    color: var(--page-game-guides-text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-game-guides__cta-button--secondary {
    background: none;
    border: 2px solid var(--page-game-guides-primary-color);
    color: var(--page-game-guides-primary-color);
}

.page-game-guides__cta-button--secondary:hover {
    background: var(--page-game-guides-primary-color);
    color: var(--page-game-guides-text-main);
}

.page-game-guides__introduction-section,
.page-game-guides__game-categories-section,
.page-game-guides__strategy-section,
.page-game-guides__responsible-gaming-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-game-guides-divider-color);
}

.page-game-guides__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: var(--page-game-guides-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-guides__sub-title {
    font-size: clamp(1.4em, 3vw, 1.8em);
    color: var(--page-game-guides-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__text-block {
    font-size: 1.1em;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-game-guides__card {
    background-color: var(--page-game-guides-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

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

.page-game-guides__card-title {
    font-size: 1.4em;
    color: var(--page-game-guides-gold-color);
    padding: 15px 20px 5px;
    font-weight: bold;
}

.page-game-guides__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--page-game-guides-primary-color);
}

.page-game-guides__card-description {
    font-size: 0.95em;
    color: var(--page-game-guides-text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-game-guides__card-link {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--page-game-guides-deep-green);
    color: var(--page-game-guides-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-top: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__card-link:hover {
    background-color: var(--page-game-guides-primary-color);
    color: var(--page-game-guides-text-main);
}

.page-game-guides__responsible-gaming-section {
    text-align: center;
}

.page-game-guides__responsible-gaming-section .page-game-guides__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__faq-list {
    margin-top: 30px;
}

.page-game-guides__faq-item {
    background-color: var(--page-game-guides-card-bg);
    border: 1px solid var(--page-game-guides-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-item[open] {
    background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-game-guides-text-main);
    cursor: pointer;
    position: relative;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
    color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--page-game-guides-primary-color);
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--page-game-guides-text-secondary);
}

.page-game-guides__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-game-guides__faq-answer a {
    color: var(--page-game-guides-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

.page-game-guides__cta-section {
    text-align: center;
}

.page-game-guides__cta-section .page-game-guides__text-block {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -100px;
    }
    .page-game-guides__game-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        padding-bottom: 40px;
    }
    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 15px;
    }
    .page-game-guides__main-title {
        font-size: 2em;
    }
    .page-game-guides__description {
        font-size: 1em;
    }
    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__cta-section .page-game-guides__cta-button {
        padding: 15px 30px;
    }
    .page-game-guides__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-game-guides__introduction-section,
    .page-game-guides__game-categories-section,
    .page-game-guides__strategy-section,
    .page-game-guides__responsible-gaming-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }
    .page-game-guides__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.5em;
    }
    .page-game-guides__text-block {
        font-size: 1em;
    }
    .page-game-guides__game-cards {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card {
        margin: 0 10px;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        margin-top: -60px;
    }
    .page-game-guides__main-title {
        font-size: 1.8em;
    }
    .page-game-guides__description {
        font-size: 0.9em;
    }
    .page-game-guides__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__faq-question {
        font-size: 1em;
    }
}

/* Ensure no filter is applied to images */
.page-game-guides img {
    filter: none; /* Reset any potential filter */
}

/* Content area images CSS dimensions check */
.page-game-guides__card-image {
    min-width: 200px;
    min-height: 200px;
}

.page-game-guides__hero-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure contrast for links */
.page-game-guides a {
    color: var(--page-game-guides-primary-color);
}

.page-game-guides a:hover {
    color: var(--page-game-guides-gold-color);
}