/* =========================================================
   resim.fun — "Canlı" tema (app.css üzerine yüklenir)
   Açık zemin, beyaz kartlar, mavi→mor→pembe vurgu degradesi.
   Yükleme kutusu en üstte, büyük renkli "Resim Yükle" düğmesi.
   ========================================================= */

:root {
  --bg:           #f5f6fb;
  --bg-2:         #eef0f8;
  --surface:      #ffffff;
  --surface-2:    #fafbff;

  --text:         #12142b;
  --text-2:       #1f2240;
  --text-dim:     #4a4f6a;
  --text-mute:    #6b7090;
  --text-soft:    #9aa0bd;

  --border:       #e6e8f2;
  --border-2:     #d5d9ea;
  --border-soft:  #f0f1f8;

  --brand:        #5b3df5;
  --brand-2:      #7c3aed;
  --brand-soft:   #f1edff;
  --brand-soft-2: #e2d9ff;
  --pink:         #ec4899;
  --grad:         linear-gradient(90deg, #4f6bff 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft:    linear-gradient(90deg, #7f93ff 0%, #b58cf7 50%, #f07fbd 100%);

  --shadow-xs:    0 1px 2px rgba(18, 20, 43, .04);
  --shadow-sm:    0 1px 3px rgba(18, 20, 43, .06), 0 1px 2px rgba(18, 20, 43, .04);
  --shadow-md:    0 6px 18px rgba(18, 20, 43, .07);
  --shadow-lg:    0 18px 44px rgba(18, 20, 43, .09);

  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    18px;
  --radius-xl:    22px;

  --font-ui: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body { font-family: var(--font-ui); background: var(--bg); letter-spacing: -0.005em; }
.mesh-bg { display: none; }
::selection { background: var(--brand); color: #fff; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Üst menü ---------- */
.app-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(18, 20, 43, .02);
}
.app-header .nav-row { height: 74px; max-width: 1180px; padding: 0 1.25rem; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(139, 92, 246, .35);
}
.brand-logo svg { width: 19px; height: 19px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.nav-link {
  position: relative;
  font-weight: 600; font-size: .9rem;
  color: var(--text-2);
  padding: .55rem .8rem;
  border-radius: 0;
  background: none !important;
}
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: -14px;
  height: 3px; border-radius: 3px; background: var(--grad);
}
.user-avatar { background: var(--grad); }
.lang-switch button.active { background: var(--brand) !important; color: #fff !important; }

/* ---------- Düğmeler ---------- */
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #db2777);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(219, 39, 119, .25);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #6d28d9, #be185d);
  box-shadow: 0 10px 24px rgba(219, 39, 119, .32);
  transform: translateY(-1px);
}
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand); }
.btn-white { background: #fff; color: var(--text); border-radius: 999px; padding: .8rem 1.4rem; box-shadow: 0 8px 20px rgba(18, 20, 43, .15); }
.btn-white svg { width: 16px; height: 16px; }
.btn-white:hover { transform: translateY(-1px); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(91, 61, 245, .12) !important;
}

/* ---------- Ana sayfa başlığı ---------- */
.hero.hero-compact { padding: 2.5rem 1rem .75rem; }
.hero.hero-compact .hero-inner { max-width: 760px; }
.hero.hero-compact h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: .6rem;
}
.hero.hero-compact .lead { font-size: .98rem; color: var(--text-mute); }

/* ---------- Yükleme kutusu ---------- */
.upload-hub {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.upload-hub::before { display: none; }
.upload-hub-head { background: var(--surface); padding: 0 1.5rem; align-items: stretch; }
.upload-hub-title { padding: 1.15rem 0; }
.upload-hub-title .ico { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.upload-hub-title .ico svg { color: var(--brand); }
.upload-hub-title h3 { font-weight: 800; }
/* sekmeler: alt çizgili */
.upload-hub-tabs { background: none; border: 0; padding: 0; border-radius: 0; gap: .25rem; }
.upload-hub-tabs button {
  position: relative;
  border-radius: 0;
  padding: 0 .9rem;
  font-size: .86rem; font-weight: 700;
  color: var(--text-mute);
  background: none !important;
  box-shadow: none !important;
}
.upload-hub-tabs button.active { color: var(--text); }
.upload-hub-tabs button.active::after {
  content: ''; position: absolute; left: .4rem; right: .4rem; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--grad);
}
.upload-hub-body { padding: 1.5rem; }

.dropzone {
  border: 2px dashed #c9c3f5;
  border-radius: 18px;
  background: var(--surface-2);
  padding: 3.25rem 1.5rem 2.75rem;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand);
  background: #f7f4ff;
  transform: none;
  box-shadow: none;
}
.dz-cloud { width: 76px; height: 76px; margin: 0 auto 1rem; transition: transform .25s; }
.dz-cloud svg { width: 100%; height: 100%; }
.dropzone:hover .dz-cloud, .dropzone.is-dragover .dz-cloud { transform: translateY(-4px); }
.dz-title { font-size: 1.35rem !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.dz-hint { color: var(--text-mute) !important; }
.dz-hint strong { color: var(--text) !important; }
.format-chips { display: none; }

/* seçenek kartları */
.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
.opt-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .9rem 1rem 1rem;
  transition: border-color .15s, box-shadow .15s;
}
button.opt-card:hover { border-color: var(--brand-soft-2); box-shadow: var(--shadow-sm); }
.opt-label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; color: var(--text-mute);
}
.opt-label svg { width: 15px; height: 15px; }
.opt-value {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: .7rem .85rem;
  font-weight: 700; font-size: .9rem;
  color: var(--text);
}
button.opt-card .opt-value { color: var(--brand); }
.opt-value svg { width: 18px; height: 18px; flex-shrink: 0; }
.opt-static .opt-value { font-weight: 600; font-size: .84rem; color: var(--text-dim); }

/* büyük "Resim Yükle" düğmesi */
.btn-upload {
  width: 100%;
  margin-top: 1.1rem;
  padding: 1.15rem 1rem;
  font-size: 1.05rem; font-weight: 800;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  box-shadow: 0 12px 28px rgba(139, 92, 246, .28);
}
.btn-upload svg { width: 20px; height: 20px; }
.btn-upload:hover:not(:disabled) { filter: brightness(1.05) saturate(1.1); transform: translateY(-1px); }
.btn-upload:disabled { opacity: 1 !important; background: var(--grad-soft); box-shadow: none !important; cursor: not-allowed; }

.upload-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  margin-top: .9rem;
  font-size: .8rem; color: var(--text-mute);
}
.upload-foot span { display: inline-flex; align-items: center; gap: .4rem; }
.upload-foot svg { width: 14px; height: 14px; color: var(--text-mute); }
.link-btn { font-size: .8rem; font-weight: 700; color: var(--brand); }
.link-btn:disabled { color: var(--text-soft); cursor: default; }

.upload-row .progress > div { background: var(--grad) !important; }
.url-uploader .dz-icon { background: var(--brand-soft) !important; border-color: var(--brand-soft-2) !important; }
.url-uploader .dz-icon svg { color: var(--brand) !important; }

/* ---------- İstatistikler ---------- */
.stat { border-radius: 16px; border-color: var(--border); }
.stat .num { font-weight: 800; }
.stat .label { color: var(--text-mute); }

/* ---------- SSS ---------- */
.faq-wrap { max-width: 900px; margin-left: auto; margin-right: auto; }
.faq-title {
  text-align: center;
  font-size: 1.15rem; font-weight: 800;
  margin-bottom: 1.6rem;
  position: relative;
}
.faq-title::after {
  content: ''; display: block; width: 44px; height: 3px; border-radius: 3px;
  background: var(--grad); margin: .7rem auto 0;
}
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 1.1rem;
}
.faq details[open] { background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 0;
  font-weight: 700; font-size: .92rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; font-weight: 500; color: var(--text-dim); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-no {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: .66rem; font-weight: 800; color: #fff;
  background: var(--grad);
  flex-shrink: 0;
}
.faq details p { padding: 0 0 1rem 2.6rem; color: var(--text-dim); font-size: .9rem; line-height: 1.65; }

/* ---------- Çağrı bandı ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  background: linear-gradient(110deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(124, 58, 237, .25);
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .35rem; font-size: .95rem; }

/* ---------- Bölüm başlıkları, galeri ---------- */
.eyebrow { color: var(--brand); }
.section-head h2 { font-weight: 800; letter-spacing: -0.03em; }
.section-head .link { color: var(--brand); font-weight: 700; }
.gallery { gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery .item { border-radius: 16px; border-color: var(--border); }
.gallery .item:hover { box-shadow: var(--shadow-md); }
.gallery .item .badge-corner { font-weight: 700; }

.empty-frame {
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--border-2);
  border-radius: 20px;
  padding: 3rem 1.5rem;
}
.empty-frame .frames { display: flex; justify-content: center; gap: .55rem; margin-bottom: 1.2rem; }
.empty-frame .frames span { width: 52px; height: 64px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.empty-frame .frames span:nth-child(2) { background: var(--grad); border: 0; transform: translateY(-8px); }
.empty-frame h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .35rem; }
.empty-frame p { color: var(--text-mute); margin-bottom: 1.2rem; }

/* ---------- Ortak ---------- */
.card { border-radius: 20px; }
.chip.active { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.pager a.active { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.copy-input button { background: var(--brand) !important; color: #fff !important; font-weight: 700; }
.copy-input button:hover { background: var(--brand-2) !important; }
.viewer { border-radius: 20px; box-shadow: var(--shadow-sm); }
.checkbox input { accent-color: var(--brand); }

/* Giriş / üyelik sol paneli */
.auth-side-bg {
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(140deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%) !important;
}

/* ---------- Alt bilgi ---------- */
.app-footer { background: var(--surface); margin-top: 4rem; }
.app-footer::before { background: var(--grad); opacity: .6; }
.footer-stat .dot { background: #22c55e; }

@media (max-width: 640px) {
  .app-header .nav-row { height: 64px; }
  .nav-link.active::after { display: none; }
  .hero.hero-compact { padding: 1.75rem 1rem .5rem; }
  .upload-hub-head { padding: 0 1rem; }
  .upload-hub-body { padding: 1rem; }
  .upload-options { grid-template-columns: 1fr; }
  .dropzone { padding: 2.25rem 1rem 2rem; }
  .cta-band { padding: 1.75rem 1.4rem; }
}
