/* ================================================
   Profile Page — Design System
   Primary: #67b1ba | BG: #0f1117 | Card: #181b24
   Transitions: fade / color only — NO scale/translate
   ================================================ */

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

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

:root {
  --primary: #67b1ba;
  --primary-rgb: 103, 177, 186;
  --bg: #0f1117;
  --bg-card: #181b24;
  --bg-card-hover: #1e2330;
  --text: #e0e6ed;
  --text-dim: #8b95a5;
  --border: rgba(var(--primary-rgb), 0.15);
  --border-hover: rgba(var(--primary-rgb), 0.55);
  --glow: 0 0 20px rgba(var(--primary-rgb), 0.25);
  --glow-strong: 0 0 30px rgba(var(--primary-rgb), 0.4);
  --radius: 12px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem 3rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scanline Overlay (Gaming accent) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Page Fade-in ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15); }
  50%      { box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3); }
}

/* ---------- Container ---------- */
.profile-container {
  max-width: 420px;
  width: 100%;
  animation: fadeIn 0.8s ease both;
}

/* ---------- Profile Header ---------- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(var(--primary-rgb), 0.35);
  object-fit: cover;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  animation: glowPulse 4s ease-in-out infinite;
}

.avatar:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-strong);
}

/* Online indicator */
.avatar-wrapper::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #43b581;
  border: 3px solid var(--bg);
  border-radius: 50%;
}

.profile-name {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: var(--primary);
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}

.profile-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.profile-tag .chevron {
  color: var(--primary);
  margin-right: 0.25em;
}

.profile-bio {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.55;
  max-width: 320px;
}

.primary-color {
  color: var(--primary);
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 1.5rem auto;
  border: none;
}

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 0.85rem;
}

.section-title .dot {
  color: var(--primary);
}

/* ---------- Link Buttons ---------- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  color: #fff;
}

.link-btn .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.link-btn .icon-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  transition: border-color 0.3s ease;
}

.link-btn:hover .icon-avatar {
  border-color: var(--primary);
}

.link-btn:hover .icon {
  color: #fff;
}

.link-btn .label {
  flex: 1;
}

.link-btn .sub-label {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 0.4em;
  opacity: 0.6;
}

.link-btn .arrow {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-btn:hover .arrow {
  opacity: 1;
}

/* ---------- Support / TipMe Button ---------- */
.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--glow);
  transition:
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.support-btn:hover {
  opacity: 0.85;
  box-shadow: var(--glow-strong);
}

.support-btn i {
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.profile-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.5;
  font-family: var(--font-mono);
  padding-top: 0.5rem;
}

/* ---------- Stagger fade-in for children ---------- */
.link-btn,
.support-btn {
  animation: fadeIn 0.6s ease both;
}
.support-btn { animation-delay: 0.1s; }
.links-list .link-btn:nth-child(1) { animation-delay: 0.25s; }
.links-list .link-btn:nth-child(2) { animation-delay: 0.32s; }
.links-list .link-btn:nth-child(3) { animation-delay: 0.39s; }
.links-list .link-btn:nth-child(4) { animation-delay: 0.46s; }
.links-list .link-btn:nth-child(5) { animation-delay: 0.53s; }
.links-list .link-btn:nth-child(6) { animation-delay: 0.60s; }
.links-list .link-btn:nth-child(7) { animation-delay: 0.67s; }

/* ---------- Responsive (Desktop) ---------- */
@media (min-width: 600px) {
  body {
    padding: 4rem 1rem 4rem;
    align-items: center;
  }

  .profile-container {
    max-width: 440px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 1.75rem;
  }
}
