/* ============================================================
   PixDrop — Resim Yükleme & Dönüştürme
   Kimlik: Açık zemin · Mor vurgu (#7c3aed) · Inter + Syne
   Aktar'dan tamamen bağımsız tasarım dili
   ============================================================ */
:root {
  --brand:    #7c3aed;
  --brand-2:  #6d28d9;
  --brand-lt: rgba(124,58,237,.10);
  --radius:   14px;
  --radius-sm:9px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 12px 40px rgba(0,0,0,.14);
  --trans:    .18s ease;
}
[data-bs-theme="dark"] {
  --brand-lt: rgba(124,58,237,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main, body > section.pd-hero { flex: 1; }
h1,h2,h3,h4,h5,.display {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}
a { color: var(--brand); }

/* ---- Topbar ---- */
.pd-nav {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  background: rgba(var(--bs-body-bg-rgb, 255,255,255),.85);
  position: sticky; top: 0; z-index: 100;
}
.pd-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne',sans-serif; font-weight: 700; font-size: 1.2rem;
  color: inherit; text-decoration: none;
}
.pd-brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.pd-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

/* ---- Hero ---- */
.pd-hero {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, var(--brand-lt) 0%, transparent 60%);
  text-align: center;
}
.pd-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .2rem; }
.pd-hero .tagline { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; color: var(--brand); margin-bottom: .5rem; }
.pd-hero .lead { color: var(--bs-secondary-color); max-width: 560px; margin: 0 auto 2rem; }

/* ---- Upload card ---- */
.upload-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 680px; margin: 0 auto;
  text-align: left;
}
.dropzone {
  border: 2px dashed var(--bs-border-color);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--brand);
  background: var(--brand-lt);
}
.dropzone.has-file { border-color: var(--brand); }
.dz-icon { font-size: 2.8rem; color: var(--brand); display: block; margin-bottom: .5rem; }

/* ---- Picked file list ---- */
.picked-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; text-align: left; }
.picked-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  font-size: 13px;
}
.picked-item .pk-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-item .pk-size { color: var(--bs-secondary-color); white-space: nowrap; font-size: 12px; }
.picked-item .pk-rm { background: none; border: 0; color: var(--bs-secondary-color); cursor: pointer; padding: 2px 4px; }
.picked-item .pk-rm:hover { color: #dc3545; }

/* ---- Options row ---- */
.opt-row { display: flex; gap: 12px; flex-wrap: wrap; }
.opt-row .form-select, .opt-row .form-control { font-size: 14px; }

/* ---- Password hint icon ---- */
.pass-hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #f59e0b; color: #fff; font-size: 11px;
  cursor: help; vertical-align: middle; margin-left: 4px;
  font-style: normal; font-weight: 700;
}

/* ---- Progress ---- */
.progress-bar-brand { background: var(--brand); }
.pfile-name { font-size: 13px; color: var(--bs-secondary-color); }

/* ---- Done box ---- */
.done-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #d1fae5; color: #059669;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto .75rem;
}
[data-bs-theme="dark"] .done-icon { background: rgba(5,150,105,.2); }

/* ---- Tools grid (ana sayfa) ---- */
.tools-section { padding: 40px 0 48px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; padding: 20px; border-radius: var(--radius); text-align: center;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  text-decoration: none; color: inherit;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.tool-card:hover {
  border-color: var(--brand); box-shadow: var(--shadow);
  transform: translateY(-2px); color: inherit;
}
.tool-icon {
  width: 44px !important; height: 44px !important;
  min-width: 44px; min-height: 44px;
  border-radius: 11px; flex-shrink: 0; align-self: center;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
}
.tool-card h6 { font-size: 14px; font-weight: 600; margin: 0 auto; width: 100%; text-align: center; }
.tool-card p  { font-size: 12px; color: var(--bs-secondary-color); margin: 0 auto; line-height: 1.4; width: 100%; text-align: center; }

/* ---- Tool sayfası ---- */
.tool-page { max-width: 700px; margin: 0 auto; padding-top: 32px; padding-bottom: 48px; }
.tool-page .hero-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff; margin-bottom: 1rem;
}
.before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px;
}
.before-after > div { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bs-border-color); }
.before-after img { width: 100%; height: 200px; object-fit: contain; background: var(--bs-tertiary-bg); }
.ba-label { font-size: 12px; text-align: center; padding: 6px; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.tool-desc { background: var(--bs-tertiary-bg); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 3rem; }

/* ---- Resim görüntüleme ---- */
.img-viewer-wrap { background: var(--bs-tertiary-bg); border-radius: var(--radius); padding: 1rem; min-height: 300px; display: flex; align-items: center; justify-content: center; }

/* ---- Link butonları ---- */
.copy-btn.btn-primary { font-weight: 600; }
#linkPreview { font-size: 12px; }

/* ---- Footer ---- */
.pd-footer {
  border-top: 1px solid var(--bs-border-color);
  padding: 2rem 0; font-size: 13px; color: var(--bs-secondary-color);
  text-align: center;
}
.pd-footer a { color: var(--bs-secondary-color); }
.pd-footer a:hover { color: var(--brand); }
.sep { margin: 0 .5rem; }

/* ---- Buttons ---- */
.btn-brand { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---- Admin ---- */
.admin-sidebar { min-height: 100vh; border-right: 1px solid var(--bs-border-color); }
.admin-nav-link { color: var(--bs-body-color); border-radius: 8px; }
.admin-nav-link:hover, .admin-nav-link.active { background: var(--brand-lt); color: var(--brand); }
.admin-nav-link.active { font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .upload-card { padding: 1.5rem; }
  .pd-hero { padding: 48px 0 36px; }
  .before-after { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Brand CSS var override from panel ---- */
.btn-active-copy { color: #fff !important; }
