/* style/player-community-events.css */

/* Biến CSS */
:root {
    --mcw87-primary-color: #007bff;
    --mcw87-secondary-color: #ffc107;
    --mcw87-dark-text: #212529; /* Dark text for light backgrounds */
    --mcw87-light-text: #f8f9fa; /* Light text for dark backgrounds */
    --mcw87-accent-color: #dc3545; /* A complementary color for emphasis */
    --mcw87-bg-light: #ffffff;
    --mcw87-bg-dark: #343a40;
    --mcw87-border-color: #dee2e6;
}

/* Đảm bảo độ tương phản cao cho văn bản */
.page-player-community-events h1,
.page-player-community-events h2,
.page-player-community-events h3 {
    color: var(--mcw87-dark-text); /* Default dark text for headings */
}

.page-player-community-events p,
.page-player-community-events li {
    color: var(--mcw87-dark-text); /* Default dark text for body content */
}

.page-player-community-events__hero-section .page-player-community-events__hero-title,
.page-player-community-events__hero-section .page-player-community-events__hero-subtitle {
    color: var(--mcw87-light-text); /* Light text on primary background */
}

.page-player-community-events__btn--primary {
    background-color: var(--mcw87-primary-color);
    color: var(--mcw87-light-text);
}

.page-player-community-events__btn--primary:hover {
    background-color: #0056b3; /* Darker shade of primary */
}

.page-player-community-events__btn--secondary {
    background-color: var(--mcw87-secondary-color);
    color: var(--mcw87-dark-text); /* Dark text on secondary background */
}

.page-player-community-events__btn--secondary:hover {
    background-color: #e0a800; /* Darker shade of secondary */
}

.page-player-community-events__step-icon {
    background-color: var(--mcw87-primary-color);
    color: var(--mcw87-light-text);
}

/* Hero Section */
.page-player-community-events__hero-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--mcw87-primary-color) 0%, #0056b3 100%); /* Darker gradient for better text contrast */
    color: var(--mcw87-light-text);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-player-community-events__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

.page-player-community-events__hero-section .page-player-community-events__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-player-community-events__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-player-community-events__hero-subtitle {
    font-size: 1.25em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* General Section Styling */
.page-player-community-events__section {
    padding: 80px 0;
    background-color: var(--mcw87-bg-light);
}

.page-player-community-events__section:nth-of-type(even) {
    background-color: #f8f9fa; /* Lighter background for alternating sections */
}

.page-player-community-events__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-player-community-events__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--mcw87-dark-text);
}

.page-player-community-events__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555;
}

/* Grid Layouts */
.page-player-community-events__grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-player-community-events__grid--reverse {
    flex-direction: row-reverse;
}

.page-player-community-events__text-content {
    flex: 1;
}

.page-player-community-events__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-player-community-events__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-player-community-events__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-player-community-events__btn--primary {
    background-color: var(--mcw87-primary-color);
    color: var(--mcw87-light-text);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-player-community-events__btn--primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.page-player-community-events__btn--secondary {
    background-color: var(--mcw87-secondary-color);
    color: var(--mcw87-dark-text);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    margin-left: 15px;
}

.page-player-community-events__btn--secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

/* Activity Cards */
.page-player-community-events__activity-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-player-community-events__activity-card {
    background-color: var(--mcw87-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-player-community-events__activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-player-community-events__activity-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-player-community-events__activity-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--mcw87-primary-color);
}

.page-player-community-events__activity-text {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Benefits List */
.page-player-community-events__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-player-community-events__benefits-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: var(--mcw87-dark-text);
}

.page-player-community-events__benefits-list li::before {
    content: '✓';
    color: var(--mcw87-secondary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* How to Join Steps */
.page-player-community-events__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-player-community-events__step-card {
    background-color: var(--mcw87-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-player-community-events__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-player-community-events__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--mcw87-primary-color);
}

.page-player-community-events__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.page-player-community-events__inline-link {
    color: var(--mcw87-primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-player-community-events__inline-link:hover {
    text-decoration: underline;
}

.page-player-community-events__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* Final CTA Section */
.page-player-community-events__final-cta {
    background: linear-gradient(135deg, var(--mcw87-primary-color) 0%, #0056b3 100%);
    color: var(--mcw87-light-text);
    padding: 80px 0;
}

.page-player-community-events__final-cta .page-player-community-events__container--flex {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-player-community-events__cta-content {
    flex: 2;
}

.page-player-community-events__cta-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--mcw87-light-text);
}

.page-player-community-events__cta-description {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-player-community-events__cta-buttons {
    display: flex;
    gap: 15px;
}

.page-player-community-events__cta-image {
    flex: 1;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-player-community-events__hero-title {
        font-size: 2.8em;
    }
    .page-player-community-events__section-title {
        font-size: 2em;
    }
    .page-player-community-events__grid {
        flex-direction: column;
    }
    .page-player-community-events__grid--reverse {
        flex-direction: column;
    }
    .page-player-community-events__final-cta .page-player-community-events__container--flex {
        flex-direction: column-reverse;
        text-align: center;
    }
    .page-player-community-events__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-player-community-events__hero-section {
        padding: 80px 0;
    }
    .page-player-community-events__hero-title {
        font-size: 2.2em;
    }
    .page-player-community-events__hero-subtitle {
        font-size: 1em;
    }
    .page-player-community-events__section {
        padding: 60px 0;
    }
    .page-player-community-events__section-title {
        font-size: 1.8em;
    }
    .page-player-community-events__activity-card-grid,
    .page-player-community-events__step-grid {
        grid-template-columns: 1fr;
    }
    .page-player-community-events__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-player-community-events__btn--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-player-community-events__cta-title {
        font-size: 2em;
    }
    .page-player-community-events__cta-description {
        font-size: 1em;
    }
    .page-player-community-events__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-player-community-events__cta-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-player-community-events__hero-section {
        min-height: 300px;
    }
    .page-player-community-events__hero-title {
        font-size: 1.8em;
    }
    .page-player-community-events__hero-subtitle {
        font-size: 0.9em;
    }
    .page-player-community-events__btn {
        width: 100%;
    }
    .page-player-community-events__cta-buttons {
        gap: 10px;
    }
}