/* SainTech — components.
   Static CSS ports of the design system's Button / Badge / Chip /
   VideoCard. Motion follows the kit: --ease-out, no overshoot,
   hover = brightness(1.08) + 3px lift, press = scale(0.97). */

/* ============================================================
   Button
   variants: primary | secondary | ghost      sizes: sm | md | lg
   ============================================================ */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  letter-spacing: var(--tracking-normal);
  border: var(--border-width-bold) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    filter var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.st-btn:hover { filter: brightness(1.08); transform: translateY(-3px); }
.st-btn:active { transform: scale(0.97); }
.st-btn:focus-visible {
  outline: var(--border-width-bold) solid var(--focus-ring);
  outline-offset: 2px;
}

.st-btn--sm { height: 38px; padding: 0 16px; font-size: var(--text-sm); }
.st-btn--md { height: 46px; padding: 0 20px; font-size: var(--text-base); }
.st-btn--lg { height: 52px; padding: 0 26px; font-size: var(--text-lg); }

.st-btn--primary {
  background: var(--brand);
  color: var(--text-on-brand);
  border-color: var(--brand);
}
.st-btn--primary:hover { box-shadow: var(--glow-brand); }

.st-btn--secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.st-btn--secondary:hover { border-color: var(--brand); color: var(--brand); }

.st-btn--ghost {
  background: transparent;
  color: var(--text-body);
  border-color: transparent;
}
.st-btn--ghost:hover { color: var(--text-strong); background: var(--bg-raised); }

/* ============================================================
   Badge — tone: brand | accent | neutral
   ============================================================ */
.st-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}
.st-badge--brand   { background: var(--brand);  color: var(--text-on-brand); }
.st-badge--accent  { background: var(--accent); color: var(--ink-900); }
.st-badge--neutral { background: var(--bg-raised); color: var(--text-body); }

/* ============================================================
   Chip — pills are reserved for chips and avatars
   ============================================================ */
.st-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.st-chip:hover { color: var(--text-strong); border-color: var(--brand); }

/* ============================================================
   VideoCard
   ============================================================ */
.st-videocard {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: var(--border-width-bold) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.st-videocard:hover { transform: translateY(-3px); border-color: var(--brand); }

.st-videocard__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raised);
}
.st-videocard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-videocard__new {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  color: var(--ink-900);
}

.st-videocard__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(10, 14, 26, 0.85);
  color: #fff;
}

.st-videocard__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.st-videocard__title {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15.5px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-strong);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-videocard__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
