/* Resume Upload & Analysis Styles */

/* ===== Upload Container ===== */
.upload-container {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  transition: all 0.3s ease;
}

.upload-area.drag-over {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
  transform: scale(1.02);
}

.upload-area.drag-over .upload-area-icon svg {
  color: var(--accent-blue);
  transform: translateY(-5px);
}

/* ===== File Info Card ===== */
.file-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.file-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--accent-blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.btn-remove {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.btn-analyze {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  justify-content: center;
}

.btn-analyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.3);
}

/* ===== Upload Progress ===== */
.upload-progress {
  text-align: center;
  padding: 3rem 2rem;
}

.progress-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.spinner-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-blue);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-progress h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  max-width: 400px;
  margin: 0 auto 1rem;
}

.progress-bar-container .progress-bar {
  height: 12px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-container .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #0088FF);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.progress-step {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  animation: pulse-text 1.5s ease infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== Results Header ===== */
.results-header {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 87, 255, 0.1);
  animation: fadeIn 0.5s ease;
}

.results-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-summary h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.75rem;
}

.results-summary p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.results-actions {
  display: flex;
  gap: 0.75rem;
}

/* ===== Analysis Fade-In Animation ===== */
#analysisResults .glass-card,
#analysisResults .score-card,
#analysisResults .analysis-panel {
  animation: fadeInUp 0.5s ease both;
}

#analysisResults .dashboard-grid-3 .glass-card:nth-child(1) { animation-delay: 0.1s; }
#analysisResults .dashboard-grid-3 .glass-card:nth-child(2) { animation-delay: 0.2s; }
#analysisResults .dashboard-grid-3 .glass-card:nth-child(3) { animation-delay: 0.3s; }

#analysisResults .dashboard-grid-4 .score-card:nth-child(1) { animation-delay: 0.4s; }
#analysisResults .dashboard-grid-4 .score-card:nth-child(2) { animation-delay: 0.5s; }
#analysisResults .dashboard-grid-4 .score-card:nth-child(3) { animation-delay: 0.6s; }
#analysisResults .dashboard-grid-4 .score-card:nth-child(4) { animation-delay: 0.7s; }

#analysisResults .dashboard-grid .analysis-panel:nth-child(1) { animation-delay: 0.8s; }
#analysisResults .dashboard-grid .analysis-panel:nth-child(2) { animation-delay: 0.9s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Score Animation ===== */
.score-circle-lg {
  transition: --score 1s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .results-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-actions {
    width: 100%;
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
