/* ═══════════════════════════════════════════════════
   renamer.css  —  Dosya Yeniden Adlandırıcı v9
═══════════════════════════════════════════════════ */

/* ── Reset & Body ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* ── Sayfa başlığı ── */
.page-header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.page-icon   { width: 52px; height: 52px; flex-shrink: 0; }
h1           { font-size: 1.8rem; font-weight: 700; color: #38bdf8; }
.subtitle    { color: #94a3b8; font-size: 0.9rem; margin-bottom: 32px; text-align: center; }

/* ── Kart ── */
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 960px;
  margin-bottom: 24px;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.step-badge {
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Input grubu ── */
.input-row   { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.input-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }

label { font-size: 0.82rem; color: #94a3b8; font-weight: 500; }

input[type="text"],
input[type="number"] {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus { border-color: #38bdf8; }

.preview-name {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #4ade80;
  display: block;
  min-height: 42px;
  word-break: break-all;
}

/* ── Dosya türü chip ── */
.type-selector { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.type-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 2px solid #334155;
  background: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
.type-chip:hover               { border-color: #38bdf8; color: #e2e8f0; }
.type-chip.active-img          { border-color: #0ea5e9; background: #0c1a2e; color: #38bdf8; }
.type-chip.active-vid          { border-color: #a855f7; background: #1a0a2e; color: #c084fc; }
.type-chip.active-both         { border-color: #10b981; background: #0a1f14; color: #34d399; }

.chip-dot  { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-img   { background: #38bdf8; }
.dot-vid   { background: #a855f7; }
.dot-both  { background: #10b981; }

/* ── Mod kartları ── */
.mode-selector { display: flex; gap: 12px; margin-bottom: 12px; }

.mode-card {
  flex: 1;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #0f172a;
  text-align: center;
  position: relative;
  user-select: none;
}
.mode-card:hover        { border-color: #38bdf8; background: #0c1a2e; }
.mode-card.active       { border-color: #0284c7; background: #0c1a2e; }

.mode-icon  { font-size: 1.8rem; margin-bottom: 6px; }
.mode-title { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.mode-card.active .mode-title { color: #38bdf8; }
.mode-desc  { font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.mode-card.active .mode-desc  { color: #7dd3fc; }

.mode-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #334155;
  color: #94a3b8;
}
.mode-card.active .mode-badge { background: #0284c7; color: #fff; }

.info-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #334155;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}
.info-btn:hover                  { background: #0284c7; border-color: #0284c7; color: #fff; }
.mode-card.active .info-btn      { background: #0369a1; border-color: #0284c7; color: #bae6fd; }
.mode-card.active .info-btn:hover{ background: #0284c7; color: #fff; }

/* ── Bilgi & uyarı kutuları ── */
.info-box {
  background: #0c1a2e;
  border: 1px solid #1e40af;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 16px;
  line-height: 1.7;
}
.info-box strong { color: #60a5fa; }

.warn-box {
  background: #1c1008;
  border: 1px solid #92400e;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #fcd34d;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sort-info {
  background: #0d1f0d;
  border: 1px solid #166534;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #86efac;
  margin-bottom: 16px;
  line-height: 1.6;
}

.warn-info {
  background: #1c1008;
  border: 1px solid #92400e;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #fcd34d;
  line-height: 1.6;
  display: none;
  margin-top: 12px;
}
.warn-info.show { display: block; }

/* ── Seçim butonları ── */
.select-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.btn-pick {
  flex: 1;
  min-width: 180px;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-pick:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-pick-files  { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; }
.btn-pick-files:hover:not(:disabled)  { background: linear-gradient(135deg, #0369a1, #075985); transform: translateY(-1px); }

.btn-pick-folder { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.btn-pick-folder:hover:not(:disabled) { background: linear-gradient(135deg, #6d28d9, #5b21b6); transform: translateY(-1px); }

/* ── Fallback zone ── */
.fallback-zone {
  border: 2px dashed #334155;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #0f172a;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.fallback-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.fallback-zone p { color: #64748b; font-size: 0.82rem; pointer-events: none; }

/* ── Klasör bilgi kutusu ── */
.folder-info {
  background: #0f172a;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.83rem;
  color: #c084fc;
  margin-top: 12px;
  display: none;
  line-height: 1.6;
}
.folder-info.show  { display: block; }
.folder-info strong{ color: #e2e8f0; }

/* ── İstatistik kutuları ── */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.stat-box {
  flex: 1;
  min-width: 90px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.stat-val { font-size: 1.4rem; font-weight: 800; }
.stat-lbl { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

.c-all  { color: #34d399; }
.c-img  { color: #38bdf8; }
.c-vid  { color: #c084fc; }
.c-skip { color: #f97316; }

/* ── Badge ── */
.badge {
  display: inline-block;
  background: #0284c7;
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 8px;
}

/* ── Script dosya adı önizleme ── */
.script-filenames {
  background: #0f172a;
  border: 1px solid #1e40af;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.sfn-item  { display: flex; align-items: center; gap: 6px; font-family: 'Courier New', monospace; font-size: 0.82rem; }
.sfn-label { color: #64748b; font-size: 0.75rem; }
.sfn-name  { color: #4ade80; font-weight: 700; }
.sfn-sep   { color: #334155; }

/* ── OS Tabs ── */
.os-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.os-tab {
  padding: 7px 18px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.os-tab:hover        { border-color: #38bdf8; color: #e2e8f0; }
.os-tab.active       { background: #0284c7; border-color: #0284c7; color: #fff; }

/* ── Script kutusu ── */
.script-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #a3e635;
  white-space: pre;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.6;
}

/* ── Tablo ── */
.table-wrap { overflow-x: auto; }

table               { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
thead tr            { background: #0f172a; }
thead th            { padding: 10px 12px; text-align: left; color: #64748b; font-weight: 600; border-bottom: 1px solid #1e293b; white-space: nowrap; }
tbody tr            { border-bottom: 1px solid #1e293b; transition: background 0.15s; }
tbody tr:hover      { background: #162032; }
tbody td            { padding: 9px 12px; color: #cbd5e1; }

.td-order { color: #64748b; text-align: center; font-size: 0.8rem; width: 40px; }
.td-old   { color: #94a3b8; word-break: break-all; max-width: 200px; }
.td-arrow { color: #38bdf8; text-align: center; padding: 0 4px; width: 24px; }
.td-new   { color: #4ade80; font-weight: 600; word-break: break-all; max-width: 180px; }
.td-date  { color: #fbbf24; font-size: 0.8rem; white-space: nowrap; font-family: 'Courier New', monospace; }
.ms-part  { color: #f97316; font-size: 0.74rem; }

.ftb     { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.ftb-img { background: #0c2a3d; color: #38bdf8; border: 1px solid #0284c7; }
.ftb-vid { background: #1a0a2e; color: #c084fc; border: 1px solid #7c3aed; }

/* ── Genel butonlar ── */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }

.btn-success           { background: #16a34a; color: #fff; }
.btn-success:hover     { background: #15803d; }
.btn-secondary         { background: #334155; color: #e2e8f0; }
.btn-secondary:hover   { background: #475569; }
.btn-danger            { background: #dc2626; color: #fff; }
.btn-danger:hover      { background: #b91c1c; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ── Status bar ── */
.status-bar {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}
.status-bar.show { display: block; }
.c-ok   { color: #4ade80; }
.c-warn { color: #fbbf24; }

/* ── Üst sağ sıfırla butonu ── */
.top-bar {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.btn-reset {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  pointer-events: none;
}
.btn-reset.active              { opacity: 1; pointer-events: all; }
.btn-reset.active:hover        { background: #b91c1c; transform: translateY(-1px); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.show            { opacity: 1; pointer-events: all; }

.modal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.modal-overlay.show .modal     { transform: translateY(0); }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #1e293b;
  border-radius: 20px 20px 0 0;
  z-index: 1;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: #e2e8f0; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #334155;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #dc2626; color: #fff; }
.modal-body        { padding: 20px 24px 24px; }

/* ── Windows Özellikler simülasyonu ── */
.win-props {
  background: #f0f0f0;
  border: 1px solid #999;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: #000;
  margin-bottom: 16px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}
.win-titlebar {
  background: linear-gradient(to bottom, #4a90d9, #2c6fad);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.win-tabs      { background: #f0f0f0; border-bottom: 1px solid #ccc; display: flex; padding: 4px 6px 0; gap: 2px; }
.win-tab       { padding: 4px 12px; font-size: 0.78rem; border: 1px solid #ccc; border-bottom: none; background: #e0e0e0; border-radius: 4px 4px 0 0; color: #333; }
.win-tab.active{ background: #f0f0f0; font-weight: 600; color: #000; }
.win-content   { padding: 12px 14px; }
.win-row       { display: flex; padding: 5px 0; border-bottom: 1px solid #e0e0e0; align-items: flex-start; gap: 8px; }
.win-row:last-child { border-bottom: none; }
.win-label     { color: #444; min-width: 110px; font-size: 0.8rem; flex-shrink: 0; }
.win-value     { color: #000; font-size: 0.8rem; flex: 1; }
.win-row-hl    { background: #f5eeff; border-radius: 4px; padding: 6px 4px; }
.win-row-hlm   { background: #fffbeb; border-radius: 4px; padding: 6px 4px; }

.wh-c { background: #e8d5ff; border: 1px solid #9333ea; border-radius: 3px; padding: 1px 4px; font-weight: 600; color: #6b21a8; }
.wh-m { background: #fef3c7; border: 1px solid #d97706; border-radius: 3px; padding: 1px 4px; font-weight: 600; color: #92400e; }
.wh-a { background: #d1fae5; border: 1px solid #059669; border-radius: 3px; padding: 1px 4px; font-weight: 600; color: #065f46; }

/* ── Açıklama kartları (modal içi) ── */
.ec {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 1.65;
  font-size: 0.84rem;
}
.ec-c { background: #1e0a3c; border: 1px solid #7c3aed; color: #ddd6fe; }
.ec-m { background: #1c1008; border: 1px solid #d97706; color: #fde68a; }
.ec-a { background: #0a1f14; border: 1px solid #059669; color: #a7f3d0; }

.ec-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ec ul    { padding-left: 18px; margin-top: 6px; }
.ec ul li { margin-bottom: 4px; }

.tip-box {
  background: #0c1a2e;
  border: 1px solid #1e40af;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #93c5fd;
  line-height: 1.6;
  margin-top: 4px;
}
.tip-box strong { color: #60a5fa; }

/* ── Responsive ── */
@media (max-width: 600px) {
  h1               { font-size: 1.4rem; }
  .mode-selector   { flex-direction: column; }
  .select-row      { flex-direction: column; }
  .btn-pick        { min-width: unset; }
  .card            { padding: 18px; }
}