/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-promotions__hero-content {
    max-width: 900px;
    margin-top: 30px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Use clamp for H1 */
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-promotions__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(var(--color-button-gradient-end), 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-button-gradient-end), 0.6);
}

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

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

.page-promotions__btn-link {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 8px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.page-promotions__btn-link:hover {
    background: var(--color-gold);
    color: var(--color-background);
}

.page-promotions__section {
    padding: 80px 20px;
    box-sizing: border-box;
}

.page-promotions__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-promotions__section-description,
.page-promotions__text-block {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-promotions__promo-card,
.page-promotions__game-promo-item,
.page-promotions__step-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-title,
.page-promotions__game-promo-title,
.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__promo-text,
.page-promotions__game-promo-text,
.page-promotions__step-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__game-promo-item {
    padding: 25px;
    text-align: center;
}

.page-promotions__game-promo-item .page-promotions__btn-link {
    margin: 5px;
}

.page-promotions__step-card {
    text-align: center;
    padding: 30px;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid var(--color-gold);
}

.page-promotions__terms-list,
.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__terms-list li,
.page-promotions__advantages-list li {
    background-color: var(--color-card-bg);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    border-left: 5px solid var(--color-primary);
}

.page-promotions__advantage-highlight {
    color: var(--color-gold);
}

/* FAQ Styles */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-gold);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    .page-promotions__section {
        padding: 60px 15px;
    }
    .page-promotions__promo-grid,
    .page-promotions__game-promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 10px 15px 40px 15px;
    }
    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-promotions__description {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__game-promo-item,
    .page-promotions__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important;
    }
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-promotions__promo-content,
    .page-promotions__game-promo-item,
    .page-promotions__step-card {
        padding: 20px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-promotions__terms-list li,
    .page-promotions__advantages-list li {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__promo-grid,
    .page-promotions__game-promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1rem;
        padding: 12px 20px;
    }
}