/* ═══════════════════════════════════════════════════════════
   hrvault-courses: the certificate bits on the course page and the
   account tab: the «Πιστοποιητικό» side card, the claim form and the
   list of a member's certificates. Loaded after hvc.css; the tokens,
   buttons, chips and notes come from there. The certificate page itself
   carries its own inline styles (templates/certificate.php). Greek caps
   are produced in PHP through hvc_caps(); no text-transform in this file.
   ═══════════════════════════════════════════════════════════ */

/* ── Side card (markup of hvc_certificate_box) ─────────────── */
.hvc-cert-card { scroll-margin-top: var(--hvc-sticky-top, 140px); }
.hvc-cert-card .hvc-side-text { margin: 0 0 8px; }
.hvc-cert-card .hvc-side-text b { color: var(--hv-navy); font-weight: 600; }
.hvc-cert-card .hvc-side-card-action .hvc-btn { width: 100%; }
.hvc-cert-count { margin: 0; }
.hvc-cert-code {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--hv-navy);
  background: var(--hv-warm-gray); border: 1px solid var(--hv-line); border-radius: 4px; padding: 2px 8px; margin-top: 4px;
}
.hvc-cert-note { margin: 0 0 12px; font-size: 13px; padding: 10px 14px; }

/* ── Claim form (markup of hvc_certificate_claim_form) ────── */
.hvc-cert-form { margin: 0; }
.hvc-cert-label { display: block; font-size: 13px; font-weight: 600; color: var(--hv-navy); margin: 0 0 6px; }
.hvc-cert-input {
  display: block; width: 100%; margin: 0; padding: 10px 12px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.4; color: var(--hv-charcoal);
  background: #fff; border: 1px solid var(--hv-line); border-radius: 6px; color-scheme: light;
  -webkit-appearance: none; appearance: none; transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.hvc-cert-input:hover { border-color: var(--hv-navy); }
.hvc-cert-input:focus { outline: none; border-color: var(--hv-blue); box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.22); }
.hvc-cert-input::placeholder { color: var(--hv-muted); opacity: 1; }
.hvc-cert-hint { margin: 6px 0 0; line-height: 1.45; }
.hvc-cert-form .hvc-side-card-action { margin-top: 12px; }

/* ── Account tab (markup of hvc_account_certificates) ─────── */
.hvc-cert-list { display: grid; gap: 14px; margin: 0 0 18px; }
.hvc-cert-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  background: #fff; border: 1px solid var(--hv-line); border-radius: 8px; padding: 18px 20px; min-width: 0;
}
.hvc-cert-row-main { flex: 1 1 280px; min-width: 0; }
.hvc-cert-row h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600; color: var(--hv-navy); margin: 0 0 4px; line-height: 1.3; }
.hvc-cert-row h3 a { color: inherit; text-decoration: none; }
.hvc-cert-row h3 a:hover { color: var(--hv-orange); }
.hvc-cert-row-meta { font-size: 13px; color: var(--hv-muted); line-height: 1.6; }
.hvc-cert-row-meta .hvc-cert-code { font-size: 12.5px; padding: 1px 7px; margin-top: 0; }
.hvc-cert-row-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hvc-cert-row.is-revoked h3 { color: var(--hv-muted); }
.hvc-cert-claim {
  background: var(--hv-warm-gray); border: 1px solid var(--hv-line); border-left: 3px solid var(--hv-orange); border-radius: 8px;
  padding: 18px 20px; margin: 0 0 14px;
}
.hvc-cert-claim-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600; color: var(--hv-navy); margin: 0 0 6px; line-height: 1.3; }
.hvc-cert-claim .hvc-side-text { margin: 0 0 10px; }
.hvc-cert-claim .hvc-cert-input { max-width: 420px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hvc-cert-row { padding: 16px; }
  .hvc-cert-row-side { width: 100%; }
  .hvc-cert-row-side .hvc-btn { width: 100%; }
  .hvc-cert-claim { padding: 16px; }
  .hvc-cert-claim .hvc-cert-input { max-width: none; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hvc-cert-input { transition: none !important; }
}
