/* style/promotions.css */

/* Custom properties for colors */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
}

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-color);
}

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

.page-promotions__section {
    padding: 60px 0;
    margin-bottom: 0; /* Remove default margin for sections */
}

.page-promotions__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__section-title--white {
    color: var(--text-color-light);
}

.page-promotions__text--white {
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 30px;
}

/* Color contrast enforcement */
.page-promotions__light-bg {
    background-color: var(--secondary-color); /* White background */
    color: var(--text-color-dark); /* Dark text */
}

.page-promotions__dark-bg,
.page-promotions__dark-section {
    background-color: var(--primary-color); /* Green background */
    color: var(--text-color-light); /* White text */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #004d27); /* Darker green gradient */
    color: var(--text-color-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above potential overlays */
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.page-promotions__hero-image img:hover {
    transform: scale(1.02);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Buttons */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-promotions__btn-primary {
    background: var(--register-button-color); /* Red for primary action */
    color: var(--register-login-font-color); /* Yellow for font */
    border: 2px solid var(--register-button-color);
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-promotions__btn-primary:hover {
    background: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.5);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.page-promotions__btn-secondary:hover {
    background: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

/* Quick Links Section */
.page-promotions__quick-links {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-promotions__link-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color-light);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__link-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__link-card-title {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--register-login-font-color); /* Yellow for titles */
    font-weight: bold;
}

.page-promotions__link-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Game Promotions Section */
.page-promotions__game-promotions {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

.page-promotions__game-promo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.page-promotions__game-promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__game-promo-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-promotions__game-promo-card p {
    font-size: 15px;
    color: #666;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-promotions__game-promo-card .page-promotions__btn-primary {
    margin: 0 15px 20px;
    align-self: center;
    width: calc(100% - 30px);
}

/* Offers Section */
.page-promotions__offers {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-promotions__offer-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__offer-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}