/* X-style repost headers + quote post cards (fed by API extras). */

.yal-repost-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 6px 52px;
  font-size: 0.82rem;
  color: #8b98a5;
}

.yal-repost-header strong {
  color: #e7e9ea;
  font-weight: 700;
}

.yal-repost-icon {
  color: #23d18b;
  font-size: 0.95rem;
  filter: drop-shadow(0 0 6px rgba(35, 209, 139, 0.55));
}

article.x-post.yal-post-reposted {
  border-left-color: rgba(35, 209, 139, 0.35);
}

.yal-quote-wrap {
  margin: 10px 16px 0 52px;
}

.yal-quote-card {
  border: 1px solid rgba(138, 99, 255, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(6, 4, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yal-quote-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(120, 86, 255, 0.18);
}

.yal-quote-head {
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.yal-quote-head strong {
  color: #e7e9ea;
}

.yal-quote-handle {
  color: #71767b;
  margin-left: 4px;
}

.yal-quote-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cfd9de;
  white-space: pre-wrap;
  word-break: break-word;
}

.yal-quote-media {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.yal-quote-media img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

article.x-post.yal-post-quoted .yal-quote-wrap {
  animation: yal-quote-in 0.35s ease-out both;
}

@keyframes yal-quote-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  article.x-post.yal-post-quoted .yal-quote-wrap {
    animation: none;
  }
}
