/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Cover Photo */
.cover-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}

/* Bio Section */
.bio {
    margin: 20px 0;
}

.bio h1 {
    font-size: 28px;
    font-weight: 700;
    color: #212121;
}

.bio p {
    font-size: 16px;
    color: #616161;
    line-height: 1.5;
    margin-top: 10px;
}

/* Members Section */
.members {
    margin: 20px 0;
}

.members h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
}

.members-avatars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Feed Section */
.feed {
    margin: 20px 0;
}

.feed h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
}

/* Post Styling */
.post {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    animation: fadeIn 0.5s ease-out;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: 12px;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-username {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.post-name {
    font-size: 14px;
    color: #757575;
    margin: 0;
}

/* Post Content */
.post-content {
    font-size: 16px;
    color: #424242;
    margin-bottom: 12px;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 16px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
}

.icon-button .material-icons-outlined {
    font-size: 20px;
    color: #616161;
}

/* Loader */
.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loader .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .members-avatars {
        flex-direction: column;
        align-items: center;
    }
    
    .avatar {
        width: 48px;
        height: 48px;
    }
    
    .post {
        padding: 12px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: center;
    }
    
    .post-avatar {
        margin-bottom: 8px;
    }
}
