/* ══════════════════════════════════════════════
   NOEL — Bio Page · style.css
   ══════════════════════════════════════════════ */

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

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #090909;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

/* ════════════════════════════════════════════
   TELA INTRO
════════════════════════════════════════════ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

#intro-screen.fade-out {
  animation: fadeOutScreen 0.9s ease forwards;
}

@keyframes fadeOutScreen {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* Fundo animado (fallback caso não tenha vídeo) */
.intro-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(234,88,12,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(249,115,22,0.10) 0%, transparent 60%),
    #090909;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* Vídeo de fundo da intro */
#intro-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.35);
  transform: scale(1.1);
}

/* Conteúdo da intro */
.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: floatIn 1s ease both;
}

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

.intro-name {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(249,115,22,0.55), 0 4px 24px rgba(0,0,0,0.8);
  line-height: 1;
}

.intro-click-text {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  animation: pulseClick 2s ease-in-out infinite;
}

@keyframes pulseClick {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-4px); }
}

/* ════════════════════════════════════════════
   APP PRINCIPAL
════════════════════════════════════════════ */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#app.hidden { display: none; }

#app.appear {
  animation: appAppear 0.8s ease both;
}

@keyframes appAppear {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Fundo ──────────────────────────────────── */
.app-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(234,88,12,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(249,115,22,0.08) 0%, transparent 60%),
    #090909;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4) saturate(0.8);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(9,9,9,0.3) 0%, rgba(9,9,9,0.75) 100%);
}

/* ── Partículas ─────────────────────────────── */
#particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: #f97316;
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle var(--dur) var(--delay) ease-in-out infinite alternate;
}

@keyframes floatParticle {
  from { transform: translateY(0) translateX(0) scale(1); opacity: 0.2; }
  to   { transform: translateY(-60px) translateX(20px) scale(1.5); opacity: 0.7; }
}

/* ════════════════════════════════════════════
   CARD DE PERFIL
════════════════════════════════════════════ */
.profile-card {
  position: relative;
  z-index: 10;
  width: min(420px, 92vw);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 0 0 1px rgba(249,115,22,0.08) inset,
    0 1px 0 rgba(255,255,255,0.12) inset;
  animation: cardAppear 0.9s 0.15s ease both;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Avatar ─────────────────────────────────── */
.avatar-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f97316, #fb923c, #ea580c);
  box-shadow: 0 0 24px rgba(249,115,22,0.55), 0 4px 16px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #090909;
}

.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f97316;
  border: 2px solid #090909;
}

/* ── Textos ─────────────────────────────────── */
.profile-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.profile-tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f97316;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  text-align: center;
}

.profile-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  text-align: center;
  line-height: 1.6;
  max-width: 32ch;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ── Ícones Sociais ─────────────────────────── */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-btn:hover {
  color: #f97316;
  border-color: rgba(249,115,22,0.4);
  background: rgba(249,115,22,0.1);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(249,115,22,0.25), 0 2px 8px rgba(0,0,0,0.4);
}

.social-btn:active {
  transform: translateY(-1px) scale(1.03);
}

/* ════════════════════════════════════════════
   BADGE "MADE BY"
════════════════════════════════════════════ */
.made-by-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: slideUp 0.9s 0.4s ease both;
  transition: all 0.2s ease;
}

.made-by-badge:hover {
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.85);
  border-color: rgba(249,115,22,0.3);
}

.made-by-heart {
  color: #f97316;
  font-size: 0.7rem;
}

/* ════════════════════════════════════════════
   PLAYER DE MÚSICA
════════════════════════════════════════════ */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(420px, 92vw);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.1) inset;
  animation: slideUp 0.9s 0.3s ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.player-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-album-art {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
  transition: transform 0.3s ease;
}

.player-album-art.spinning {
  animation: spinRecord 4s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

.player-track-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}

.player-btn.primary {
  background: #f97316;
  color: #fff;
  width: 38px; height: 38px;
  box-shadow: 0 2px 12px rgba(249,115,22,0.45);
}

.player-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.15); }
.player-btn.primary:hover { background: #fb923c; transform: scale(1.1); }

.player-bottom {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.player-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 999px;
  transition: width 0.5s linear;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 480px) {
  .profile-card { padding: 1.75rem 1.5rem 1.5rem; border-radius: 20px; }
  .avatar-ring { width: 80px; height: 80px; }
  .profile-name { font-size: 1.35rem; }
  .music-player { border-radius: 16px; padding: 0.85rem 1rem; }
  .made-by-badge { bottom: 1rem; right: 1rem; font-size: 0.7rem; }
}
