/* ============================================================
   Aktar — dosya paylaşım. Marka rengi panelden gelir.
   ============================================================ */
:root { --brand: #4a6cf7; --radius: 20px; }
[data-bs-theme="light"] { --bs-body-bg: #f4f6fb; --card-bg: #ffffff; }
[data-bs-theme="dark"]  { --bs-body-bg: #13161d; --card-bg: #1b1f29; }

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; margin: 0; overflow-x: hidden; }
a { color: var(--brand); }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 85%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--brand) 85%, black);
  --bs-btn-active-bg: color-mix(in srgb, var(--brand) 75%, black);
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }
.progress-bar { background: var(--brand); }

.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent),
    radial-gradient(500px 380px at 90% 90%, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
}
[data-bs-theme="dark"] .bg-glow { opacity: .55; }

.shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; }
.theme-toggle {
  position: absolute; top: 1.25rem; right: 1.25rem;
  z-index: 30; /* kartın üstünde kalsın; mobilde kart tam genişlikte olduğundan şart */
  background: var(--card-bg); /* kart üzerine bindiğinde okunur kalsın */
}
@media (max-width: 576px) {
  .theme-toggle { top: .75rem; right: .75rem; }
}
[data-bs-theme="light"] .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: none; }

.hero-card {
  width: 100%; max-width: 620px;
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  padding: 2.25rem;
}
[data-bs-theme="dark"] .hero-card { box-shadow: 0 20px 60px rgba(0,0,0,.45); }

.logo-chip {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #22c1a3));
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 40%, transparent);
}
.app-title { font-weight: 800; letter-spacing: -0.02em; margin-bottom: .25rem; }

.limit-pills { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.limit-pill {
  font-size: .8rem; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  padding: .3rem .75rem; border-radius: 999px;
}

/* Sürükle-bırak alanı */
.dropzone {
  border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 16px; text-align: center;
  padding: 2.2rem 1rem; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: color-mix(in srgb, var(--brand) 3%, transparent);
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.dropzone.has-file { border-style: solid; }
.dz-icon { font-size: 2.4rem; color: var(--brand); }
.dz-text { font-weight: 600; margin-top: .4rem; }
.dz-file { margin-top: .8rem; font-weight: 600; }
.dz-file i { color: var(--brand); }

.upload-ring {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.07); } }

.success-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #198754 15%, transparent);
  color: #198754; font-size: 2.2rem;
}
.result-url { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; }
.file-name { word-break: break-word; }

.app-footer {
  margin-top: 1.75rem;
  font-size: .85rem; color: var(--bs-secondary-color); text-align: center;
}
.app-footer a { text-decoration: none; }
.footer-line { display: block; margin-bottom: .35rem; }
.footer-line:last-child { margin-bottom: 0; }
.footer-copy { font-weight: 500; }
.footer-sep { margin: 0 .5rem; opacity: .6; }

@media (max-width: 576px) { .hero-card { padding: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Hukuki metin modalları */
.legal-modal { border-radius: var(--radius); }
.legal-body { line-height: 1.7; font-size: .93rem; }
.legal-body p { margin-bottom: .8rem; }
.legal-body strong { color: var(--brand); }

/* ============ Çoklu indirme dosya listesi ============ */
.dl-list { display: flex; flex-direction: column; gap: 8px; }
.dl-item {
  background: var(--bs-tertiary-bg, rgba(0,0,0,.03));
  border: 1px solid var(--bs-border-color, rgba(0,0,0,.08));
  border-radius: 12px;
}
.dl-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
.dl-name { font-weight: 600; font-size: 14px; }
.dl-btn { white-space: nowrap; }
@media (max-width: 420px) {
  .dl-btn-text { display: none; } /* dar ekranda sadece ikon */
}

/* ============ Çoklu yükleme seçili dosya listesi (index) ============ */
.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;
  background: var(--bs-tertiary-bg, rgba(0,0,0,.03));
  border: 1px solid var(--bs-border-color, rgba(0,0,0,.08));
  border-radius: 10px; font-size: 13px;
}
.picked-item .pk-name { flex-grow: 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-remove { color: var(--bs-secondary-color); cursor: pointer; border: 0; background: none; padding: 2px 4px; }
.picked-item .pk-remove:hover { color: #dc3545; }
.picked-item .pk-progress { height: 3px; background: var(--brand); border-radius: 2px; width: 0; transition: width .2s; }
