/* ==========================================================================
   MXB LABS — Clean Minimalist Bio & Audio Card (mxblabs.dev)
   ========================================================================== */

:root {
  --bg: #09090b;
  --card-bg: rgba(18, 18, 22, 0.75);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-muted: #80808a;
  --accent: #ffffff;
  --online: #22c55e;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Enter Overlay */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.enter-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.enter-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a1a1aa;
  letter-spacing: 0.08em;
  user-select: none;
}

.enter-blink {
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.3; }
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.crt-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 3px;
  opacity: 0.3;
}

/* Centered Bio Card Layout */
.card-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.bio-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

/* Anime ASCII Box */
.ascii-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ascii-container:hover {
  transform: scale(1.02);
}

.anime-ascii {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.15;
  color: var(--text-primary);
  white-space: pre;
  letter-spacing: 0.04em;
  opacity: 0.95;
  user-select: none;
}

/* Header */
.user-header {
  text-align: center;
  margin-bottom: 16px;
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.username {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  color: #d4d4d8;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Audio Player Bar */
.audio-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 14px;
}

.eq-bars .bar {
  width: 2.5px;
  background: var(--text-primary);
  border-radius: 1px;
  height: 4px;
}

.audio-player-card.playing .eq-bars .bar {
  animation: eq-bounce 1s ease-in-out infinite alternate;
}

.audio-player-card.playing .b1 { animation-delay: 0.1s; }
.audio-player-card.playing .b2 { animation-delay: 0.3s; }
.audio-player-card.playing .b3 { animation-delay: 0.15s; }
.audio-player-card.playing .b4 { animation-delay: 0.4s; }

@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.audio-info {
  flex: 1;
  min-width: 0;
}

.audio-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.ctrl-btn:hover {
  color: var(--text-primary);
}

.ctrl-btn.primary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.ctrl-btn.primary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Links Stack */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.link-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  position: relative;
  z-index: 25;
}

.link-btn:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.link-content {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.link-icon {
  font-size: 14px;
}

.link-arrow {
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.link-btn:hover .link-arrow {
  color: var(--text-primary);
}

.action-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 6px var(--online);
}

.hidden {
  display: none !important;
}
