.community-page { min-height: 100vh; background: #f7f9fc; color: #0f172a; }
.community-icon-xs { width: 12px; height: 12px; }
.community-icon-sm { width: 16px; height: 16px; }
.community-icon-md { width: 20px; height: 20px; }
.community-icon-lg { width: 28px; height: 28px; }

.community-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.community-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 30%, rgba(23, 107, 255, .08) 0%, transparent 28%),
                radial-gradient(circle at 90% 70%, rgba(14, 165, 233, .07) 0%, transparent 26%);
}
.community-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.community-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #64748b; margin-bottom: 14px;
}
.community-breadcrumb a { color: #64748b; text-decoration: none; }
.community-breadcrumb span { color: #cbd5e1; }
.community-breadcrumb strong { color: #1e293b; font-weight: 500; }
.community-chip {
    display: inline-flex; border-radius: 999px; padding: 4px 10px;
    background: #f97316; color: #fff; font-size: 12px; font-weight: 700;
}
.community-hero h1 {
    margin: 12px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2; font-weight: 600; letter-spacing: -.02em;
}
.community-hero p {
    margin: 16px 0 0; max-width: 760px; color: #475569;
    font-size: 18px; line-height: 1.75;
}

.community-stats {
    border-bottom: 1px solid #ffedd5;
    background: #fff7ed;
    padding: 16px 0;
}
.community-stats p { margin: 0; font-size: 20px; font-weight: 600; color: #0f172a; }
.community-stats small { margin-top: 2px; display: block; color: #64748b; font-size: 12px; }

.community-content { padding: 48px 0 56px; }
.community-layout { display: grid; gap: 40px; }
@media (min-width: 1200px) {
    .community-layout { grid-template-columns: 1fr 300px; align-items: start; }
}
.community-main { display: grid; gap: 48px; }
.community-kicker {
    margin: 0; color: #c2410c; text-transform: uppercase;
    letter-spacing: .12em; font-size: 14px; font-weight: 600;
}
.community-kicker-blue { color: #0284c7; }
.community-main h2 {
    margin: 6px 0 20px; font-size: 1.875rem; font-weight: 600; letter-spacing: -.02em;
}

.community-forum-card {
    border: 1px solid #e2e8f0; border-radius: 28px; background: #fff;
    padding: 20px; box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.community-forum-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, .09); }
.community-forum-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.community-forum-icon {
    width: 40px; height: 40px; border-radius: 14px; display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--icon-bg); color: var(--icon-color);
}
.community-forum-card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.community-forum-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.75; }
.community-forum-meta { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; color: #94a3b8; font-size: 12px; }
.community-forum-meta span { display: inline-flex; align-items: center; gap: 4px; }

.community-thread-list { display: grid; gap: 12px; }
.community-thread-card {
    border: 1px solid #e2e8f0; border-radius: 28px; background: #fff;
    padding: 20px; box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.community-thread-top { margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.community-solved {
    border-radius: 999px; background: #f0fdf4; color: #15803d;
    font-size: 11px; font-weight: 700; padding: 2px 8px;
}
.community-forum-name { font-size: 12px; font-weight: 600; color: #0284c7; }
.community-thread-card h4 {
    margin: 0; color: #1e293b; font-size: 14px; font-weight: 600;
    line-height: 1.35;
}
.community-thread-meta {
    margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; color: #94a3b8; font-size: 12px;
}
.community-thread-meta span { display: inline-flex; align-items: center; gap: 4px; }
.community-thread-card > svg { margin-top: 4px; color: #cbd5e1; flex-shrink: 0; }

.community-side { display: grid; gap: 20px; }
.community-join-card {
    border-radius: 28px; padding: 24px;
    background: linear-gradient(135deg, #c2410c, #dc2626); color: #fff;
}
.community-join-card svg { color: #fed7aa; }
.community-join-card h4 { margin: 10px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.community-join-card h4 { color: #fff; }
.community-join-card p { margin: 8px 0 0; color: #fed7aa; font-size: 14px; line-height: 1.75; }
.community-join-card a {
    margin-top: 18px; width: 100%; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 16px; background: #fff;
    color: #c2410c; padding: 10px 14px; font-size: 14px; font-weight: 600;
}

.community-contrib-card,
.community-links-card {
    border: 1px solid #e2e8f0; border-radius: 28px; background: #fff;
    padding: 24px; box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.community-side-title {
    margin: 0 0 12px; color: #64748b; text-transform: uppercase;
    letter-spacing: .10em; font-size: 12px; font-weight: 600;
}
.community-contrib-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.community-contrib-card li { display: flex; align-items: center; gap: 10px; }
.community-rank {
    width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700; background: var(--rank-color);
}
.community-contrib-card p { margin: 0; font-size: 14px; font-weight: 600; color: #1e293b; }
.community-contrib-card small { color: #94a3b8; font-size: 12px; }

.community-links-card a {
    margin-top: 8px; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 10px 12px; text-decoration: none; color: #334155;
    font-size: 14px; font-weight: 500; display: flex; align-items: center;
    justify-content: space-between;
}
.community-links-card a:hover { border-color: #7dd3fc; background: #f0f9ff; color: #0369a1; }
