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

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #ec4899;
  --accent: #38bdf8;
  --bg-dark: #07090e;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.glass-panel-glow {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Glowing text gradients */
.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Drag Over Screen Vortex Effects */
.drag-overlay {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drag-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Custom Pulsing and Vortex Animations */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 45px rgba(99, 102, 241, 0.6), 0 0 70px rgba(56, 189, 248, 0.3);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

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

.animate-orbit {
  animation: orbitSpin 20s linear infinite;
}

@keyframes radarSweep {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.radar-wave {
  animation: radarSweep 2.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Item entrance animation with crystal glow */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.92) rotate(-0.5deg);
    filter: blur(4px);
  }
  60% {
    transform: translateY(-4px) scale(1.02) rotate(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes arrivalNeonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.8), 0 0 30px rgba(56, 189, 248, 0.6);
    border-color: rgba(99, 102, 241, 0.9);
  }
  50% {
    box-shadow: 0 0 35px 8px rgba(168, 85, 247, 0.5), 0 0 60px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.8);
  }
  100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    border-color: var(--card-border);
  }
}

.teleport-item-card {
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.teleport-item-card.just-arrived {
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, arrivalNeonPulse 2.8s ease-out forwards;
}

/* Fullscreen Cosmic Canvas */
#cosmic-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Aurora Screen Flash for Mobile Arrival */
@keyframes auroraFlash {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  30% {
    opacity: 0.85;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.aurora-screen-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.25) 40%, rgba(56, 189, 248, 0.15) 70%, transparent 100%);
  animation: auroraFlash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Star Sparkle Micro-badge */
.sparkle-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pulseGlow 2s infinite ease-in-out;
}

/* --- THEMES SECTION --- */
body {
  transition: background-color 0.5s ease, background-image 0.5s ease;
}

body.theme-cosmic {
  background-color: #07090e;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
}

body.theme-cyberpunk {
  background-color: #050508;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  animation: gridScroll 30s linear infinite !important;
}

body.theme-aurora {
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  animation: auroraFlow 25s ease-in-out infinite alternate !important;
}

/* Grid & Aurora Keyframes */
@keyframes gridScroll {
  from { background-position: 0 0; }
  to { background-position: 0 40px; }
}

@keyframes auroraFlow {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(15deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(-15deg); }
}

/* --- Theme Variable Overrides --- */
body.theme-cosmic {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #ec4899;
  --accent: #38bdf8;
  --bg-dark: #07090e;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
}

body.theme-cyberpunk {
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.45);
  --secondary: #f35588;
  --accent: #ff007f;
  --bg-dark: #050508;
  --card-bg: rgba(10, 10, 18, 0.85);
  --card-border: rgba(0, 242, 254, 0.25);
}

body.theme-aurora {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary: #3b82f6;
  --accent: #14b8a6;
  --bg-dark: #030712;
  --card-bg: rgba(17, 24, 39, 0.8);
  --card-border: rgba(16, 185, 129, 0.15);
}

/* --- Tailwind Override Rules --- */

/* Cyberpunk overrides */
body.theme-cyberpunk .glass-panel {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}
body.theme-cyberpunk .glass-panel-glow {
  background: var(--card-bg);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.15), 0 0 70px rgba(243, 85, 136, 0.1);
}
body.theme-cyberpunk .bg-indigo-600,
body.theme-cyberpunk .bg-indigo-600\/80 {
  background-color: #ff007f !important;
  color: #fff !important;
}
body.theme-cyberpunk .text-indigo-400,
body.theme-cyberpunk .text-indigo-300 {
  color: #00f2fe !important;
}
body.theme-cyberpunk .border-indigo-500\/40,
body.theme-cyberpunk .border-indigo-500\/30 {
  border-color: rgba(0, 242, 254, 0.3) !important;
}

/* Aurora overrides */
body.theme-aurora .glass-panel {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}
body.theme-aurora .glass-panel-glow {
  background: var(--card-bg);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15), 0 0 70px rgba(59, 130, 246, 0.1);
}
body.theme-aurora .bg-indigo-600,
body.theme-aurora .bg-indigo-600\/80 {
  background-color: #10b981 !important;
  color: #fff !important;
}
body.theme-aurora .text-indigo-400,
body.theme-aurora .text-indigo-300 {
  color: #10b981 !important;
}
body.theme-aurora .border-indigo-500\/40,
body.theme-aurora .border-indigo-500\/30 {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* --- THREE.JS 3D FILE UNIVERSE ANIMATION ENGINE --- */
.cosmic-sphere-container {
  position: relative;
  width: 580px;
  max-width: 100%;
  height: 240px;
  margin: 0 auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.cosmic-sphere-container canvas {
  background: transparent !important;
  background-color: transparent !important;
}

.orbit-3d-glass-badge {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.orbit-3d-glass-badge:hover {
  transform: translate(-50%, -50%) scale(1.35) !important;
  border-color: #f472b6 !important;
  box-shadow: 0 0 35px #f472b6, 0 10px 25px rgba(0, 0, 0, 0.8) !important;
  z-index: 60 !important;
}

/* --- VINYL TURNTABLE & MUSIC PLAYER STYLES --- */
.vinyl-record {
  background: radial-gradient(circle, #2d3748 0%, #1e293b 25%, #0f172a 45%, #020617 70%, #000000 100%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 25px -5px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 6px rgba(0, 0, 0, 0.9),
    inset 0 0 0 10px rgba(255, 255, 255, 0.05),
    inset 0 0 0 15px rgba(0, 0, 0, 0.9),
    inset 0 0 0 20px rgba(255, 255, 255, 0.04),
    inset 0 0 0 26px rgba(0, 0, 0, 0.9),
    inset 0 0 0 32px rgba(255, 255, 255, 0.03);
  animation: vinyl-spin 3.5s linear infinite !important;
  animation-play-state: running !important; /* Plak şarkı çalmıyorken de sürekli döner */
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-reflection {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.14) 45deg,
    transparent 90deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.14) 225deg,
    transparent 270deg
  );
}

/* Tonearm (Plak İğnesi) */
.vinyl-tonearm {
  position: absolute;
  top: 0px;
  right: 4px;
  width: 32px;
  height: 54px;
  transform: rotate(4deg);
  transform-origin: 85% 12%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 25;
}

.vinyl-tonearm.playing {
  transform: rotate(20deg);
}

/* Equalizer Dancing Animation */
@keyframes eq-pulse {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.eq-bar {
  transition: height 0.2s ease;
}

.eq-bar.active {
  animation: eq-pulse 0.7s ease-in-out infinite alternate;
}

.eq-bar.active:nth-child(1) { animation-duration: 0.5s; }
.eq-bar.active:nth-child(2) { animation-duration: 0.75s; animation-delay: 0.15s; }
.eq-bar.active:nth-child(3) { animation-duration: 0.6s; animation-delay: 0.3s; }
.eq-bar.active:nth-child(4) { animation-duration: 0.85s; animation-delay: 0.2s; }

/* Music Search Results Scrollbar & Items */
#music-search-results-box::-webkit-scrollbar,
#mobile-music-search-results-box::-webkit-scrollbar {
  width: 5px;
}
#music-search-results-box::-webkit-scrollbar-track,
#mobile-music-search-results-box::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
#music-search-results-box::-webkit-scrollbar-thumb,
#mobile-music-search-results-box::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 4px;
}
#music-search-results-box::-webkit-scrollbar-thumb:hover,
#mobile-music-search-results-box::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.8);
}

.music-result-item.active-playing {
  background-color: rgba(99, 102, 241, 0.25) !important;
  border-color: rgba(129, 140, 248, 0.7) !important;
}



