/* Link Preview Styles */
.link-preview {
    margin: 15px 0;
    max-width: 500px;
}

.link-preview-inner {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.link-preview-inner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.link-preview-thumbnail {
    position: relative;
    width: 100%;
    background: #f0f0f0;
}

.link-preview-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

.link-preview-youtube .link-preview-thumbnail {
    position: relative;
}

.link-preview-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    padding-left: 5px;
}

.link-preview-info {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-preview-site {
    font-size: 12px;
    color: #888;
    text-transform: lowercase;
}

.link-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-loading .link-preview-info {
    min-height: 60px;
}

@media (max-width: 600px) {
    .link-preview {
        max-width: 100%;
    }

    .link-preview-thumbnail img {
        max-height: 180px;
    }
}