/* =====================
   Community Page Styles
   ===================== */

/* Global Body Style */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFF8F2;
    color: #2D3748;
}

/* Hero Section */
.community-hero {
    background: linear-gradient(135deg, #FFF8F2 0%, #FAE8DC 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}

.community-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.community-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    border-radius: 2px;
}

.community-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
}

/* Community Stats */
.community-stats {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.stats-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.15) 0%, rgba(255, 179, 71, 0.15) 100%);
    color: #FF8C42;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Section Styles */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
}

/* Community Features */
.community-features {
    padding: 5rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 140, 66, 0.15);
    border-color: rgba(255, 140, 66, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.15) 0%, rgba(255, 179, 71, 0.15) 100%);
    color: #FF8C42;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: #fff;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* Recent Discussions */
.recent-discussions {
    padding: 5rem 0;
    background: linear-gradient(180deg, #FFF8F2 0%, #fff 100%);
}

.discussion-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.discussion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 140, 66, 0.2);
}

.discussion-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-right: 1rem;
}

.discussion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.discussion-content {
    flex: 1;
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.discussion-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
}

.discussion-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.discussion-excerpt {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.discussion-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.discussion-meta span {
    font-size: 0.75rem;
    color: #A0AEC0;
}

.discussion-meta span i {
    margin-right: 0.3rem;
    color: #FF8C42;
}

.btn-view-all {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    color: #FF8C42;
    border: 2px solid #FF8C42;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.35);
}

.btn-view-all i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Join CTA */
.join-cta {
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.3) 0%, rgba(255, 179, 71, 0.1) 100%);
    border-radius: 50%;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    position: relative;
}

.btn-join-now {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-join-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.5);
    color: #fff;
}

.btn-join-now i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-join-now:hover i {
    transform: translateX(5px);
}

/* Active Nav Link */
.nav-link.active {
    color: #FF8C42 !important;
}

.nav-link.active::after {
    width: 60%;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .community-title {
        font-size: 2.5rem;
    }

    .community-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .community-hero {
        padding: 4rem 0 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-card {
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .cta-card .text-lg-end {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .community-title {
        font-size: 2rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stat-item {
        padding: 0.75rem 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .discussion-card {
        flex-direction: column;
    }

    .discussion-avatar {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}