/* SK Tools — shared visual system */

:root {
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --ink-900:   #0f172a;
  --ink-700:   #334155;
  --ink-500:   #64748b;
  --ink-300:   #cbd5e1;
  --ink-100:   #f1f5f9;
  --ink-50:    #f8fafc;
  --success:   #10b981;
  --warn:      #f59e0b;
  --danger:    #ef4444;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Glass card */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Drop zone */
.dropzone {
  border: 2px dashed var(--ink-300);
  border-radius: 1.25rem;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.5), rgba(255, 255, 255, 0.5));
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-500);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.7), rgba(239, 246, 255, 0.7));
  transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: white;
  color: var(--ink-700);
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--ink-300);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-ghost:hover { background: var(--ink-50); border-color: var(--ink-500); }

/* Card */
.card {
  background: white;
  border-radius: 1.25rem;
  border: 1px solid var(--ink-100);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Progress */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transition: width 0.25s ease;
  border-radius: 999px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink-900);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade-in */
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tool grid card (dashboard) */
.tool-card {
  display: block;
  padding: 1.5rem;
  background: white;
  border-radius: 1.25rem;
  border: 1px solid var(--ink-100);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-50), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: var(--brand-500);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .tool-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-pills { flex-wrap: wrap; }
  .nav-pills a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
}
