/* ═══════════════════════════════════════════
   ledger.css — Ledger page styles
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.6rem 2.5rem;
  text-align: center;
  gap: 1.2rem;
}

.hero__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

/* ── Result Panel ── */
.result {
  padding: 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 info strip (3 rows) ── */
.result__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.result__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.result__value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.result__value-word {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

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

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

/* ── Owner action area (claim / bet buttons) ── */
#owner-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

#owner-action-area .btn {
  width: 80%;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  text-align: center;
}

/* ── Board image ── */
.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;
}

/* ── FEN ── */
.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; }

/* ── History ── */
.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;
}

.result .btn--ghost {
  margin: 1.2rem 1.4rem;
  width: calc(100% - 2.8rem);
}

/* ── Daily budget hint on ledger ── */
.ledger-daily-budget {
  margin: 0.5rem 1.4rem 0.8rem;
}

.ledger-daily-budget__text {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
}

.ledger-daily-budget__text--warn {
  color: #e07b20;
}
