/* ============================================================================
   AVH Studios — Public Provenance Registry
   A browsable, opt-in registry of works whose creators published them. Anyone
   can confirm a work's authorship, fingerprint and independent timestamp, and
   jump to the full certificate or the verification page. No login required.
   ========================================================================== */

.reg-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 22px 80px; }

/* ---- hero ---------------------------------------------------------------- */
.reg-hero {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 26px 32px; margin-bottom: 26px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 107, 53, .14), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(53, 194, 255, .13), transparent 55%),
    var(--panel);
}
.reg-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.reg-eyebrow {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.reg-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); animation: regPulse 2.2s ease-in-out infinite; }
@keyframes regPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, .45); } 50% { box-shadow: 0 0 0 7px rgba(255, 107, 53, 0); } }
.reg-hero h1 { position: relative; z-index: 1; margin: 0 0 10px; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.1; }
.reg-hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.reg-lead { position: relative; z-index: 1; margin: 0 auto; max-width: 700px; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.reg-lead b { color: var(--text); }
.reg-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 20px; }
.reg-stat { text-align: center; }
.reg-stat .n { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.reg-stat .l { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* ---- toolbar ------------------------------------------------------------- */
.reg-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.reg-search {
  flex: 1 1 260px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px;
  background: var(--panel-2); color: var(--text); font: inherit; font-size: .9rem;
}
.reg-search:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(53, 194, 255, .15); }
.reg-filter {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px;
  background: var(--panel-2); color: var(--text); font: inherit; font-size: .9rem;
}
.reg-btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 16px;
  background: var(--panel-2); color: var(--text); cursor: pointer;
  font: inherit; font-weight: 700; font-size: .88rem; white-space: nowrap; transition: .15s ease;
}
.reg-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---- grid of work cards -------------------------------------------------- */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.reg-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: .15s ease;
}
.reg-card:hover { border-color: rgba(53, 194, 255, .4); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.reg-card .rc-head { display: flex; align-items: center; gap: 12px; }
.reg-card .rc-seal { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: linear-gradient(135deg, rgba(255, 107, 53, .18), rgba(53, 194, 255, .18)); border: 1px solid var(--border); }
.reg-card .rc-title { font-size: 1.05rem; font-weight: 800; line-height: 1.2; word-break: break-word; }
.reg-card .rc-sub { color: var(--text-dim); font-size: .8rem; }
.reg-card .rc-owner { color: var(--text-dim); font-size: .82rem; }
.reg-card .rc-owner b { color: var(--text); }
.reg-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.reg-pill { font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--border); }
.reg-pill.ok { color: var(--accent-3); background: rgba(53, 255, 158, .1); border-color: rgba(53, 255, 158, .34); }
.reg-pill.warn { color: var(--accent); background: rgba(255, 107, 53, .1); border-color: rgba(255, 107, 53, .34); }
.reg-pill.dim { color: var(--text-dim); }
.reg-pill.blue { color: var(--accent-2); background: rgba(53, 194, 255, .1); border-color: rgba(53, 194, 255, .34); }
.reg-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--text-dim); word-break: break-all; }
.reg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.reg-links a {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px;
  background: var(--panel-2); color: var(--text); font-weight: 700; font-size: .82rem; transition: .15s ease;
}
.reg-links a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.reg-links a.primary { border-color: transparent; color: #0b0d11; background: linear-gradient(135deg, var(--accent-3), var(--accent-2)); }
.reg-links a.primary:hover { color: #0b0d11; box-shadow: 0 10px 24px rgba(53, 194, 255, .3); }

/* ---- states -------------------------------------------------------------- */
.reg-empty { text-align: center; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 46px 24px; background: var(--panel); line-height: 1.6; }
.reg-empty .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.reg-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent-2); border-radius: 50%; animation: regSpin .7s linear infinite; vertical-align: middle; }
@keyframes regSpin { to { transform: rotate(360deg); } }

@media (max-width: 560px) { .reg-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Section 123: publish-to-registry CTAs.
   ========================================================================== */
.reg-btn-pub { border-color: rgba(53, 194, 255, .4); color: var(--accent-2); background: rgba(53, 194, 255, .08); text-decoration: none; }
.reg-btn-pub:hover { border-color: var(--accent-2); color: var(--accent-2); }
.reg-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.reg-cta-btn {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .86rem; text-decoration: none;
  color: #0b0d11; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 9px 16px; transition: .15s ease;
}
.reg-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 107, 53, .3); }
.reg-cta-btn.alt { color: var(--accent-2); background: rgba(53, 194, 255, .08); border: 1px solid rgba(53, 194, 255, .4); }
.reg-cta-btn.alt:hover { border-color: var(--accent-2); box-shadow: none; }
