/* Community Page Styles */
.community-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 24px;
}

/* Topics List Styles */
.topics-list {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid var(--background);
    border-radius: 8px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
}

.topics-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: none;
    background: var(--background);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Topic Card Styles */
.topic-card {
    background: white;
    border: 1px solid var(--background);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.topic-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.topic-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.topic-info {
    flex: 1;
}

.topic-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.timestamp {
    font-size: 12px;
    color: var(--light-gray);
}

.topic-tag {
    padding: 4px 12px;
    background: rgba(255,90,95,0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.topic-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.topic-card p {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.topic-stats {
    display: flex;
    gap: 16px;
}

.topic-stats span {
    font-size: 12px;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Community Sidebar Styles */
.community-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    position: sticky;
    top: 24px;
    height: fit-content;
}

.create-topic {
    margin-bottom: 24px;
}

.primary-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #ff4146;
}

.trending-topics {
    margin-bottom: 24px;
}

.trending-topics h3, .top-contributors h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.trending-topics ul {
    list-style: none;
}

.trending-topics li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--background);
}

.trending-topics a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

.trending-topics span {
    font-size: 12px;
    color: var(--light-gray);
}

.contributor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contributor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.contributor-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.contributor-info span {
    font-size: 12px;
    color: var(--light-gray);
} 