/* ==================== Upload Hub - FAB + Global Drop Zone ==================== */

/* ===== Global Drop Overlay ===== */
.upload-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 15, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.upload-hub-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drop-zone-content {
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-hub-overlay.visible .drop-zone-content {
  transform: scale(1);
}

.drop-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.drop-zone-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.drop-zone-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin: 0;
}

/* ===== Floating Action Button ===== */
.upload-hub-fab {
  position: fixed;
  bottom: calc(var(--player-height, 64px) + 20px);
  right: 20px;
  z-index: 900;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 20px rgba(168, 85, 247, 0.4),
    0 0 0 0 rgba(168, 85, 247, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-main:hover {
  transform: scale(1.08);
  box-shadow: 
    0 6px 30px rgba(168, 85, 247, 0.5),
    0 0 0 8px rgba(168, 85, 247, 0.1);
}

.fab-main:active {
  transform: scale(0.95);
}

.fab-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.upload-hub-fab.menu-open .fab-icon {
  transform: rotate(45deg);
}

/* FAB Menu */
.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-hub-fab.menu-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transform: translateX(10px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-hub-fab.menu-open .fab-option {
  transform: translateX(0);
  opacity: 1;
}

.upload-hub-fab.menu-open .fab-option:nth-child(1) { transition-delay: 0.05s; }
.upload-hub-fab.menu-open .fab-option:nth-child(2) { transition-delay: 0.1s; }
.upload-hub-fab.menu-open .fab-option:nth-child(3) { transition-delay: 0.15s; }

.fab-option:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(-4px);
}

.fab-option span:first-child {
  font-size: 1.1rem;
}

/* ===== Routing Toast ===== */
.upload-routing-toast {
  position: fixed;
  bottom: calc(var(--player-height, 64px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9500;
  background: linear-gradient(180deg, rgba(20, 16, 30, 0.98), rgba(10, 8, 18, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-routing-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.routing-content {
  text-align: center;
}

.routing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.routing-icon {
  font-size: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.routing-header span:last-child {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.routing-question {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0 0 16px 0;
}

.routing-options {
  display: flex;
  gap: 10px;
}

.routing-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.routing-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.routing-btn span:first-child {
  font-size: 1.5rem;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 600px) {
  .upload-hub-fab {
    bottom: calc(var(--player-height, 64px) + 12px);
    right: 12px;
  }
  
  .fab-main {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  
  .fab-menu {
    bottom: 64px;
  }
  
  .upload-routing-toast {
    left: 12px;
    right: 12px;
    transform: translateX(0) translateY(100px);
    width: auto;
  }
  
  .upload-routing-toast.visible {
    transform: translateX(0) translateY(0);
  }
  
  .routing-options {
    gap: 8px;
  }
  
  .routing-btn {
    padding: 12px 10px;
  }
}

/* ===== Hide when modal is open ===== */
body.modal-open .upload-hub-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* ===== LEGACY UPLOAD BUTTON KILL SWITCH ===== */
/* Hide all old upload buttons - UploadHub is the one true way */
.dashboard-upload-btn,
.section-action[onclick*="Upload"],
.empty-state-action[onclick*="Upload"],
#upload-btn,
#upload-pack-btn,
#path-upload,
#inbox-upload-btn,
#empty-upload-btn,
.library-empty-btn[id*="upload"],
.creator-cta-btn[onclick*="upload"],
.sidebar-action-btn[onclick*="upload"],
.path-card.creator[onclick*="upload"],
[data-upload],
.upload-btn:not(.upload-hub-fab *),
button[onclick*="showUploadModal"],
button[onclick*="openUploadWizard"],
a[href*="upload.html"],
a[href*="upload-song.html"],
.quick-action[href*="upload"] {
  display: none !important;
}

/* Keep the empty state messages but hide their upload CTAs */
.empty-state-cta[onclick*="upload"],
.digr-cta-button[onclick*="upload"] {
  display: none !important;
}
