/**
 * ========================================
 * 06-upload-zone.css
 * ========================================
 * Назначение: Стили для зоны загрузки файлов
 * ========================================
 */

/* ========== Upload Section ========== */
.upload-section {
  margin: var(--spacing-2xl) auto;
  display: flex;
  justify-content: center;
}

/* ========== Upload Zone ========== */
.upload-zone {
  width: 100%;
  max-width: 600px;
  height: 380px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
  background: rgba(37, 99, 235, 0.03);
}

/* ========== Upload Zone States ========== */
.upload-zone--drag-over {
  border-color: var(--accent-color);
  border-style: solid;
  background: rgba(37, 99, 235, 0.06);
  transform: scale(1.02);
}

.upload-zone--uploading {
  opacity: 0.7;
  pointer-events: none;
}

.upload-zone--success {
  border-color: #10b981;
  border-style: solid;
}

.upload-zone--error {
  border-color: #ef4444;
  border-style: solid;
  animation: shake 0.5s;
}

/* ========== Upload Icon ========== */
.upload-zone__icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.upload-zone__icon svg {
  color: var(--primary-color);
}

.upload-zone:hover .upload-zone__icon {
  opacity: 1;
  transform: translateY(-8px);
}

.upload-zone--drag-over .upload-zone__icon {
  animation: bounce 0.6s infinite;
}

/* ========== Upload Text ========== */
.upload-zone__text {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.upload-zone__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.upload-zone__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ========== Upload Button ========== */
.upload-zone__button {
  margin-top: var(--spacing-lg);
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.upload-zone__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========== Hidden File Input ========== */
.upload-zone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

/* ========== File Formats ========== */
.upload-zone__formats {
  margin-top: var(--spacing-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ========== Shake Animation ========== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* ========== File Info Card ========== */
.file-info {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.file-info__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.file-info__details {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.file-info__icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
}

.file-info__name {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.file-info__size {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.file-info__remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.file-info__remove:hover {
  background: var(--gradient-error);
  border-color: transparent;
  color: white;
}

/* ========== Request Input ========== */
.file-info__request {
  margin-top: var(--spacing-lg);
}

.file-info__label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.file-info__textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  resize: vertical;
  transition: all var(--transition-base);
  font-family: inherit;
}

.file-info__textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* ========== Process Button ========== */
.file-info__process {
  margin-top: var(--spacing-lg);
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.file-info__process:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.file-info__process:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
