:root {
  --bg: #0f172a; /* slate-900 */
  --panel: #111827; /* gray-900 */
  --muted: #94a3b8; /* slate-400 */
  --text: #e5e7eb; /* gray-200 */
  --accent: #6366f1; /* indigo-500 */
  --accent-2: #22d3ee; /* cyan-400 */
  --ring: rgba(99, 102, 241, 0.35);
  --success: #10b981; /* emerald-500 */
  --danger: #ef4444; /* red-500 */
  --card: #0b1220; /* darker panel */
  --border: rgba(148, 163, 184, 0.15);
}
* {
  box-sizing: border-box;
  user-select: none;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  background: radial-gradient(
      1200px 800px at 10% -10%,
      rgba(34, 211, 238, 0.15),
      transparent 60%
    ),
    radial-gradient(
      1000px 800px at 110% 10%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}
.app {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.title {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.3px;
}
.title svg {
  width: 28px;
  height: 28px;
}
.title h1 {
  font-size: clamp(20px, 3.2vw, 28px);
  margin: 0;
  font-weight: 700;
}
.hint {
  color: var(--muted);
  font-size: 14px;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.search .field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0f1c;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.search .field:focus-within {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: transparent;
}
.search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.2px;
}
.kbd {
  font-size: 12px;
  color: var(--muted);
  background: #0f172a;
  border: 1px solid var(--border);
  padding: 4px 6px;
  border-radius: 6px;
}
.btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #0b1020;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.12),
    0 6px 14px rgba(99, 102, 241, 0.18);
}
.btn:active {
  transform: translateY(1px);
}

.grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, #0b1220, #0a0f1c 60%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-2),
    var(--accent)
  );
  padding: 3px;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.username {
  color: var(--muted);
  font-size: 14px;
}

.stats {
  display: flex;
  gap: 10px;
  width: 100%;
}
.stat {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: #0b1220;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.25px;
}
.stat .value {
  font-size: 20px;
  font-weight: 800;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bio {
  color: var(--muted);
  line-height: 1.6;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: #0b1220;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #0c1322;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.repos {
  margin-top: 16px;
  display: none;
}
.repos h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--accent-2);
}
.repo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #1e293b;
}
.repo a {
  flex: 1;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.repo span {
  font-size: 14px;
  color: var(--muted);
}
