/* Link preview card */
#link-preview-card {
  position: fixed;
  width: 600px;
  height: 500px;
  background: #fff;
  border: 2px solid #ccc;
	border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  gap: 8px;
}

.preview-card-title {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.preview-card-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  color: #666;
  flex-shrink: 0;
}

.preview-card-close:hover {
  color: #000;
}

.preview-card-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-size: 18px;
}

.preview-card-body h1 { font-size: 1.5em; }
.preview-card-body h2 { font-size: 1.17em; }
.preview-card-body h3 { font-size: 1em; }
.preview-card-body h4 { font-size: 0.83em; }
.preview-card-body h5, .preview-card-body h6 { font-size: 0.75em; }

#link-preview-card img {
  max-width: 100%;
  width: auto;
}

.preview-card-loading {
  color: #888;
}
