@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(18, 18, 28, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(120, 140, 255, 0.35);
  --text: #eef0ff;
  --muted: #8b93b0;
  --accent: #6b8cff;
  --accent-2: #22d3ee;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(80, 100, 255, 0.15), transparent),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(34, 211, 238, 0.08), transparent);
  z-index: 0;
}

.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-url {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.tabs { display: flex; gap: 4px; }

.tabs button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.tabs button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.tabs button.active { color: var(--text); background: rgba(107,140,255,0.15); }

.content {
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 48px clamp(16px, 4vw, 48px) 32px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.fade-in { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.profile-card { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); filter: grayscale(0.2);
}
.status-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg);
}
.profile-info { flex: 1; min-width: 0; }
.name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 5vw, 36px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.1;
}
.tagline { color: var(--muted); font-size: 14px; margin-top: 4px; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid; color: var(--muted);
}
.status-pill-dot { width: 7px; height: 7px; border-radius: 50%; }
.activity {
  font-size: 12px; color: var(--muted);
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sync-time { font-size: 11px; color: rgba(139,147,176,0.6); margin-top: 8px; }
.bio-text { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 24px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn {
  display: inline-flex; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 14px; font-weight: 500; transition: all 0.2s; text-decoration: none;
}
.link-btn:hover { border-color: var(--border-hi); background: rgba(107,140,255,0.1); text-decoration: none; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; }
.ghost-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center;
}
.ghost-btn:hover { color: var(--text); border-color: var(--border-hi); text-decoration: none; }
.ghost-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ghost-btn.danger:hover { border-color: rgba(239,68,68,0.5); color: #f87171; }

.project-grid { display: flex; flex-direction: column; gap: 20px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(10px); transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.project-image-wrap { aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,0.3); }
.project-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); transition: filter 0.3s; }
.project-card:hover .project-image { filter: grayscale(0); }
.project-body { padding: 20px 22px 22px; }
.project-body h3 { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.project-body p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: rgba(107,140,255,0.12); color: var(--accent); border: 1px solid rgba(107,140,255,0.2);
}
.project-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 500; }
.empty-state { color: var(--muted); font-size: 14px; padding: 32px 0; text-align: center; }

.footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

.dev-page { min-height: 100vh; padding: 40px clamp(16px, 4vw, 48px); max-width: 480px; margin: 0 auto; }
.dev-page.wide { max-width: 960px; }
.dev-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dev-header h1 { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; }
.dev-actions { display: flex; gap: 8px; }
.dev-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dev-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(10px);
}
.dev-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 18px; margin-bottom: 20px; }
.dev-form { display: flex; flex-direction: column; gap: 16px; }
.dev-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.dev-form input, .dev-form textarea {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; outline: none;
}
.dev-form input:focus, .dev-form textarea:focus { border-color: var(--border-hi); }
.dev-form button[type="submit"] {
  background: linear-gradient(135deg, #4f6ef7, var(--accent));
  border: none; color: #fff; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.form-btns { display: flex; gap: 10px; }
.dev-msg {
  font-size: 13px; color: var(--accent-2); margin-bottom: 16px;
  padding: 10px 14px; background: rgba(34,211,238,0.08);
  border-radius: 8px; border: 1px solid rgba(34,211,238,0.2);
}
.dev-msg.error { color: #f87171; background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.back-link { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--muted); }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.preview-img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.dev-list { display: flex; flex-direction: column; gap: 12px; }
.dev-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.dev-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.dev-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-item-info strong { font-size: 14px; }
.dev-item-info span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-item-btns { display: flex; gap: 6px; flex-shrink: 0; }

.hidden { display: none !important; }

@media (max-width: 768px) {
  .profile-card { flex-direction: column; text-align: center; }
  .status-row { justify-content: center; }
  .dev-grid { grid-template-columns: 1fr; }
  .dev-header { flex-direction: column; }
}
