/* ============================================
   FILES MODULE STYLES
   Drag & drop, file preview enhancements
   ============================================ */

/* Drop zone overlay */
.drop-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-dropdown);
  pointer-events: none;
}

.drop-zone.visible {
  display: flex;
  pointer-events: auto;
}

.drop-zone-content {
  text-align: center;
  padding: var(--space-10);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-2xl);
  background: rgba(0, 240, 255, 0.05);
  animation: drop-pulse 1.5s ease-in-out infinite;
}

@keyframes drop-pulse {
  0%, 100% { 
    transform: scale(1);
    border-color: var(--accent);
  }
  50% { 
    transform: scale(1.02);
    border-color: var(--success);
  }
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  animation: bounce-soft 1s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.drop-zone-text {
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.drop-zone-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Enhanced file preview */
.file-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text);
  max-width: 250px;
}

.file-label .file-size {
  color: var(--text-dim);
  font-size: var(--text-xs);
}

/* Code file preview - syntax hint */
.file-preview-code {
  background: rgba(0, 20, 40, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text);
  margin-top: var(--space-2);
}

/* Text file icon colors */
.file-icon-js { color: var(--file-js); }
.file-icon-ts { color: var(--file-ts); }
.file-icon-py { color: var(--file-py); }
.file-icon-json { color: var(--file-json); }
.file-icon-html { color: var(--file-html); }
.file-icon-css { color: var(--file-css); }
.file-icon-md { color: var(--file-md); }

/* Image preview enhancements */
.image-preview img {
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Preview with code content */
.file-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 300px;
}
