/* ===== كارت الأكشن ===== */
.nsp-card { font-family: Arial, sans-serif; direction: rtl; }

/* ===== أكشن بار ===== */
.nsp-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding: 4px 0;
}

.nsp-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s;
}

.nsp-actions button:hover { background: #f0f2f5; color: #1877f2; }

/* اللايك لما يتفعل */
.nsp-like-btn.liked { color: #1877f2; }
.nsp-like-btn.liked .nsp-icon { filter: saturate(2); }

/* ===== قسم التعليقات ===== */
.nsp-comments-section {
    border-top: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
}

.nsp-comments-list { margin-bottom: 10px; }

/* تعليق واحد */
.nsp-comment {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.nsp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nsp-comment-body {
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    flex: 1;
}

.nsp-comment-name {
    font-weight: bold;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.nsp-comment-text {
    font-size: 14px;
    color: #333;
    display: block;
    line-height: 1.5;
}

.nsp-comment-time {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* فورم التعليق */
.nsp-form-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.nsp-input-wrap { flex: 1; }

.nsp-comment-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: none;
    min-height: 40px;
    outline: none;
    transition: border 0.2s;
    direction: rtl;
}

.nsp-comment-input:focus { border-color: #1877f2; }

.nsp-submit-comment {
    margin-top: 6px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
}

.nsp-submit-comment:hover { background: #1558b0; }

.nsp-login-msg {
    font-size: 13px;
    color: #666;
    text-align: center;
    padding: 8px;
}

.nsp-login-msg a { color: #1877f2; text-decoration: none; font-weight: bold; }

/* ===== مودال المشاركة ===== */
.nsp-share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsp-share-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    position: relative;
    direction: rtl;
}

.nsp-share-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.nsp-share-close {
    position: absolute;
    top: 10px;
    left: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.nsp-share-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}

.nsp-share-buttons a {
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.nsp-share-buttons a:hover { opacity: 0.85; }
.nsp-fb { background: #1877f2; color: #fff; }
.nsp-tw { background: #1da1f2; color: #fff; }
.nsp-wa { background: #25d366; color: #fff; }

.nsp-copy-row {
    display: flex;
    gap: 6px;
}

.nsp-copy-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    direction: ltr;
    outline: none;
    color: #555;
}

.nsp-copy-btn {
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    white-space: nowrap;
}

.nsp-copy-btn:hover { background: #e0e2e5; }
.nsp-copy-btn.copied { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
