/* Community Page Styles */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --text-color: #333;
    --background-color: #f5f5f5;
    --border-color: #ddd;
    --hover-color: #1b5e20;
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--hover-color);
}

/* Community Container */
.community-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.community-header {
    text-align: center;
    margin-bottom: 3rem;
}

.community-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Forums Section */
.community-features {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.forums-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-category {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.forum-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.forum-threads {
    margin-bottom: 1rem;
}

.new-thread-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.new-thread-btn:hover {
    background-color: var(--hover-color);
}

/* Sidebar Styles */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-profile,
.trending-topics,
.online-members {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#new-thread-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#thread-title,
#thread-content {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#thread-content {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.form-actions .cancel-btn {
    background-color: #f44336;
    color: white;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-features {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Thread Styles */
.thread {
    background: white;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.thread-title {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.thread-meta {
    font-size: 0.9rem;
    color: #666;
}

.thread-preview {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.thread-stats {
    display: flex;
    gap: 1rem;
}

/* List Styles */
#trending-topics-list,
#online-members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#trending-topics-list li,
#online-members-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

#trending-topics-list li:last-child,
#online-members-list li:last-child {
    border-bottom: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thread {
    animation: fadeIn 0.3s ease-in-out;
} 