:root {
  --bg: #0a0c12;
  --card: rgba(23, 26, 33, 0.7);
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #8b909c;
  --accent: #5865f2;
  --accent-2: #7984f7;
  --accent-hover: #6b75f5;
  --success: #3ba55d;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 32px 16px 48px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Arka plan ışıması */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -160px; left: -120px;
}
body::after {
  width: 380px; height: 380px;
  background: #3ba55d;
  bottom: -140px; right: -100px;
  opacity: 0.14;
}

.container {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

header { text-align: center; margin-bottom: 28px; }

h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(92deg, #e6e9ef 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0 auto;
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s;
}

/* Sürükle-bırak */
.drop-zone {
  cursor: pointer;
  border-style: dashed;
  border-width: 1.5px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.drop-zone:hover { border-color: #3d4453; }
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(88, 101, 242, 0.07);
  transform: scale(1.01);
}
.drop-prompt { text-align: center; padding: 28px 0; }
.drop-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  color: var(--accent-2);
  filter: drop-shadow(0 4px 18px rgba(88, 101, 242, 0.45));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.drop-prompt p { line-height: 1.5; }
.hint { color: var(--muted); font-size: 0.8rem; margin-top: 8px; line-height: 1.5; }

.file-info { display: flex; align-items: center; gap: 12px; justify-content: center; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: 0.85rem; }

/* Ayarlar */
.label { display: block; font-weight: 600; margin-bottom: 10px; }
.target-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.target-row input {
  width: 90px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.target-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18); }
.unit { color: var(--muted); }
.presets { display: flex; gap: 6px; margin-left: auto; }
.preset:hover { border-color: var(--accent); color: var(--accent-2); }

/* Butonlar */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn-lg {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-primary {
  background: linear-gradient(92deg, var(--accent), #7280f9);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(92deg, var(--accent-hover), #8390fa);
  box-shadow: 0 6px 26px rgba(88, 101, 242, 0.45);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--border); padding: 8px 14px; }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.btn-sm { font-size: 0.82rem; padding: 6px 12px; }

/* İlerleme */
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status { font-size: 0.9rem; color: var(--muted); }
.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  position: relative;
  transition: width 0.3s;
}
.progress-fill::after {
  /* parlak kayan şerit */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shine 1.6s linear infinite;
}
@keyframes shine {
  from { background-position: 120% 0; }
  to { background-position: -80% 0; }
}

/* Sonuç */
.result-card { border-color: rgba(59, 165, 93, 0.4); animation: pop 0.35s ease; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.sizes { display: flex; gap: 10px; margin-bottom: 14px; }
.size-box {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}
.size-label { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 5px; }
.size-value { font-weight: 700; font-size: 1rem; }
.size-box:last-child .size-value { color: var(--success); }

footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text);
}
footer .muted { color: var(--muted); margin-top: 4px; }

/* Hareket duyarlılığı */
@media (prefers-reduced-motion: reduce) {
  .drop-logo, .progress-fill::after { animation: none; }
  .btn, .card { transition: none; }
}

/* Mobil */
@media (max-width: 420px) {
  h1 { font-size: 1.4rem; }
  .presets { margin-left: 0; width: 100%; }
  .presets .btn { flex: 1; }
}
