/* Community Guidelines Page - Modern Design */

/* Hero Section */
.guidelines-hero-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin: 1.5rem auto;
    max-width: calc(100% - 3rem);
    border-radius: 24px;
}

.guidelines-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.guidelines-hero-content {
    position: relative;
    z-index: 1;
}

.guidelines-hero-modern h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guidelines-hero-modern .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    font-weight: 400;
}

.guidelines-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.15));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.guidelines-hero-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Introduction Card */
.intro-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
}

.intro-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.intro-card h2 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Category Section */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Rule Cards */
.rule-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid transparent;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rule-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
}

.rule-icon-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.rule-icon-modern i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rule-card-modern h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.rule-card-modern p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Important Notes Section */
.important-notes {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin: 3rem 0;
}

.important-notes h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.important-notes h4 i {
    font-size: 1.5rem;
}

.important-notes ul {
    color: #856404;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.important-notes li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.important-notes li:last-child {
    margin-bottom: 0;
}

/* Document Content Section */
.document-section {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 3rem 0;
}

.document-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.document-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.document-header small {
    color: #666;
    font-size: 0.875rem;
}

.document-body {
    padding: 2rem;
}

.document-content {
    color: #333;
    line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3 {
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-content ul,
.document-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Accept Form */
.accept-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.accept-success {
    color: #2e7d32;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.accept-form .form-check {
    margin-bottom: 1.25rem;
}

.accept-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.accept-form .form-check-label {
    color: #2e7d32;
    font-weight: 500;
    margin-left: 0.5rem;
}

.accept-form .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.accept-form .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.accept-form .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Section */
.cta-section-modern {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cta-box-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-box-modern h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cta-box-modern p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.cta-buttons .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .guidelines-hero-modern {
        padding: 3rem 0 2rem;
        margin: 1rem auto;
        max-width: calc(100% - 2rem);
        border-radius: 20px;
    }

    .guidelines-hero-modern h1 {
        font-size: 1.875rem;
    }

    .guidelines-hero-modern .lead {
        font-size: 1rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .rule-card-modern {
        padding: 1.5rem 1.25rem;
    }

    .cta-box-modern {
        padding: 2rem 1.5rem;
    }

    .cta-box-modern h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .guidelines-hero-modern {
        margin: 0.75rem auto;
        max-width: calc(100% - 1.5rem);
        border-radius: 16px;
    }

    .intro-card {
        padding: 1.25rem;
    }

    .category-section {
        margin-bottom: 2.5rem;
    }

    .rule-card-modern {
        padding: 1.25rem 1rem;
    }

    .important-notes {
        padding: 1.5rem;
    }

    .document-header {
        padding: 1.25rem 1.5rem;
    }

    .document-body {
        padding: 1.5rem;
    }
}
