/* ═══════════════════════════════════════════
   rude_ledger.css — Public Knipar Lookup page
   ═══════════════════════════════════════════ */

/* ── Search bar ── */
.rl-search {
  padding: 1.6rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rl-search__label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.rl-search__row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rl-search__input {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  text-transform: uppercase;
}

.rl-search__input::placeholder {
  color: var(--text-dim);
  text-transform: none;
}

.rl-search__input:focus {
  border-color: var(--gold);
  background: rgba(42,23,16,0.9);
  box-shadow: 0 0 0 3px rgba(201,146,42,0.15);
}

[data-theme="light"] .rl-search__input {
  background: var(--bg-surface);
  color: var(--cream);
}

.rl-search__btn {
  width: 100%;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.rl-search__hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.rl-search__hint code {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--gold-dim);
  word-break: break-all;
}

/* ── Result card — reuse ledger styles ── */
.result {
  padding: 0 1.4rem 1.6rem;
  flex: 1;
}

.result__card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s ease;
}

.result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.result__value-block,
.result__owner-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result__owner-block { text-align: right; }

.result__value-label,
.result__owner-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.result__value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: var(--shadow-gold);
  line-height: 1;
}

.result__owner-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.result__board-wrap {
  padding: 1.2rem;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.result__board {
  width: auto;
  max-width: 100%;
  max-height: 55vw;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  margin: 0 auto;
}

.result__fen-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.result__fen-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.result__fen-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result__fen {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--cream-dim);
  word-break: break-all;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex: 1;
}

.btn--copy {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}
.btn--copy:hover  { background: rgba(201,146,42,0.15); border-color: var(--gold); }
.btn--copy:active { transform: scale(0.92); }
.btn--copy.copied { color: #5cb85c; border-color: #5cb85c; }

.result__history {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.result__history-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
  letter-spacing: 0.06em;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(61,36,16,0.5);
}
.history-list li:last-child { border-bottom: none; }

.history-list li .owner-name { color: var(--cream); font-weight: 600; flex: 1; }
.history-list li .owner-date { font-size: 0.75rem; color: var(--gold-dim); white-space: nowrap; }

.history-empty { color: var(--text-dim); font-style: italic; font-size: 0.85rem; }

/* ── Action area at bottom of card ── */
.rl-action {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rl-action__login-prompt {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ── Not found panel ── */
.rl-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 0.8rem;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.rl-not-found__icon {
  font-size: 3.5rem;
  color: rgba(201,146,42,0.3);
  line-height: 1;
}

.rl-not-found__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cream);
}

.rl-not-found__desc {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ── Topbar auth area ── */
#topbar-auth-area .btn {
  white-space: nowrap;
}
