/* style/hot-games-recommendation.css */

/* Custom Colors from prompt */
:root {
    --page-bg: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --btn-gradient-start: #2AD16F; /* Button */
    --btn-gradient-end: #13994A; /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
    --primary-color: #11A84E; /* Main color from prompt */
    --secondary-color-aux: #22C768; /* Aux color from prompt, renamed to avoid conflict with --text-secondary */
}

.page-hot-games-recommendation {
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

.page-hot-games-recommendation__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 40px;
    background-color: var(--deep-green); /* Use a dark background for the hero section */
}

.page-hot-games-recommendation__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
    filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-hot-games-recommendation__hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: var(--text-main);
}

.page-hot-games-recommendation__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-hot-games-recommendation__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-hot-games-recommendation__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-hot-games-recommendation__btn-primary,
.page-hot-games-recommendation__btn-secondary,
.page-hot-games-recommendation__btn-tertiary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-hot-games-recommendation__btn-primary {
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-hot-games-recommendation__btn-primary:hover {
    background: linear-gradient(180deg, var(--btn-gradient-end) 0%, var(--btn-gradient-start) 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-hot-games-recommendation__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-hot-games-recommendation__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--page-bg);
    transform: translateY(-2px);
}

.page-hot-games-recommendation__btn-tertiary {
    background-color: var(--deep-green);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-hot-games-recommendation__btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
}

.page-hot-games-recommendation__section {
    padding: 60px 0;
    border-top: 1px solid var(--divider-color);
}

.page-hot-games-recommendation__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-hot-games-recommendation__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hot-games-recommendation__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-hot-games-recommendation__games-overview {
    background-color: var(--page-bg);
}

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

.page-hot-games-recommendation__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-hot-games-recommendation__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-hot-games-recommendation__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-hot-games-recommendation__card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 20px 10px 20px;
    font-weight: 600;
}

.page-hot-games-recommendation__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 20px 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-hot-games-recommendation__game-card .page-hot-games-recommendation__btn-tertiary {
    align-self: flex-start; /* Align button to start */
    margin-left: 20px;
    margin-top: auto; /* Push button to bottom */
}

.page-hot-games-recommendation__giftcode-benefits {
    background-color: var(--deep-green);
}

.page-hot-games-recommendation__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-hot-games-recommendation__benefit-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-hot-games-recommendation__benefit-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-hot-games-recommendation__benefit-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-hot-games-recommendation__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-hot-games-recommendation__how-to-get-giftcode {
    background-color: var(--page-bg);
}

.page-hot-games-recommendation__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-hot-games-recommendation__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-hot-games-recommendation__step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(34, 199, 104, 0.3);
}

.page-hot-games-recommendation__step-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-hot-games-recommendation__step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.page-hot-games-recommendation__related-promotions {
    background-color: var(--deep-green);
}

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

.page-hot-games-recommendation__promotion-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-hot-games-recommendation__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-hot-games-recommendation__promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-hot-games-recommendation__faq-section {
    background-color: var(--page-bg);
}

.page-hot-games-recommendation__faq-list {
    margin-top: 40px;
}

.page-hot-games-recommendation__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-hot-games-recommendation__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

.page-hot-games-recommendation__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details summary in Webkit */
}

.page-hot-games-recommendation__faq-question:hover {
    background-color: var(--primary-color);
}

.page-hot-games-recommendation__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-hot-games-recommendation__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-hot-games-recommendation__faq-answer p {
    margin: 0;
}

.page-hot-games-recommendation__final-cta {
    background-color: var(--deep-green);
    text-align: center;
    padding-bottom: 80px;
}

.page-hot-games-recommendation__cta-content {
    max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-hot-games-recommendation__hero-content {
        padding: 0 15px;
    }
    .page-hot-games-recommendation__main-title {
        font-size: clamp(2rem, 5.5vw, 3rem);
    }
    .page-hot-games-recommendation__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
    .page-hot-games-recommendation__game-image,
    .page-hot-games-recommendation__promotion-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-hot-games-recommendation {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-hot-games-recommendation__hero-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .page-hot-games-recommendation__section {
        padding: 40px 0;
    }
    .page-hot-games-recommendation__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure container fills width */
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-hot-games-recommendation__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-hot-games-recommendation__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-hot-games-recommendation__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-hot-games-recommendation__btn-primary,
    .page-hot-games-recommendation__btn-secondary,
    .page-hot-games-recommendation__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-hot-games-recommendation__game-card,
    .page-hot-games-recommendation__benefit-item,
    .page-hot-games-recommendation__step-item,
    .page-hot-games-recommendation__promotion-card {
        padding: 20px;
    }

    .page-hot-games-recommendation__game-image,
    .page-hot-games-recommendation__promotion-image,
    .page-hot-games-recommendation__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all img elements in content sections are responsive */
    .page-hot-games-recommendation img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-hot-games-recommendation__game-categories,
    .page-hot-games-recommendation__benefits-list,
    .page-hot-games-recommendation__steps,
    .page-hot-games-recommendation__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-hot-games-recommendation__card-title,
    .page-hot-games-recommendation__benefit-title,
    .page-hot-games-recommendation__step-title {
        font-size: 1.2rem;
    }

    .page-hot-games-recommendation__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-hot-games-recommendation__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

/* Contrast Fixes - applying based on the dark background scheme */
.page-hot-games-recommendation__dark-bg {
    color: var(--text-main);
    background: var(--page-bg);
}

.page-hot-games-recommendation__light-bg {
    color: #333333; /* Fallback for specific light elements if any, though the page is dark */
    background: #ffffff;
}

.page-hot-games-recommendation__medium-bg {
    color: #000000;
    background: var(--secondary-color-aux);
}

/* Ensure text contrast for main content */
.page-hot-games-recommendation p,
.page-hot-games-recommendation li,
.page-hot-games-recommendation__hero-description,
.page-hot-games-recommendation__section-description,
.page-hot-games-recommendation__card-text,
.page-hot-games-recommendation__benefit-text,
.page-hot-games-recommendation__step-text,
.page-hot-games-recommendation__faq-answer {
    color: var(--text-secondary); /* Use secondary text color for body text on dark background */
}

/* Titles on dark background */
.page-hot-games-recommendation__main-title,
.page-hot-games-recommendation__section-title,
.page-hot-games-recommendation__card-title,
.page-hot-games-recommendation__benefit-title,
.page-hot-games-recommendation__step-title,
.page-hot-games-recommendation__faq-question {
    color: var(--gold-color); /* Use gold for titles for contrast and brand */
}

/* Buttons have specific gradients, text color is var(--text-main) which is light */
.page-hot-games-recommendation__btn-primary {
    color: var(--text-main);
}
.page-hot-games-recommendation__btn-secondary {
    color: var(--gold-color);
}
.page-hot-games-recommendation__btn-secondary:hover {
    color: var(--page-bg); /* Dark text on hover */
}
.page-hot-games-recommendation__btn-tertiary {
    color: var(--text-secondary);
}
.page-hot-games-recommendation__btn-tertiary:hover {
    color: var(--text-main); /* Light text on hover */
}