/**
 * مرحله B — اسکلتون فید + دکمه‌های یکدست صفحه اول
 */

/* ——— دکمه‌های میانبر (CTA) ——— */
.asy-cta-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 12px 0 16px !important;
}
@media (min-width: 600px) {
  .asy-cta-row {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
.asy-cta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 76px !important;
  padding: 12px 8px !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease !important;
}
.asy-cta:active { transform: scale(.97) !important; }
.asy-cta-ico {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
}
.asy-cta-ico svg {
  width: 20px !important;
  height: 20px !important;
}
.asy-cta-primary {
  background: linear-gradient(145deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28) !important;
  grid-column: 1 / -1 !important;
}
@media (min-width: 600px) {
  .asy-cta-primary { grid-column: auto !important; }
}
.asy-cta-primary .asy-cta-ico {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}
.asy-cta-ghost {
  background: var(--card, #1e293b) !important;
  color: var(--text, #e2e8f0) !important;
  border: 1px solid var(--border, rgba(148, 163, 184, .2)) !important;
}
.asy-cta-ghost .asy-cta-ico {
  background: rgba(59, 130, 246, .12) !important;
  color: #60a5fa !important;
}
.asy-cta-ghost:hover {
  border-color: rgba(59, 130, 246, .4) !important;
}

/* ——— اسکلتون کارت آگهی ——— */
@keyframes asy-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.asy-skel-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: var(--ad-thumb-h, 112px);
  border-radius: var(--ad-radius, 14px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(148, 163, 184, .15));
  background: var(--card, #1e293b);
  pointer-events: none;
}
.asy-skel-thumb,
.asy-skel-line {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, .08) 0%,
    rgba(148, 163, 184, .18) 40%,
    rgba(148, 163, 184, .08) 80%
  );
  background-size: 200% 100%;
  animation: asy-shimmer 1.2s ease-in-out infinite;
}
.asy-skel-thumb {
  width: var(--ad-thumb, 112px);
  min-width: var(--ad-thumb, 112px);
  height: var(--ad-thumb-h, 112px);
  flex-shrink: 0;
}
.asy-skel-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.asy-skel-line {
  height: 12px;
  border-radius: 6px;
}
.asy-skel-line.w80 { width: 80%; }
.asy-skel-line.w60 { width: 60%; }
.asy-skel-line.w40 { width: 40%; height: 14px; margin-top: 4px; }

.asy-feed-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 4px;
}
.asy-feed-status[hidden] { display: none !important; }
.asy-feed-status .asy-skel-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asy-feed-status .asy-feed-spinner {
  display: none !important; /* اسکلتون جایگزین اسپینر */
}
.asy-feed-status .asy-feed-status-txt {
  text-align: center;
  font-size: .78rem;
  color: var(--muted, #94a3b8);
  margin-top: 4px;
}

@media (min-width: 900px) {
  .asy-feed-status .asy-skel-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
