/* Link Preview Tooltip */
.link-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: var(--bg-preview);
    backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-preview);
    width: 240px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.link-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.link-preview__image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    background: #000;
    overflow: hidden;
}

.link-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-preview__content {
    padding: 12px 16px;
}

.link-preview__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    font-family: 'IBM Plex Sans', sans-serif;

    /* Truncate to 2 lines */
    display: -webkit-box;
    /* -webkit-line-clamp: 2; REMOVED to allow full text for context preview */
    -webkit-box-orient: vertical;
    /* overflow: hidden; REMOVED */
}

.link-preview__domain {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

.link-preview__description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
    display: none;
    /* Hidden by default */
}