/* style/player-community-rules.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
    --border-color: #e0e0e0;
}

.page-player-community-rules {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark-1);
    line-height: 1.6;
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-player-community-rules__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker blue gradient */
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-player-community-rules__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-light);
}

.page-player-community-rules__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-player-community-rules__cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-player-community-rules__cta-button:hover {
    background: #e0b800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-player-community-rules__section {
    padding: 60px 0;
    background-color: var(--bg-dark-1);
    color: var(--text-light);
}

.page-player-community-rules__section:nth-of-type(even) {
    background-color: #1a1a1a; /* Slightly different dark background for contrast */
}

.page-player-community-rules__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-player-community-rules p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.page-player-community-rules__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-player-community-rules__image-small {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-player-community-rules__rule-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-player-community-rules__rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-player-community-rules__rule-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-player-community-rules__prohibited-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-player-community-rules__prohibited-list li {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.page-player-community-rules__prohibited-list li strong {
    color: var(--secondary-color);
}

.page-player-community-rules__consequence-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-player-community-rules__consequence-list li {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.page-player-community-rules__consequence-list li strong {
    color: var(--primary-color);
}

.page-player-community-rules__reporting-steps {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-player-community-rules__step-card {
    flex: 1;
    min-width: 280px;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.page-player-community-rules__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-player-community-rules__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-player-community-rules__link:hover {
    color: #e0b800;
    text-decoration: underline;
}

/* FAQ Section */
.page-player-community-rules__faq-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-player-community-rules__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-player-community-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-player-community-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-player-community-rules__faq-item.active .page-player-community-rules__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #2a2a2a;
    border-radius: 0 0 5px 5px;
    color: rgba(255, 255, 255, 0.85);
}

.page-player-community-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-player-community-rules__faq-question:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

.page-player-community-rules__faq-question:active {
    background: #5a5a5a;
}

.page-player-community-rules__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

.page-player-community-rules__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-player-community-rules__faq-item.active .page-player-community-rules__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

.page-player-community-rules__final-cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

.page-player-community-rules__final-cta .page-player-community-rules__section-title {
    color: var(--text-light);
}

.page-player-community-rules__final-cta p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-player-community-rules {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-player-community-rules__hero-banner {
        padding: 40px 0;
    }

    .page-player-community-rules__main-title {
        font-size: 2.2em;
    }

    .page-player-community-rules__hero-description {
        font-size: 1em;
    }

    .page-player-community-rules__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-player-community-rules__section {
        padding: 40px 0;
    }

    .page-player-community-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-player-community-rules__rule-card {
        padding: 20px;
    }

    .page-player-community-rules__rule-title {
        font-size: 1.4em;
    }

    .page-player-community-rules__prohibited-list li,
    .page-player-community-rules__consequence-list li {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-player-community-rules__reporting-steps {
        flex-direction: column;
        gap: 20px;
    }

    .page-player-community-rules__step-card {
        min-width: unset;
    }

    .page-player-community-rules__step-title {
        font-size: 1.2em;
    }

    .page-player-community-rules__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-player-community-rules__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-player-community-rules__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-player-community-rules__faq-answer {
        padding: 0 15px;
    }
    
    .page-player-community-rules__faq-item.active .page-player-community-rules__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image responsive adaptation */
    .page-player-community-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-player-community-rules__section,
    .page-player-community-rules__card,
    .page-player-community-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Contrast Fixes (if needed, but designed with contrast in mind) */
.page-player-community-rules__dark-bg {
    color: var(--text-light); /* Deep dark background with light text */
}

.page-player-community-rules__light-bg {
    color: var(--text-dark); /* Light background with dark text */
    background: var(--bg-light);
}

.page-player-community-rules__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-player-community-rules__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}