/* Skeletons and empty states for every section that reads the database (app/js/shared/states.js).
   The shimmer itself is .x-shimmer in loading.css. */

.aw-w-45 { width: 45%; }
.aw-w-80 { width: 80%; }
.aw-w-95 { width: 95%; }

.aw-skel-tut {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--x-border);
}

.aw-skel-tut-thumb {
  width: 118px;
  height: 82px;
  border-radius: 10px;
  flex-shrink: 0;
}

.aw-skel-tut-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  padding-right: 44px;
}

.aw-skel-tut-avatar {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.aw-skel-lesson {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
}

.aw-skel-title {
  height: 26px;
  width: 70%;
  border-radius: 8px;
}

.aw-skel-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.aw-skel-block {
  width: 100%;
  height: 120px;
  border-radius: 14px;
}

.aw-skel-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--x-border);
}

.aw-skel-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aw-skel-spot {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  opacity: 0.6;
}

.aw-skel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.aw-skel-strip-item {
  height: 96px;
  border-radius: 12px;
  opacity: 0.6;
}

.aw-empty-state {
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid var(--x-border);
}

.aw-empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--x-text-primary, inherit);
}

.aw-empty-sub {
  margin: 0 auto;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--x-text-secondary, #71767b);
}

/* A tutorial card with no cover shows its text only. */
.tut-card.tut-card-no-cover .tut-card-body {
  padding-left: 0;
}

.aw-skel-avatar-lg {
  width: 64px;
  height: 64px;
}

.aw-skel-owner-head {
  padding-bottom: 20px;
}
