* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
}

.hidden { display: none !important; }

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav ────────────────────────────────────────────── */
.nav { padding: 12px 24px; }
.nav-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 16px; font-weight: 800; color: #222; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 8px; }
.nav-link { font-size: 13px; font-weight: 600; color: #888; text-decoration: none; padding: 6px 12px; }
.nav-link:hover { color: #222; }
.nav-link-primary { color: #1976d2; }
.nav-link-primary:hover { color: #1565c0; }

/* ─── Hero ───────────────────────────────────────────── */
.hero { text-align: center; padding: 50px 0 30px; }
.hero-title { font-size: 52px; font-weight: 800; color: #222; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 8px; }
.hero-subtitle { font-size: 16px; color: #1976d2; margin-bottom: 20px; }
.stats-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.stat { font-size: 13px; color: #555; }

/* ─── Divider ────────────────────────────────────────── */
.divider { border: none; border-top: 2px dashed #e0e0e0; margin: 30px auto; max-width: 900px; }

/* ─── Search ─────────────────────────────────────────── */
.search-bar { display: flex; align-items: center; border: 2px dashed #ddd; border-radius: 4px; padding: 4px 6px 4px 16px; gap: 8px; max-width: 650px; margin: 0 auto; transition: border-color 0.2s; }
.search-bar:focus-within { border-color: #1976d2; }
.search-icon { font-size: 16px; color: #999; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15px; padding: 10px 0; font-family: inherit; color: #222; background: transparent; }
.search-bar input::placeholder { color: #bbb; }
.btn-bend { background: #1976d2; color: #fff; border: none; padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.btn-bend:hover { background: #1565c0; }

/* ─── Wall Section ───────────────────────────────────── */
.wall-section { text-align: center; padding-bottom: 40px; }
.section-title { font-size: 28px; font-weight: 800; color: #222; letter-spacing: -0.5px; margin-bottom: 4px; }
.section-subtitle { font-size: 14px; color: #888; margin-bottom: 24px; }

.bend-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }

.wall-loading { grid-column: 1 / -1; text-align: center; padding: 40px; }

/* ─── Wall Card ──────────────────────────────────────── */
.wall-card {
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.wall-card:hover { border-color: #1976d2; }

.wall-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wall-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e0e0e0; flex-shrink: 0; object-fit: cover; }
.wall-card-channel { font-size: 14px; font-weight: 700; color: #1976d2; text-decoration: none; }

.wall-card-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.wall-card-bend { font-size: 15px; font-weight: 800; color: #222; margin-bottom: 8px; }
.wall-card-titles { list-style: none; padding: 0; }
.wall-card-titles li { font-size: 12px; color: #666; padding: 2px 0; }
.wall-card-titles li::before { content: "\2192  "; color: #1976d2; font-weight: 700; }

.wall-card-score { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 800; color: #2e7d32; }

/* ─── Blurred titles (teaser) ────────────────────────── */
.wall-card-titles.blurred li {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* ─── Claimed card (fully blurred) ───────────────────── */
.wall-card.claimed-card {
  border-color: #DAA520;
  padding: 14px;
  min-height: 0;
  max-height: 140px;
}

.wall-card.claimed-card .wall-card-header,
.wall-card.claimed-card .wall-card-label,
.wall-card.claimed-card .wall-card-bend {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.wall-card-claimed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.wall-card-claimed-overlay .lock { font-size: 32px; }
.wall-card-claimed-overlay .claimed-text {
  font-size: 12px;
  font-weight: 700;
  color: #DAA520;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.wall-card.claimed-card:hover .claimed-text { opacity: 1; }

/* ─── Hover overlay (claim CTA) ──────────────────────── */
.wall-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  background: rgba(25, 118, 210, 0.06);
  z-index: 1;
}
.wall-card:not(.claimed-card):hover .wall-card-hover { opacity: 1; }
.wall-card:not(.claimed-card):hover .wall-card-content { opacity: 0.15; }

.wall-card-hover span { font-size: 15px; font-weight: 800; color: #1976d2; }

.wall-card-content { transition: opacity 0.25s; }

/* ─── Unlock Button ──────────────────────────────────── */
.btn-unlock {
  display: block;
  margin: 30px auto 0;
  padding: 14px 32px;
  background: #fff;
  color: #1976d2;
  border: 2px dashed #1976d2;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-unlock:hover {
  background: rgba(25, 118, 210, 0.05);
}

/* ─── Spinner ────────────────────────────────────────── */
.spinner { width: 28px; height: 28px; border: 3px solid #e8e8e8; border-top-color: #1976d2; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Modal ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 4px; padding: 32px; width: 380px; max-width: 90vw; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer; }
.modal-close:hover { color: #222; }
.modal-title { font-size: 22px; font-weight: 800; color: #222; margin-bottom: 8px; }

/* ─── Footer ─────────────────────────────────────────── */
.footer { background: #fafafa; border-top: 2px dashed #e0e0e0; padding: 40px 24px 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 16px; font-weight: 800; color: #222; }
.footer-text { font-size: 13px; color: #888; margin-top: 8px; line-height: 1.5; }
.footer-heading { font-size: 13px; font-weight: 700; color: #222; margin-bottom: 10px; }
.footer-link { display: block; font-size: 13px; color: #888; text-decoration: none; margin-bottom: 6px; }
.footer-link:hover { color: #1976d2; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid #e8e8e8; font-size: 12px; color: #bbb; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 700px) {
  .hero-title { font-size: 36px; }
  .bend-wall { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-row { flex-direction: column; align-items: center; gap: 8px; }
}
