/* ==========================================================================
   FileToolKit - Smart File Analyzer & FileFlow Pipeline Styles
   ========================================================================== */

/* Smart File Analyzer Card */
.analyzer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-6);
  animation: fadeInDown 0.35s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.analyzer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-5);
}

.analyzer-file-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.analyzer-file-icon {
  width: 52px;
  height: 52px;
  background-color: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-primary);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.analyzer-filename {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.analyzer-filemeta {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

/* Metadata Inspection Grid */
.analyzer-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .analyzer-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.analyzer-metric-box {
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.analyzer-metric-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.analyzer-metric-val {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Recommended Actions Grid */
.recommended-actions-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-primary);
  margin-bottom: var(--space-3);
}

.recommended-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .recommended-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.action-card-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.action-card-btn:hover {
  border-color: var(--emerald-primary);
  background-color: var(--emerald-tint);
  color: var(--emerald-dark);
  transform: translateY(-2px);
}

/* FileFlow Multi-Step Pipeline Section */
.fileflow-container {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-6);
}

.fileflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.fileflow-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.fileflow-pipeline-track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-4) 0;
  scrollbar-width: thin;
}

.fileflow-step-card {
  min-width: 190px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.fileflow-step-card.active {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 2px var(--emerald-glow);
}

.fileflow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fileflow-step-idx {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--emerald-primary);
  background-color: var(--emerald-tint);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fileflow-step-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}

.fileflow-step-remove:hover {
  color: var(--status-error);
}

.fileflow-step-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.fileflow-step-param {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.fileflow-arrow {
  color: var(--emerald-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.fileflow-add-step-btn {
  min-width: 140px;
  height: 110px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  background-color: transparent;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.fileflow-add-step-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  background-color: var(--emerald-tint);
}

.fileflow-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-4);
}
