/* Enhanced Community Hub Frontend Styles */

.ach-activity-feed {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ach-post-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.ach-post-form h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.ach-post-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 15px;
}

.ach-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s;
}

.ach-button:hover {
    background: #135e96;
}

.ach-post {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.ach-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ach-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.ach-post-meta {
    flex: 1;
}

.ach-post-author {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.ach-member-level {
    display: inline-block;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.ach-post-time {
    display: block;
    font-size: 13px;
    color: #757575;
    margin-top: 4px;
}

.ach-post-content {
    margin: 16px 0;
    line-height: 1.6;
    color: #1d2327;
}

.ach-post-actions {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}

.ach-post-action {
    background: none;
    border: none;
    cursor: pointer;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.ach-post-action:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.ach-post-action.active {
    color: #d63638;
}

/* Members Directory */
.ach-members-directory {
    padding: 20px;
}

.ach-members-directory h2 {
    text-align: center;
    margin-bottom: 32px;
}

.ach-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.ach-member-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ach-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ach-member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 4px solid #f0f0f1;
}

.ach-member-name {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0;
}

.ach-member-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.ach-member-points {
    font-size: 14px;
    color: #2271b1;
    font-weight: 600;
}

.ach-member-bio {
    font-size: 14px;
    color: #757575;
    margin-top: 12px;
}

/* Groups Directory */
.ach-groups-directory {
    padding: 20px;
}

.ach-groups-directory h2 {
    text-align: center;
    margin-bottom: 32px;
}

.ach-create-group-btn-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.ach-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.ach-group-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ach-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ach-group-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ach-group-body {
    padding: 20px;
}

.ach-group-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ach-group-description {
    color: #757575;
    margin-bottom: 16px;
}

.ach-group-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    color: #757575;
}

/* Leaderboard */
.ach-leaderboard {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ach-leaderboard h2 {
    text-align: center;
    margin-bottom: 32px;
}

.ach-leaderboard-item {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ach-leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.ach-leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.ach-leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a57c 100%);
}

.ach-rank {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
}

.ach-leader-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.ach-leader-info {
    flex: 1;
}

.ach-leader-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.ach-leader-level {
    display: block;
    font-size: 13px;
    color: #757575;
    margin-top: 4px;
}

.ach-leader-points {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
}

/* No Content State */
.ach-no-content {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.ach-no-content p {
    font-size: 16px;
    color: #757575;
}

/* Responsive */
@media (max-width: 768px) {
    .ach-members-grid,
    .ach-groups-grid {
        grid-template-columns: 1fr;
    }
    
    .ach-activity-feed,
    .ach-leaderboard {
        padding: 12px;
    }
}

