/* Post Actions */
.post-detail-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 400px; /* Space for action buttons */
}

.post-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
}

.edit-post-btn,
.delete-post-btn,
.share-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.share-post-btn:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.edit-post-btn:hover {
    background: #f9fafb;
    border-color: var(--rs-purple);
    color: var(--rs-purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.delete-post-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.edit-post-btn svg,
.delete-post-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Delete Confirmation Modal */
.delete-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.delete-confirmation-modal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

.delete-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon svg {
    color: #ef4444;
}

.delete-confirmation-modal h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.delete-confirmation-modal p {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel,
.btn-delete {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.share-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.share-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.share-close-btn:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.share-modal-body {
    padding: 24px;
}

.share-description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.share-option:hover {
    background: white;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-option svg {
    flex-shrink: 0;
}

/* Social Media Brand Colors */
.share-linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.share-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share-twitter:hover {
    border-color: #000000;
    color: #000000;
}

.share-whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
}

.share-telegram:hover {
    border-color: #0088cc;
    color: #0088cc;
}

.share-email:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.share-copy:hover {
    border-color: var(--rs-purple);
    color: var(--rs-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-header {
        padding-right: 0;
        flex-wrap: wrap;
    }
    
    .post-actions {
        position: static;
        width: 100%;
        margin-top: 12px;
    }
    
    .edit-post-btn,
    .delete-post-btn,
    .share-post-btn {
        flex: 1;
        justify-content: center;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}
