/* ==========================================================================
   PIER KRAUSS - SITIO OFICIAL
   Estilos: Dark Minimalist / Indie Aesthetic / Glassmorphism
   ========================================================================== */

:root {
  --bg-primary: #07080b;
  --bg-secondary: #0e1117;
  --bg-card: rgba(20, 24, 33, 0.75);
  --bg-card-hover: rgba(28, 33, 46, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(168, 85, 247, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent-purple: #9333ea;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;
  --accent-spotify: #1db954;
  --accent-apple: #fc3c44;
  --accent-youtube: #ff0000;
  --accent-instagram: #e1306c;
  --accent-x: #ffffff;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(147, 51, 234, 0.18);
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(244, 63, 94, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   FONDOS AMBIENTALES DINÁMICOS
   ========================================================================== */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #9333ea, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-60%);
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #e11d48, transparent 70%);
  top: 30%;
  right: -100px;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  bottom: 5%;
  left: -80px;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==========================================================================
   HEADER / HERO DEL ARTISTA
   ========================================================================== */
.artist-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInDown 0.8s ease-out;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #9333ea, #3b82f6);
  opacity: 0.85;
  animation: spinSlow 12s linear infinite;
}

.avatar-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.4), transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 0;
}

.artist-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
  background-color: #1a1d26;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.artist-name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 40%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.verified-badge {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.artist-bio {
  font-size: 0.95rem;
  color: #d1d5db;
  max-width: 480px;
  margin-top: 4px;
  line-height: 1.6;
}

.artist-bio em {
  font-style: normal;
  color: #fca5a5;
  font-weight: 600;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

.pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 0.8s ease-out both;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
}

/* ==========================================================================
   DESTACADO PRINCIPAL (LATEST RELEASE HERO)
   ========================================================================== */
.featured-card {
  position: relative;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(147, 51, 234, 0.1) 60%, rgba(20, 24, 33, 0.75));
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md), 0 0 30px rgba(244, 63, 94, 0.12);
}

.featured-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: var(--shadow-md), 0 0 45px rgba(244, 63, 94, 0.25);
}

.vinyl-record {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #111 30%, #222 31%, #111 45%, #333 46%, #111 60%, #222 61%, #050505 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  animation: spinSlow 8s linear infinite;
}

.vinyl-center {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

.vinyl-hole {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

.featured-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.featured-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.featured-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.action-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff0000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.featured-card:hover .action-btn-circle {
  transform: scale(1.12);
  background: #ff1a1a;
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.6);
}

/* ==========================================================================
   VIDEOS & VISUALIZERS (DISEÑO MINIMALISTA Y ELEGANTE)
   ========================================================================== */
.videos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.video-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.video-box:hover {
  background: var(--bg-card-hover);
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(244, 63, 94, 0.15);
}

.video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-box:hover .video-thumb {
  transform: scale(1.06);
}

.video-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.video-play-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-box:hover .video-play-badge {
  transform: scale(1.15);
  background: #ff0000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

.video-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-type-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.video-watch-action {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.18);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.video-box:hover .video-watch-action {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
}

/* ==========================================================================
   DISCOGRAFÍA / CANCIONES A YOUTUBE
   ========================================================================== */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.track-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
}

.track-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.12);
}

.track-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 18px;
  text-align: center;
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.track-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-year {
  color: var(--text-dim);
}

.track-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.track-play-icon {
  color: var(--text-dim);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.track-item:hover .track-play-icon {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.12);
  transform: scale(1.15);
}

/* ==========================================================================
   SMART LINKS (PLATAFORMAS DE STREAMING)
   ========================================================================== */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-link-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.smart-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-smooth);
}

.icon-youtube {
  background: rgba(255, 0, 0, 0.12);
  color: var(--accent-youtube);
}

.smart-link-card:hover .icon-youtube {
  background: var(--accent-youtube);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.45);
}

.icon-ytmusic {
  background: rgba(255, 0, 0, 0.12);
  color: var(--accent-youtube);
}

.smart-link-card:hover .icon-ytmusic {
  background: var(--accent-youtube);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.45);
}

.icon-spotify {
  background: rgba(29, 185, 84, 0.12);
  color: var(--accent-spotify);
}

.smart-link-card:hover .icon-spotify {
  background: var(--accent-spotify);
  color: #000000;
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

.icon-apple {
  background: rgba(252, 60, 68, 0.12);
  color: var(--accent-apple);
}

.smart-link-card:hover .icon-apple {
  background: var(--accent-apple);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(252, 60, 68, 0.4);
}

.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.link-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.smart-link-card:hover .link-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   REDES SOCIALES (ICON GRID)
   ========================================================================== */
.socials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.social-card.instagram:hover {
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.2);
}

.social-card.x-twitter:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.social-card.youtube:hover {
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}

.social-icon {
  font-size: 1.5rem;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.social-handle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==========================================================================
   BOTÓN COMPARTIR & UTILIDADES
   ========================================================================== */
.share-bar {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e2433;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 36px 16px 32px;
    gap: 26px;
  }
  
  .artist-name {
    font-size: 1.85rem;
  }
  
  .avatar-container {
    width: 105px;
    height: 105px;
  }

  .videos-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .video-box {
    padding: 6px;
    gap: 6px;
  }

  .video-name {
    font-size: 0.75rem;
  }

  .video-type-tag {
    font-size: 0.65rem;
  }

  .video-watch-action {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .tracks-grid {
    grid-template-columns: 1fr;
  }

  .socials-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .social-card {
    padding: 12px 6px;
  }
}
