/* ── Feed Cards Component ─────────────────────────────────────────
   Horizontal scrollable "Per te" strip, reusable across app views.
   ──────────────────────────────────────────────────────────────── */

/* ── Strip container ─────────────────────────────────────────────── */

.feed-strip {
  margin: 1rem 0 1.2rem;
}

.feed-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.5rem;
}

.feed-strip-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-cream, #F5F0E1);
  letter-spacing: 0.02em;
}

/* ── Scroll track ────────────────────────────────────────────────── */

.feed-strip-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 0.5rem;
  scrollbar-width: none;
}

.feed-strip-scroll::-webkit-scrollbar { display: none; }

/* ── Feed card ───────────────────────────────────────────────────── */

.feed-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  min-height: 88px;
}

.feed-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.feed-card:active {
  transform: scale(0.98);
}

/* ── Icon ─────────────────────────────────────────────────────────── */

.feed-card-icon {
  flex: 0 0 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

/* ── Body ─────────────────────────────────────────────────────────── */

.feed-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feed-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cream, #F5F0E1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-summary {
  font-size: 0.72rem;
  color: rgba(245, 240, 225, 0.55);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.65rem;
  color: rgba(245, 240, 225, 0.4);
}

.feed-card-domain {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--color-teal, #33A199);
}

.feed-card-time {
  opacity: 0.7;
}

/* ── Skeleton loading ────────────────────────────────────────────── */

.feed-card--skeleton {
  pointer-events: none;
}

.feed-card--skeleton .skeleton-pulse {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: feed-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  min-height: 0.75rem;
}

.feed-card--skeleton .feed-card-icon.skeleton-pulse {
  border-radius: 8px;
  min-height: 36px;
}

@keyframes feed-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .feed-card { flex: 0 0 300px; }
}

@media (min-width: 1024px) {
  .feed-strip-scroll { gap: 1rem; }
  .feed-card { flex: 0 0 320px; }
}
