/* Social Sharing Optimization CSS */


/* Đảm bảo ảnh hiển thị đúng kích thước cho social sharing */

.social-share-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 1200/630;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Tối ưu cho mobile */

@media (max-width: 768px) {
    .social-share-image {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}


/* Social sharing buttons */

.social-share-buttons {
    display: flex;
    gap: 12px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.social-share-btn.facebook:hover {
    background-color: #166fe5;
}

.social-share-btn.zalo {
    background-color: #0068ff;
    color: white;
}

.social-share-btn.zalo:hover {
    background-color: #0052cc;
}

.social-share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-share-btn.twitter:hover {
    background-color: #1a91da;
}

.social-share-btn.copy {
    background-color: #6b7280;
    color: white;
}

.social-share-btn.copy:hover {
    background-color: #4b5563;
}


/* Social share preview */

.social-share-preview {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9fafb;
    display: none;
    /* Ẩn mặc định */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.social-share-preview.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.social-share-preview h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.preview-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.preview-image {
    width: 120px;
    height: 63px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.preview-text {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.preview-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.preview-url {
    color: #9ca3af;
    font-size: 12px;
    margin: 4px 0 0 0;
}