
/* ============================================================
   COMMUNITY PAGE
   ============================================================ */

/* Page Header */
.community-header {
    background: linear-gradient(135deg, var(--accent) 0%, #6B3410 100%);
    color: #fff;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}
.community-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}
.community-header .page-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Layout */
.community-main {
    padding: 3rem 0 4rem;
}
.community-main .container {
    max-width: 900px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 3rem;
}
.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.empty-state p {
    color: var(--text-muted, #666);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 3rem;
}

/* Community Card */
.community-card {
    background: var(--card-bg, #fff);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid rgba(139,69,19,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139,69,19,0.13);
}
.community-card-body {
    padding: 1.75rem 1.75rem 1rem;
    flex: 1;
}
.community-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin-bottom: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.community-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}
.community-card-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}
.community-card-content p,
.community-card-content ul,
.community-card-content ol {
    margin-bottom: 0.6rem;
}
.community-card-content a {
    color: var(--accent);
    text-decoration: underline;
}
.community-card-footer {
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* CTA Section */
.community-cta-section {
    margin: 3rem 0;
}
.community-cta-card {
    background: linear-gradient(135deg, #fdf6ec 0%, #fff9f0 100%);
    border: 2px solid var(--accent2, #D4A017);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
}
[data-theme="dark"] .community-cta-card {
    background: linear-gradient(135deg, #2a1e0d 0%, #241806 100%);
    border-color: var(--accent2);
}
.community-cta-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.community-cta-card h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.community-cta-card p {
    color: var(--text-muted, #555);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.community-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Quick Links */
.community-links {
    margin-top: 3.5rem;
}
.community-links .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 560px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(139,69,19,0.12);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.quick-link-card:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139,69,19,0.2);
}
.quick-link-icon {
    font-size: 1.75rem;
}
.quick-link-label {
    font-size: 0.88rem;
    text-align: center;
}

/* Tablet+ */
@media (min-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
    .community-cta-buttons {
        flex-wrap: nowrap;
    }
}

/* Dark mode */
[data-theme="dark"] .community-card {
    background: #1e150a;
    border-color: rgba(192,118,58,0.2);
}
[data-theme="dark"] .community-card-footer {
    border-top-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .quick-link-card {
    background: #1e150a;
    border-color: rgba(192,118,58,0.2);
}
