/* jarchi weekly class (classes.js): «ساخت کلاس» on the home page, the teacher's panel, the student's waiting card. */

/* ---------- home ---------- */
#class-new .btn { margin-top: 4px; }
.card.made { background: var(--accent-soft); border-color: transparent; }
.card.made h2 { color: var(--accent); }
.card.made .hint { margin: 0; color: var(--ink); }
.card.secret { border-color: var(--live); }
.secret-note {
  display: inline-block;
  background: var(--live-soft); color: var(--warn);
  font-weight: 800; font-size: 14px;
  border-radius: 8px; padding: 2px 10px; margin: -6px 0 12px;
}
.mine { list-style: none; padding: 0; margin: 6px 0 0; }
.mine li { border-top: 1px solid var(--line); }
.mine li:first-child { border-top: 0; }
.mine a { display: block; padding: 10px 0; color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- the teacher's panel ---------- */
.top h1#class-name { min-width: 0; overflow-wrap: anywhere; }
.class-by { margin-top: -8px; }
.class-start { text-align: center; }
.class-start .lead { font-weight: 800; font-size: 18px; margin: 0 0 2px; }
.class-start .hint { margin-bottom: 10px; }
.class-start[data-live="1"] { border-color: var(--accent); background: var(--accent-soft); }
.class-start[data-live="1"] .lead { color: var(--accent); }
.class-start .err.quiet { margin: 10px 0 0; }

.sessions { list-style: none; padding: 0; margin: 8px 0 0; }
.sessions > li { padding: 12px 0; border-top: 1px solid var(--line); }
.sessions > li:first-child { border-top: 0; padding-top: 4px; }
.s-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.s-head b { font-size: 16px; }
.s-date { color: var(--ink); font-size: 14px; }
.s-meta { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.s-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.s-recs { list-style: none; padding: 0; margin: 10px 0 0; }
.s-recs li { background: var(--bg); border-radius: 12px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.s-recs audio { display: block; width: 100%; margin-top: 8px; }
.s-recs audio[hidden] { display: none; }
.sessions .err.quiet { margin: 8px 0 0; }
.secret-foot { text-align: center; font-size: 13px; }

/* ---------- the student link ---------- */
.status {
  font-weight: 700; font-size: 15px;
  background: var(--hand); color: var(--hand-ink);
  border-radius: 12px; padding: 10px 12px; margin: 0 0 14px;
}
.status:empty { display: none; }
.status b, .status span { display: block; }
.status span { font-weight: 400; font-size: 14px; margin-top: 2px; }
.status[data-state="live"] { background: var(--accent-soft); color: var(--accent); }

.class-wait { text-align: center; padding-block: 28px; }
.class-wait h2 { font-size: 19px; margin: 12px 0 6px; }
.class-wait .hint { margin: 0 auto 10px; max-width: 32ch; }
.who-line { color: var(--muted); font-size: 13px; margin: 0; }
.pulse {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: class-pulse 1.8s ease-out infinite;
}
.class-wait[data-after="1"] .pulse { background: var(--muted); animation-duration: 3s; }
@keyframes class-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 16px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
