/* Social Hub Specific Styles */

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

.hub-header h1 {
    font-size: 1.8rem;
    color: var(--navy);
    margin: 0 0 0.5rem 0;
}

/* Post Creation Area */
.create-post-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

#create-post-form {
    display: flex;
    gap: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.post-input-area {
    flex: 1;
}

#post-content {
    width: 100%;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
    min-height: 50px;
    outline: none;
    background: transparent;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.media-upload-btn {
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.media-upload-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.btn-close-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Feed & Post Cards */
#hub-feed-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 650px;
    margin: 0 auto;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.post-header {
    display: flex;
    padding: 1.2rem;
    gap: 1rem;
    align-items: center;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.post-timestamp {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.post-body {
    padding: 0 1.2rem 1.2rem;
}

.post-text {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-media-container img,
.post-media-container video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: #000;
}

/* Interaction Bar */
.post-interactions {
    display: flex;
    padding: 0.5rem 1.2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.interact-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.interact-btn:hover {
    background: #f1f5f9;
}

.interact-btn.liked {
    color: #ef4444;
}

/* Comments Section */
.post-comments-section {
    padding: 1.2rem;
    background: #f8fafc;
}

.comment-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-content {
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 0.2rem 0;
    font-size: 0.85rem;
}

.comment-text {
    margin: 0;
    color: #334155;
    word-break: break-word;
}

.comment-input-area {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.comment-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.6rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.btn-post-comment {
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0.5rem;
}
