/* style/promotions.css */

/* Custom color variables from the prompt */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-main: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;
    --color-divider: #1E3A2A; /* Added from prompt */
}

/* Base styles for the page content */
.page-promotions {
    background-color: var(--bg-main); /* Deep green background */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5); /* Subtle glow effect */
}

.page-promotions__section-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__paragraph {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: left;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding: 10px 0 60px; /* Small top padding, larger bottom for content */
    box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure content has space */
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 60px);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 15px var(--color-glow);
}

.page-promotions__hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid var(--color-glow);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
}

.page-promotions__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(87, 227, 141, 0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* About Bonus Section */
.page-promotions__about-bonus-section {
    background-color: var(--bg-main);
    padding: 80px 0;
}

.page-promotions__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-promotions__text-block {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-promotions__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    object-fit: cover;
}

.page-promotions__text-link {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.page-promotions__text-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    background-color: var(--color-deep-green); /* Slightly different background for visual separation */
    padding: 80px 0;
}

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

.page-promotions__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-divider);
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-promotions__card-title {
    font-size: 24px;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-promotions__cta-center {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Game Showcase Section */
.page-promotions__game-showcase-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

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

.page-promotions__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-divider);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-promotions__game-card .page-promotions__image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__game-card .page-promotions__card-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-promotions__game-card .page-promotions__card-title a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
}

.page-promotions__game-card .page-promotions__card-title a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

.page-promotions__game-card .page-promotions__card-text {
    font-size: 15px;
    color: var(--text-secondary);
    flex-grow: 1; /* Push link to bottom */
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    outline: none;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-item summary:hover {
    background-color: rgba(var(--color-primary-rgb, 17, 168, 78), 0.1); /* Subtle hover */
}

.page-promotions__faq-toggle {
    font-size: 28px;
    line-height: 1;
    color: var(--color-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-promotions__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.page-promotions__cta-final-section .page-promotions__container {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--color-gold);
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__content-grid {
        flex-direction: column;
    }
    .page-promotions__text-block,
    .page-promotions__image-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 32px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }

    .page-promotions__main-title {
        font-size: 36px;
    }

    .page-promotions__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__cta-center {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px; /* Add padding to prevent overflow */
    }

    .page-promotions__steps-grid,
    .page-promotions__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        padding: 25px;
    }

    .page-promotions__card-title {
        font-size: 20px;
    }

    .page-promotions__game-card .page-promotions__image {
        height: 180px;
    }

    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 18px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    .page-promotions__cta-final-section .page-promotions__container {
        padding: 30px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 28px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 15px;
        padding: 10px 15px;
    }
}