/* ══════════════════════════════════════════════════════
   SKELETON LOADING PLACEHOLDERS
   Depends on: variables.css (uses --line, --surface)
   ══════════════════════════════════════════════════════ */

@keyframes cs-shimmer {
  0%   { background-position: -400px 0 }
  100% { background-position: 400px 0 }
}

.cs-skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-base, rgba(255,255,255,.04)) 25%,
    var(--skeleton-shine, rgba(255,255,255,.08)) 37%,
    var(--skeleton-base, rgba(255,255,255,.04)) 63%
  );
  background-size: 800px 100%;
  animation: cs-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* Light theme overrides */
:root[data-theme="light"] .cs-skeleton {
  --skeleton-base: rgba(0,0,0,.06);
  --skeleton-shine: rgba(0,0,0,.10);
}

/* ── Skeleton shapes ── */
.cs-skel-circle {
  border-radius: 50%;
}
.cs-skel-text {
  height: 12px;
  border-radius: 4px;
}
.cs-skel-text-lg {
  height: 16px;
  border-radius: 4px;
}
.cs-skel-pill {
  height: 24px;
  border-radius: 12px;
}
.cs-skel-card {
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ── Skeleton table row ── */
.cs-skel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.cs-skel-row:last-child {
  border-bottom: none;
}

/* ── Skeleton stat card ── */
.cs-skel-stat {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Skeleton teacher card (public page) ── */
.cs-skel-teacher-card {
  display: flex;
  direction: rtl;
  background: linear-gradient(165deg, rgba(34,8,16,.95), rgba(26,6,8,.98));
  border: 1px solid rgba(212,160,23,.18);
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
}
:root[data-theme="light"] .cs-skel-teacher-card {
  background: linear-gradient(165deg, #fff, #fafafa);
  border-color: rgba(0,0,0,.08);
}
.cs-skel-teacher-card .cs-skel-photo {
  width: 40%;
  min-height: 220px;
}
.cs-skel-teacher-card .cs-skel-info {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

