﻿/* --- Popover sizing + polish (Wikipedia-ish) --- */
.wiki-popover.popover {
  max-width: 360px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.wiki-popover .popover-body {
  padding: 0.75rem;
}

.wiki-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.wiki-card__thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wiki-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wiki-card__title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.wiki-card__extract {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: rgba(0, 0, 0, 0.75);
}

.wiki-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
}

.wiki-card__meta a {
  text-decoration: none;
}

/* --- Skeleton + shimmer --- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #eef0f3;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
.skeleton-line {
  height: 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.skeleton-line:first-child {
  margin-top: 0;
}

/* Optional link styling */
.wiki-preview-link {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
