/* Project Community Engagement Styles */

/* Community Feed Styles */
.community-feed-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 0.5rem;
    overflow: hidden;
}

.community-feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.community-feed-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.community-feed-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    margin-right: 0.75rem;
}

.community-feed-avatar i {
    font-size: 1rem;
}

.community-feed-content {
    padding: 1rem;
}

.community-feed-media {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.community-feed-media-item {
    height: 150px;
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
}

.community-feed-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-feed-media-item:hover img {
    transform: scale(1.05);
}

.community-feed-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.community-feed-action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.community-feed-action-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.community-feed-action-btn i {
    margin-right: 0.5rem;
}

/* Comment Form */
.community-comment-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.community-comment-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    resize: none;
    transition: border-color 0.2s;
}

.community-comment-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.community-comment-submit {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.community-comment-submit:hover {
    background-color: #4338ca;
}

/* Community Members */
.community-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.community-member {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.community-member:hover {
    background-color: #e5e7eb;
}

.community-member-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    margin-right: 0.5rem;
}

.community-member-avatar i {
    font-size: 0.75rem;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    margin-top: 1rem;
}

.activity-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

.activity-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
}

.activity-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    z-index: 1;
}

.activity-content {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.activity-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Progress Indicators */
.progress-bar-container {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #6366f1, #4f46e5);
    border-radius: 9999px;
    transition: width 1s ease-in-out;
}

.progress-milestone {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.milestone-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

.milestone-complete {
    background-color: #10b981;
}

.milestone-pending {
    background-color: #d1d5db;
}

.milestone-label {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Community Metrics */
.community-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.metric-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 150px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Community Engagement Chart Container */
.engagement-chart-container {
    height: 300px;
    margin-top: 1rem;
}

/* Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .community-feed-media {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .community-feed-media-item {
        height: 120px;
    }
    
    .metric-card {
        flex: 1 1 100%;
    }
} 