/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-from: #0d0d1a;
  --bg-to: #111128;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f0;
  --muted: #aaa;
  --radius: 14px;
  --transition: 0.2s ease;

  /* brand colours */
  --twitter: #000000;
  --twitter-hover: #1a1a1a;
  --discord: #5865F2;
  --discord-hover: #4752c4;
  --discord-server: #3a3f6e;
  --discord-server-hover: #2e3259;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, var(--bg-from), var(--bg-to));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── Profile ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.25);
}

.name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.link-btn:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

/* colours per type */
.link-btn.twitter        { background: var(--twitter); }
.link-btn.twitter:hover  { background: var(--twitter-hover); }

.link-btn.discord        { background: var(--discord); }
.link-btn.discord:hover  { background: var(--discord-hover); }

.link-btn.discord-server        { background: var(--discord-server); }
.link-btn.discord-server:hover  { background: var(--discord-server-hover); }

/* icon */
.icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* text */
.label {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
}

.handle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ── Tab Bar ── */
.tab-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  font-family: inherit;
}

.tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.tab.active {
  color: #fff;
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

/* push content below fixed tab bar */
body {
  padding-top: 4.5rem;
}

/* ── Tab Content ── */
.tab-content {
  display: none;
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Updates ── */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.update-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.update-date {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.35rem 0 0.5rem;
}

.update-body {
  font-size: 0.92rem;
  color: rgba(240,240,240,0.75);
  line-height: 1.55;
}

.updates-empty {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 0;
}

/* ── About ── */
.about-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(240,240,240,0.85);
  margin-bottom: 1.25rem;
}

.about-bio strong {
  color: #fff;
}

.about-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-stats li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.65rem;
}

.stat-label { color: var(--muted); }
.stat-value { color: #fff; font-weight: 600; }

/* ── Contact ── */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .name { font-size: 1.5rem; }
  .link-btn { padding: 0.875rem 1rem; }
  .tab { font-size: 0.82rem; padding: 0.4rem 0.85rem; }
}
