/* ============================================================
   SPEHRE SOCIAL FEED — Complete Stylesheet
   ============================================================ */

/* ── Feed Layout ── */
.feed-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 0.5rem 3rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .feed-container {
        grid-template-columns: 1fr;
    }

    .feed-left-col,
    .feed-right-col {
        display: none;
    }
}

@media (max-width: 900px) {
    .feed-container {
        padding: 1rem 0.5rem;
    }
}

/* ── Sidebar Panels ── */
.feed-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.feed-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem;
}

.feed-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.feed-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.feed-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.feed-user-role {
    font-size: 0.8rem;
    color: #64748b;
}

.feed-stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f5f9;
    margin-top: 1rem;
    padding-top: 1rem;
}

.feed-stat {
    text-align: center;
}

.feed-stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.feed-stat-lbl {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* ── Trending Tags ── */
.trending-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: 0.15s;
}

.trending-tag:last-child {
    border-bottom: none;
}

.trending-tag:hover .trending-tag-name {
    color: #0085ff;
}

.trending-tag-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.trending-tag-count {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 100px;
}

/* ── Notification Badge ── */
.notif-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    position: absolute;
    top: -4px;
    right: -6px;
}

/* ── Feed Sort Bar ── */
.feed-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.feed-sort-btn {
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.feed-sort-btn.active,
.feed-sort-btn:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* ── Post Composer Card ── */
.post-composer {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.composer-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
}

.composer-input-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #94a3b8;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: inherit;
}

.composer-input-btn:hover {
    border-color: #0085ff;
    background: #fff;
    color: #64748b;
}

.composer-actions {
    display: flex;
    gap: 4px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.composer-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.composer-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ── Post Card ── */
.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    border-color: #d1d5db;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1rem 0;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
}

.post-meta {
    flex: 1;
    min-width: 0;
}

.post-author {
    font-size: 0.93rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-decoration: none;
}

.post-author:hover {
    color: #0085ff;
}

.post-headline {
    font-size: 0.78rem;
    color: #64748b;
    margin: 1px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-time {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.post-options-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 8px;
    padding: 6px;
    transition: all 0.15s;
    font-size: 0.9rem;
    position: relative;
}

.post-options-btn:hover {
    background: #f8fafc;
    color: #475569;
}

.post-body {
    padding: 0.75rem 1rem 0;
}

.post-content {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    background: none;
    border: none;
    color: #0085ff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    font-family: inherit;
}

.post-media {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.post-media img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.post-media video {
    width: 100%;
    display: block;
}

/* ── Skill Tags ── */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0.5rem 1rem 0;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f0f7ff;
    color: #0085ff;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: all 0.15s;
}

.skill-tag:hover {
    background: #dbeafe;
}

/* ── Post Meta Bar (Time Taken, Tools) ── */
.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0.5rem 1rem 0;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #64748b;
}

.post-meta-item i {
    color: #94a3b8;
    font-size: 0.7rem;
}

/* ── Post Actions Bar ── */
.post-actions {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 4px;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.75rem;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.post-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.post-action-btn.liked {
    color: #ef4444;
}

.post-action-btn.liked i {
    color: #ef4444;
}

.post-action-btn.bookmarked {
    color: #0085ff;
}

.post-action-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.post-action-btn:hover i {
    transform: scale(1.15);
}

.post-action-btn.liked:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.post-action-spacer {
    flex: 1;
}

/* ── Comment Section ── */
.comment-section {
    border-top: 1px solid #f1f5f9;
    padding: 0 1rem 0.75rem;
    display: none;
}

.comment-section.open {
    display: block;
}

.comment-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.comment-input-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.comment-input-wrap {
    flex: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 44px 9px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #0f172a;
    resize: none;
    line-height: 1.5;
    min-height: 38px;
    max-height: 120px;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
    overflow: hidden;
}

.comment-input:focus {
    outline: none;
    border-color: #0085ff;
    background: #fff;
}

.comment-send-btn {
    position: absolute;
    right: 10px;
    bottom: 9px;
    background: none;
    border: none;
    color: #0085ff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.comment-send-btn.active {
    opacity: 1;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 9px 13px;
    position: relative;
}

.comment-author {
    font-size: 0.83rem;
    font-weight: 700;
    color: #0f172a;
}

.comment-text {
    font-size: 0.83rem;
    color: #475569;
    margin: 3px 0 0;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.comment-action {
    font-size: 0.73rem;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s;
}

.comment-action:hover {
    color: #0085ff;
}

.comment-action.liked {
    color: #ef4444;
}

.comment-time {
    font-size: 0.73rem;
    color: #cbd5e1;
}

/* Replies */
.replies-container {
    margin-left: 44px;
    margin-top: 8px;
}

.reply-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reply-body {
    flex: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 7px 11px;
}

.reply-author {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.reply-text {
    font-size: 0.78rem;
    color: #475569;
    margin: 2px 0 0;
}

.view-more-comments {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0085ff;
    cursor: pointer;
    margin-bottom: 8px;
    display: inline-block;
}

.view-more-comments:hover {
    text-decoration: underline;
}

/* ── Create Post Modal ── */
.feed-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.feed-modal-overlay.open {
    opacity: 1;
}

.feed-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-modal-overlay.open .feed-modal {
    transform: translateY(0) scale(1);
}

.feed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.feed-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.feed-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.15s;
    line-height: 1;
}

.feed-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.feed-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.feed-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Modal form fields */
.feed-modal-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.modal-composer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.modal-composer-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.modal-composer-audience {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
}

.modal-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    resize: none;
    min-height: 100px;
    line-height: 1.65;
    box-sizing: border-box;
    background: transparent;
}

.modal-textarea::placeholder {
    color: #94a3b8;
}

.modal-char-count {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 6px;
}

.modal-char-count.warn {
    color: #f59e0b;
}

.modal-char-count.over {
    color: #ef4444;
}

.modal-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 1rem 0;
}

.modal-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.modal-field-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.modal-field-input:focus {
    outline: none;
    border-color: #0085ff;
    background: #fff;
}

.modal-field-input::placeholder {
    color: #94a3b8;
}

.modal-tag-input-wrap {
    position: relative;
}

.modal-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.modal-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

.modal-tag-remove {
    cursor: pointer;
    color: #7dd3fc;
    font-size: 0.7rem;
    transition: color 0.15s;
}

.modal-tag-remove:hover {
    color: #0369a1;
}

.modal-media-preview {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.modal-media-preview img {
    width: 100%;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

.modal-media-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.modal-media-remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Modal footer buttons */
.modal-actions-left {
    display: flex;
    gap: 4px;
}

.modal-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.modal-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.modal-submit-btn {
    background: #0085ff;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 9px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-submit-btn:hover {
    background: #006ecc;
    box-shadow: 0 4px 12px rgba(0, 133, 255, 0.25);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-submit-btn.loading .btn-text {
    display: none;
}

.modal-submit-btn .btn-spinner {
    display: none;
}

.modal-submit-btn.loading .btn-spinner {
    display: inline-block;
}

/* ── Modal Type Tab Bar ── */
.modal-type-tabs {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.modal-type-tabs::-webkit-scrollbar {
    display: none;
}

.modal-type-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: none;
    background: transparent;
    border-radius: 10px 10px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.modal-type-tab:hover {
    color: #0085ff;
    background: #f0f7ff;
}

.modal-type-tab.active {
    color: #0085ff;
    border-bottom-color: #0085ff;
    background: transparent;
}

/* ── Modal Field Group ── */
.modal-field-group {
    margin-bottom: 1rem;
}

.modal-field-group .modal-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.modal-field-hint {
    font-weight: 400;
    text-transform: none;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0;
}

/* ── Skeleton Loaders ── */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.skeleton-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-line {
    height: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 45%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skeleton-block {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ── Share Tooltip ── */
.share-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
}

.share-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Post Options Dropdown ── */
.post-options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 500;
    min-width: 160px;
    padding: 6px 0;
    display: none;
}

.post-options-dropdown.open {
    display: block;
}

.post-options-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.1s;
    font-weight: 500;
}

.post-options-item:hover {
    background: #f8fafc;
}

.post-options-item.danger {
    color: #ef4444;
}

.post-options-item.danger:hover {
    background: #fef2f2;
}

.post-options-item i {
    width: 14px;
    text-align: center;
    font-size: 0.8rem;
}

/* ── Empty State ── */
.feed-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.feed-empty-state i {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    display: block;
}

.feed-empty-state h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 6px;
}

.feed-empty-state p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* ── Load More ── */
.feed-load-more {
    text-align: center;
    padding: 1rem;
}

.load-more-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 9px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.load-more-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Notifications Panel ── */
.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: opacity 0.15s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.unread {
    background: #f0f7ff;
    margin: 0 -1.25rem;
    padding: 10px 1.25rem;
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.notif-icon.like {
    background: #fee2e2;
    color: #ef4444;
}

.notif-icon.comment {
    background: #dbeafe;
    color: #0085ff;
}

.notif-text {
    font-size: 0.82rem;
    color: #334155;
    flex: 1;
}

.notif-text strong {
    color: #0f172a;
}

.notif-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── Animations ── */
.post-card {
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Edit Post Input (inline) ── */
.post-edit-textarea {
    width: 100%;
    border: 1px solid #0085ff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    resize: none;
    min-height: 80px;
    line-height: 1.65;
    background: #f0f7ff;
    box-sizing: border-box;
}

.post-edit-textarea:focus {
    outline: none;
}

.post-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.post-edit-save {
    background: #0085ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.post-edit-save:hover {
    background: #006ecc;
}

.post-edit-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ── Scroll to Top ── */
.feed-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
    z-index: 100;
}

.feed-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.feed-scroll-top:hover {
    background: #0085ff;
}