/* ── Skeleton Cards ──────────────────────────────── */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.skeleton-card {
  background: var(--bg-subtle, #f9f9f9);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  background: #e5e5e5;
  border-radius: 4px;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skeleton-line--title {
  width: 40%;
  height: 18px;
}

.skeleton-line--body {
  width: 100%;
}

.skeleton-line--short {
  width: 65%;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ── Error Banner ───────────────────────────────── */
.error-banner {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.error-banner__text {
  flex: 1;
}

.error-banner__retry {
  flex-shrink: 0;
}

/* ── Loading Spinner ────────────────────────────── */
.loading-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border, #e5e5e5);
  border-top-color: var(--accent, #FD384E);
  border-radius: 50%;
  animation: spinner-rotate 0.7s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* ── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  min-width: 200px;
  max-width: 360px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--fade {
  opacity: 0;
  transform: translateY(16px);
}

.toast--success { background: #16a34a; }
.toast--error   { background: #dc2626; }
.toast--info    { background: #1a1a1a; }

/* ── Empty State ────────────────────────────────── */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
  text-align: center;
}

.empty-state__text {
  color: var(--muted, #666);
  font-size: 14px;
  line-height: 1.4;
}

/* ── Retry Button ───────────────────────────────── */
.retry-btn {
  background: var(--accent, #FD384E);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s;
}

.retry-btn:hover {
  background: #e0223a;
}

/* ── Mobile-first ───────────────────────────────── */
@media (min-width: 768px) {
  .toast {
    bottom: 32px;
    right: 32px;
  }
}
