/* --------------------------------------------------------------------------
   Filewhisk - ana stil
   Harici font/CSS yok: her istek sayfa hizini dusurur, sayfa hizi dogrudan
   siralamayi ve reklam gelirini etkiler.
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --border: #e2e5ea;
  --border-strong: #cbd1da;
  --text: #1b1f26;
  --text-muted: #5c6470;
  --text-faint: #8b93a1;
  --accent: #2f6df6;
  --accent-hover: #1f57d4;
  --accent-soft: #eaf1ff;
  --success: #15803d;
  --success-soft: #e8f6ed;
  --warning: #b45309;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317;
    --surface: #171b21;
    --surface-alt: #1e232b;
    --border: #272d36;
    --border-strong: #39414d;
    --text: #e8ebef;
    --text-muted: #a2abb8;
    --text-faint: #79828f;
    --accent: #5b8dff;
    --accent-hover: #79a1ff;
    --accent-soft: #1a2438;
    --success: #4ade80;
    --success-soft: #12251a;
    --warning: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --bg: #101317;
  --surface: #171b21;
  --surface-alt: #1e232b;
  --border: #272d36;
  --border-strong: #39414d;
  --text: #e8ebef;
  --text-muted: #a2abb8;
  --text-faint: #79828f;
  --accent: #5b8dff;
  --accent-hover: #79a1ff;
  --accent-soft: #1a2438;
  --success: #4ade80;
  --success-soft: #12251a;
  --warning: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

/* [hidden] tarayici varsayilaninda display:none'dir, ama asagidaki .btn ve .field
 * gibi kurallar ayni ozgullukte olup sonra geldigi icin onu eziyor - eleman
 * el.hidden = true olmasina ragmen ekranda kaliyordu. Bir kez yasandi:
 * "Download all" butonu hic cikti yokken gorunuyordu. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }

.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 7px;
}
.site-nav a:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.site-nav .nav-all { color: var(--accent); font-weight: 550; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; margin: 0 0 12px; }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* -------------------------------------------------------------------- page */

main { padding: 28px 20px 64px; }

h1 {
  font-size: clamp(26px, 4.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 40px 0 12px;
}

h3 { font-size: 17px; margin: 28px 0 8px; letter-spacing: -.01em; }

.lede { font-size: 17px; color: var(--text-muted); margin: 0 0 20px; max-width: 62ch; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-faint); margin-bottom: 18px;
}

.trust-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }

.trust-item {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ------------------------------------------------------------------ widget */

.tool-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 28px;
}

@media (max-width: 560px) { .tool-widget { padding: 16px; } }

/* ----------------------------------------------------------------- article */

.article { max-width: 68ch; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 7px; }
.article strong { font-weight: 620; }

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 0 0 20px;
}
.article th, .article td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.article th { font-weight: 600; background: var(--surface-alt); }

.table-scroll { overflow-x: auto; margin: 0 0 20px; }

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 13px 16px;
  margin: 0 0 20px;
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- faq */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 9px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 550;
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 19px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 16px 14px; color: var(--text-muted); font-size: 15px; }
.faq-answer p { margin: 0; }

/* ------------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 11px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color .12s ease, transform .12s ease;
}
.card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.card-title { font-weight: 600; font-size: 15px; }
.card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }

.tool-group { margin-bottom: 34px; }
.hero { margin-bottom: 38px; }

/* -------------------------------------------------------------------- reklam
   Yukseklik rezerve edilir. Reklam yuklendiginde sayfa zipliyorsa CLS bozulur,
   bu hem Core Web Vitals'i hem geliri dusurur.
   ------------------------------------------------------------------------- */

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin: 26px 0;
  overflow: hidden;
}
.ad-slot-leaderboard { min-height: 100px; }
.ad-slot-rectangle { min-height: 260px; }

.ad-placeholder {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (min-width: 800px) {
  .ad-slot-leaderboard { min-height: 90px; }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0 22px;
  margin-top: 40px;
}

.footer-inner { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { max-width: 42ch; }
.footer-tagline { color: var(--text-muted); font-size: 14.5px; margin: 6px 0 0; }
.footer-privacy { color: var(--text-faint); font-size: 13.5px; margin: 10px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
.footer-legal {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-legal p { margin: 0; }

/* ---------------------------------------------------------------- kontroller
   Araclarin ortak arayuz parcalari. Yeni arac eklerken bunlari kullan,
   her arac icin yeniden stil yazma.
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-weight: 550;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .12s ease;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-alt); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 550; color: var(--text-muted); }

.input, select.input {
  font: inherit;
  font-size: 15px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-title { font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.dropzone-hint { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ------------------------------------------------------- paylasimli arac UI
   Bu siniflar BUTUN araclarda kullaniliyor (sonuc listesi, durum satiri,
   ayar izgarasi, eylem butonlari). Baslangicta ilk aracin style.css'inde
   tanimliydilar; o dosya yalnizca kendi sayfasinda yuklendigi icin diger dort
   arac bu stiller olmadan render ediliyordu. Yeni arac eklerken bunlari
   kullan, kopyalama.

   "cmp-" oneki tarihsel (ilk arac compress'ti); artik "ortak arac UI" demek.
   ------------------------------------------------------------------------- */

.cmp-label {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.cmp-hint {
  font-size: 13px;
  color: var(--text-faint);
  margin: 12px 0 0;
}

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.cmp-status {
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 0;
  min-height: 21px;
}

.cmp-results { margin-top: 6px; }

.cmp-results:empty { margin-top: 0; }

.cmp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  margin-top: 10px;
}

.cmp-thumb {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.cmp-meta { min-width: 0; flex: 1; }

.cmp-name {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-stats {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 3px;
}

.cmp-saving { color: var(--success); font-weight: 600; }

.cmp-miss { color: var(--warning); font-weight: 600; }

.cmp-item .btn { padding: 8px 14px; font-size: 14px; flex-shrink: 0; }

@media (max-width: 520px) {
  .cmp-item { flex-wrap: wrap; }
  .cmp-item .btn { width: 100%; }
}

.cnv-bg-row { display: flex; gap: 8px; align-items: stretch; }

.cnv-bg-row input[type="color"] {
  width: 44px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------------------------------------------------------- dosya kuyrugu
   Secilen dosyalarin GORUNUR listesi. Bu olmadan kullanici dosya sectiginde
   ekranda hicbir sey degismis gibi gorunuyor. */

.queue { margin-top: 14px; }

.queue-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  margin-bottom: 7px;
}

.queue-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.queue-meta { min-width: 0; flex: 1; }

.queue-name {
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-size { font-size: 12.5px; color: var(--text-muted); font-family: var(--mono); }

.queue-remove {
  font: inherit;
  font-size: 20px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
}
.queue-remove:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text); }

.dropzone.has-files { padding: 20px; }

/* ------------------------------------------------------------- onay satiri
   Paylasimli. Araca ozel dosyaya yazilirsa yalnizca o sayfada yuklenir ve
   digerlerinde stilsiz kalir - bir kez yasandi (.rsz-check). */

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  cursor: pointer;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Ikincil eylem butonlari satiri. Paylasimli. */
.quick-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.quick-row .btn { padding: 8px 14px; font-size: 14px; }

/* ------------------------------------------------------------ yakinlastirma
   Paylasimli. Araca ozel dosyaya yazilirsa yalnizca o sayfada yuklenir. */

.zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.zoom-row .cmp-label { margin: 0; flex-shrink: 0; }
.zoom-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.zoom-fit { padding: 8px 14px; font-size: 14px; flex-shrink: 0; }

@media (max-width: 520px) {
  .zoom-row { flex-wrap: wrap; }
  .zoom-row input[type="range"] { flex-basis: 100%; order: 3; }
}
