/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid #21262d;
  margin-bottom: 2.5rem;
}
.hero-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  border: 2px solid #3B4252; margin: 0 auto 1.25rem;
  display: block; object-fit: cover;
}
.hero-name {
  font-size: 1.8rem; font-weight: 700; color: #e6edf3;
  letter-spacing: -0.5px; margin-bottom: 0.4rem;
}
.hero-tagline {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1rem;
  color: #8b949e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.hero-tagline .prompt { color: #88c0d0; }
.hero-tagline .rotating {
  color: #e6edf3;
  font-size: 1rem;
  min-width: 260px;
  text-align: left;
  border-right: 2px solid #88c0d0;
  overflow: visible;
  white-space: nowrap;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { border-color: #88c0d0; }
  50%       { border-color: transparent; }
}

/* ── Stats row ────────────────────────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #161b22; border: 1px solid #21262d;
  border-radius: 10px; padding: 1rem; text-align: center;
  text-decoration: none; display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: #88c0d0; transform: translateY(-2px); }
.stat-num { font-size: 2rem; font-weight: 700; color: #e6edf3; line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.75rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-dot { width: 6px; height: 6px; border-radius: 50%; margin: 0.5rem auto 0; }

/* ── Section headers ──────────────────────────────────────────────────────── */

.section-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid #21262d;
}
.section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.section-title { font-size: 0.85rem; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: 1px; }
.section-wrap { margin-bottom: 2.5rem; }

/* ── Post grid ────────────────────────────────────────────────────────────── */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.post-card {
  background: #161b22; border: 1px solid #21262d;
  border-radius: 8px; overflow: hidden;
  text-decoration: none; display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: #88c0d0; transform: translateY(-2px); }
.post-banner {
  height: 72px; position: relative;
  display: flex; align-items: flex-end; padding: 10px 12px;
  overflow: hidden;
}
.post-banner-maldev   { background: linear-gradient(135deg, #1a0a0a 0%, #0d1117 100%); }
.post-banner-machines { background: linear-gradient(135deg, #1a0a2a 0%, #0d1117 100%); }
.post-banner-prolabs  { background: linear-gradient(135deg, #0a1a0a 0%, #0d1117 100%); }

/* Post title — ellipsis at rest, scroll full text on hover */
.post-title-wrap {
  overflow: hidden;
  display: block;
  width: 100%;
}
.post-title {
  font-size: 13px; font-weight: 600; color: #e6edf3;
  white-space: nowrap;
  display: inline-block;
  text-overflow: ellipsis;
  max-width: 100%;
}

.post-meta { padding: 8px 12px; font-size: 11px; color: #81A1C1; border-top: 1px solid #21262d; }

/* ── Badges ───────────────────────────────────────────────────────────────── */

.diff-badge {
  position: absolute; top: 7px; right: 8px;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.badge-easy   { background: rgba(46,160,67,0.15);  border: 1px solid rgba(46,160,67,0.4);  color: #3fb950; }
.badge-medium { background: rgba(210,153,34,0.15); border: 1px solid rgba(210,153,34,0.4); color: #d29922; }
.badge-hard   { background: rgba(248,81,73,0.15);  border: 1px solid rgba(248,81,73,0.4);  color: #f85149; }
.badge-insane { background: rgba(163,71,217,0.15); border: 1px solid rgba(163,71,217,0.4); color: #a371f7; }
.badge-c      { background: rgba(88,166,255,0.15); border: 1px solid rgba(88,166,255,0.4); color: #58a6ff; }
.badge-rust   { background: rgba(210,105,30,0.15); border: 1px solid rgba(210,105,30,0.4); color: #e8834a; }
.badge-py { background: rgba(53,122,189,0.15); border: 1px solid rgba(53,122,189,0.4); color: #4b8bbe; }

.lock-badge {
  position: absolute; top: 7px; right: 8px;
  font-size: 9px; color: #8b949e;
  background: rgba(0,0,0,0.6); border: 1px solid #30363d;
  padding: 2px 5px; border-radius: 4px;
}
