/* style/promotions.css */

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

/* Base styles for the page content */
.page-promotions {
    color: var(--color-text-main); /* Light text on dark body background */
    background-color: var(--color-background); /* Ensure consistency, though body is handled by shared */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Sections styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-background);
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 10px;
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
}

.page-promotions__btn-tertiary {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    padding: 10px 20px;
}

.page-promotions__btn-tertiary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.page-promotions__btn-full-width {
    width: 100%;
    max-width: 400px; /* Constrain full-width button for better aesthetics */
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings and Paragraphs */
.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin-bottom: 25px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__highlight {
    color: var(--color-gold);
    font-weight: bold;
}

.page-promotions__image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-promotions__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Promo List */
.page-promotions__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-promotions__promo-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-promotions__promo-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Steps Grid */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.page-promotions__step-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    position: relative;
    padding-top: 60px;
}

.page-promotions__step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.4);
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__term-item {
    background-color: var(--color-card-bg);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-divider);
}

.page-promotions__term-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Game Specific Promotions */
.page-promotions__game-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-promotions__game-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-promotions__game-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__game-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to push button to bottom */
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    color: var(--color-text-main);
    cursor: pointer;
    font-weight: bold;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid transparent; /* default */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--color-border);
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Changes + to x or makes it visually different */
}

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

.page-promotions__faq-answer p {
    margin: 0;
    color: var(--color-text-secondary); /* Ensure paragraph text color */
}

.page-promotions__faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Links */
.page-promotions a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 0 40px;
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
    }
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__promo-list,
    .page-promotions__steps-grid,
    .page-promotions__terms-list,
    .page-promotions__game-promo-grid,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-promotions__promo-list,
    .page-promotions__steps-grid,
    .page-promotions__game-promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__promo-item,
    .page-promotions__step-card,
    .page-promotions__term-item,
    .page-promotions__game-card,
    .page-promotions__faq-item {
        padding: 20px;
    }
    .page-promotions__step-card {
        padding-top: 50px;
    }
    .page-promotions__step-number {
        left: 20px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .page-promotions__game-image {
        height: 180px;
    }
}