/* ===== تنسيقات نافذة المشاركات - التصميم الأصلي + إضافات التفاعل ===== */

/* تنسيق الحقول المدمجة */
.share-form-compact {
    background: linear-gradient(135deg, #f8f9ff, #eef1ff);
    border-radius: 25px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--c1);
}

.share-input-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-name-input,
.share-message-input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-family: 'Changa', sans-serif;
    transition: border 0.3s;
}

.share-name-input:focus,
.share-message-input:focus {
    outline: none;
    border-color: var(--c2);
}

.share-name-input {
    min-width: 120px;
    flex: 0.4;
}

.share-message-input {
    flex: 1.5;
}

.share-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-media-btn,
.share-submit-btn {
    width: 42px;
    height: 42px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.share-media-btn {
    background: #f0f0f0;
    color: #555;
}

.share-media-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.share-submit-btn {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
}

.share-submit-btn:hover {
    transform: scale(1.05);
}

.share-submit-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* قائمة المشاركات */
.posts-list {
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* تنسيق المشاركة الواحدة */
.post-item {
    background: linear-gradient(135deg, #fff, #f1f3ff);
    border-radius: 25px;
    padding: 1rem;
    border-right: 5px solid var(--c1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e1e4ff;
}

.post-user {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-user i {
    font-size: 1.2rem;
}

.post-date {
    font-size: 0.8rem;
    color: #777;
}

.post-message {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin: 0.6rem 0;
}

/* الوسائط (يوتيوب، MP3) */
.post-media {
    margin-top: 0.8rem;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 0.5rem;
}

.post-media.youtube iframe {
    width: 100%;
    height: 240px;
    border-radius: 15px;
}

.post-media.mp3 audio {
    width: 100%;
    border-radius: 30px;
}

.post-media.link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--c1);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.post-media.link a:hover {
    background: var(--c2);
}

/* ===== إضافات التفاعل (لايك، رد، حذف) ===== */
.post-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0.8rem 0 0.5rem;
    flex-wrap: wrap;
}

.like-btn, .reply-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    transition: all 0.2s;
    font-family: 'Changa', sans-serif;
}

.like-btn {
    color: #e91e63;
    background: #ffe4ec;
}

.like-btn.liked {
    color: #fff;
    background: #e91e63;
}

.like-btn:hover {
    transform: scale(1.05);
}

.reply-btn {
    color: #2196f3;
    background: #e3f2fd;
}

.reply-btn:hover {
    background: #bbdef5;
    transform: scale(1.02);
}

.delete-btn {
    color: #f44336;
    background: #ffebee;
}

.delete-btn:hover {
    background: #ffcdd2;
    transform: scale(1.02);
}

/* الردود */
.post-replies {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e1e4ff;
}

.post-reply-item {
    background: #fafafa;
    border-radius: 20px;
    padding: 0.6rem 1rem;
    margin-bottom: 0.6rem;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.reply-name {
    font-weight: bold;
    color: var(--c1);
}

.reply-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* نموذج الرد (يظهر عند الضغط على زر الرد) */
.reply-form {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reply-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: 'Changa', sans-serif;
    font-size: 0.9rem;
}

.send-reply-btn {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    transition: 0.2s;
}

.send-reply-btn:hover {
    transform: scale(1.02);
}

/* رسائل الخطأ والحالات الفارغة */
.loading-posts,
.no-posts,
.error-posts {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9ff, #eef1ff);
    border-radius: 25px;
    color: #555;
    font-size: 1rem;
}

.loading-posts i,
.no-posts i {
    font-size: 1.8rem;
    color: var(--c1);
    margin-bottom: 0.5rem;
    display: block;
}

/* ضبط موقع الزر (إذا لزم الأمر) */
/* زر المشاركة الجانبي - الموقع سيتم حسابه بواسطة JavaScript */
.share-switch {
    position: fixed;
    left: 0.5rem;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 0.4rem;
    z-index: 999;
}

.share-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00bcd4, #26c6da);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 14px;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 600px) {
    .share-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .share-name-input,
    .share-message-input {
        width: 100%;
    }
    .share-actions {
        justify-content: center;
        margin-top: 0.5rem;
    }
    .share-media-btn,
    .share-submit-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .post-media.youtube iframe {
        height: 180px;
    }
    .share-switch {
        left: 3px;
        padding: 3px;
        border-radius: 12px;
        top: calc(45% + 48px + 46px);
    }
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 10px;
    }
    .post-actions {
        gap: 0.8rem;
    }
    .like-btn, .reply-btn, .delete-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

‎/* ضبط موقع الزر (إذا لزم الأمر) */