/* ===== Custom Styles — Tailwind CDN dışı ===== */

/* ---------- Genel ---------- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Custom Scrollbar (koyu tema uyumu) ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #1e293b; /* slate-800 */
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #475569; /* slate-600 */
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b; /* slate-500 */
}

/* ---------- Upload Zone ---------- */
.upload-zone {
  border: 2px dashed #334155; /* slate-700 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #0ea5e9; /* sky-500 */
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
}

.upload-zone.drag-over {
  transform: scale(1.01);
}

/* ---------- Pulse Ring (yükleme animasyonu) ---------- */
.pulse-ring {
  position: relative;
}
.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0ea5e9;
  animation: pulseRing 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.pulse-ring::after {
  animation-delay: 0.6s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Spinner ---------- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #1e293b;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Status Steps ---------- */
.status-step {
  transition: all 0.4s ease;
}
.status-step.active {
  color: #0ea5e9;
}
.status-step.done {
  color: #22c55e;
}

/* ---------- Modal Backdrop ---------- */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* ---------- Result Textarea ---------- */
.result-box {
  scrollbar-width: thin;
  scrollbar-color: #475569 #1e293b;
}

/* ---------- Download Buttons ---------- */
.btn-download {
  transition: all 0.2s ease;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}
.btn-download:active {
  transform: translateY(0);
}

/* ---------- Fade In Animation ---------- */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Slide Up Animation ---------- */
.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Toast Notification ---------- */
.toast {
  animation: toastIn 0.4s ease forwards;
}
.toast.hide {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Glow Effect ---------- */
.glow-sky {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15),
              0 0 60px rgba(14, 165, 233, 0.05);
}
