/* ── BTC Lottery — History Page Stylesheet ──────────────────────── */

:root {
  --btc: #f7931a;
  --btc-dim: rgba(247,147,26,0.12);
  --btc-light: #ffb347;
  --bg: #050508;
}

* { font-family: 'Inter', sans-serif; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(247,147,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #fff;
  min-height: 100vh;
}

/* Blobs */
.blob-orange {
  position: fixed; top: -200px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,147,26,0.1), transparent 70%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.blob-blue {
  position: fixed; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.05), transparent 70%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}

/* Navbar */
.navbar {
  background: rgba(5,5,8,0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-icon { font-size: 1.5rem; color: var(--btc); filter: drop-shadow(0 0 10px rgba(247,147,26,0.5)); }
.brand-name { font-family: 'Rajdhani', sans-serif; font-weight: 900; font-size: 1.1rem; letter-spacing: 3px; color: var(--btc); line-height: 1; }
.brand-sub  { font-size: 9px; letter-spacing: 3px; color: rgba(247,147,26,0.4); font-weight: 600; }

.nav-link-custom {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link-custom:hover  { color: rgba(255,255,255,0.7); }
.nav-link-custom.active { color: var(--btc); border-bottom-color: var(--btc); }

/* Layout */
main { position: relative; z-index: 1; }

/* Page header */
.page-label {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(247,147,26,0.5);
}
.page-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1;
  color: #fff;
}
.page-desc { font-size: 14px; color: rgba(255,255,255,0.3); line-height: 1.6; }

/* Stats bar */
.stat-card {
  background: rgba(247,147,26,0.04);
  border: 1px solid rgba(247,147,26,0.1);
  border-radius: 14px;
  padding: 14px 20px;
}
.stat-label { font-size: 10px; color: rgba(247,147,26,0.4); letter-spacing: 1px; text-transform: uppercase; }
.stat-value {
  font-family: 'Rajdhani', sans-serif; font-weight: 900;
  font-size: 1.6rem; color: var(--btc); line-height: 1;
}

/* Number badge */
.num-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 900;
  font-size: 1.15rem; color: #fff; line-height: 1;
  flex-shrink: 0;
}

/* Table */
.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}
.history-table thead th {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  padding: 10px 14px;
  white-space: nowrap;
}
.history-table tbody tr {
  background: rgba(247,147,26,0.03);
  border: 1px solid rgba(247,147,26,0.08);
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}
.history-table tbody tr:hover {
  background: rgba(247,147,26,0.07);
  transform: translateX(2px);
}
.history-table tbody tr.is-latest {
  background: rgba(247,147,26,0.07);
  border-color: rgba(247,147,26,0.25);
}
.history-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
}
.history-table tbody td:first-child { border-radius: 12px 0 0 12px; }
.history-table tbody td:last-child  { border-radius: 0 12px 12px 0; }

.hash-link {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.25); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.hash-link:hover { color: var(--btc); }
.hash-link .link-icon { opacity: 0; transition: opacity 0.2s; font-size: 10px; }
.hash-link:hover .link-icon { opacity: 0.7; }

.rank-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(247,147,26,0.4);
}
.rank-badge.latest { color: var(--btc); }

/* Distribution bar */
.dist-bar-wrap {
  background: rgba(247,147,26,0.06);
  border: 1px solid rgba(247,147,26,0.1);
  border-radius: 14px;
  padding: 20px;
}
.dist-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  overflow: visible;
}
.dist-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 10px; color: rgba(255,255,255,0.5);
  cursor: default;
  transition: transform 0.15s;
  position: relative;
  overflow: visible;
}
.dist-cell:hover { transform: scale(1.1); z-index: 2; }
.dist-cell.hit  { color: #fff; }

/* Animations */
@keyframes pulse-slow {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.pulse-slow { animation: pulse-slow 2s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; display: inline-block; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in-up 0.5s ease both; }

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 0;
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  position: relative; z-index: 1;
}

/* Text utils */
.text-btc       { color: var(--btc) !important; }
.text-btc-dim   { color: rgba(247,147,26,0.5) !important; }
.text-btc-light { color: var(--btc-light) !important; }
.font-mono      { font-family: 'JetBrains Mono', monospace; }
.font-rajdhani  { font-family: 'Rajdhani', sans-serif; }
