/* ─── Binbir Kare · Misafir sayfası ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg: #171210;
  --bg-2: #1f1815;
  --ink: #f4ede2;
  --ink-dim: #c9bda9;
  --gold: #c9a468;
  --gold-light: #e9cf9e;
  --blush: #e8b4a0;
  --card: rgba(255, 250, 240, 0.055);
  --card-border: rgba(233, 207, 158, 0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 50% -10%, #2a201a 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 110%, #241a20 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#bokeh {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 7, 5, 0.55) 100%);
}

/* ─── Hero ─── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 24px 72px;
}

.hero-inner {
  max-width: 640px;
  transform-style: preserve-3d;
  will-change: transform;
}

.eyebrow {
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  margin-bottom: 26px;
}

.ornament { width: 190px; margin: 0 auto 8px; display: block; }
.ornament .draw {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ornament .d2 { animation-delay: 0.35s; }
.ornament .d3 { animation-delay: 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.names {
  font-family: var(--serif);
  font-weight: 600; font-style: italic;
  font-size: clamp(44px, 11vw, 84px);
  line-height: 1.06;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(115deg, #f7ead0 20%, #cfa96e 50%, #f7ead0 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
  padding-bottom: 6px;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.names .amp {
  font-size: 0.44em; font-weight: 500;
  opacity: 0.9; margin: 2px 0;
}

.date {
  font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim); margin-top: 18px; font-weight: 400;
}

.welcome {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4.4vw, 21px); line-height: 1.6;
  color: var(--ink-dim);
  max-width: 460px; margin: 22px auto 0;
}

.memory-chip {
  display: inline-block;
  margin-top: 26px; padding: 8px 18px;
  font-size: 13.5px; letter-spacing: 0.04em;
  color: var(--gold-light);
  background: rgba(201, 164, 104, 0.1);
  border: 1px solid rgba(201, 164, 104, 0.3);
  border-radius: 100px;
}
.memory-chip b { font-weight: 600; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 34px; padding: 16px 38px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: #241a10;
  background: linear-gradient(135deg, #ecd3a2, #c9a468 55%, #b8905a);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(201, 164, 104, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201, 164, 104, 0.45), inset 0 1px 0 rgba(255,255,255,0.4); }
.cta svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { opacity: 0.25; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Giriş animasyonları */
.reveal { opacity: 0; transform: translateY(22px); animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.25s; }
.reveal:nth-child(3) { animation-delay: 0.4s; }
.reveal:nth-child(4) { animation-delay: 0.55s; }
.reveal:nth-child(5) { animation-delay: 0.7s; }
.reveal:nth-child(6) { animation-delay: 0.85s; }
.reveal:nth-child(7) { animation-delay: 1.0s; }
.reveal:nth-child(8) { animation-delay: 1.15s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ─── Yükleme kartı ─── */
.upload-wrap {
  position: relative; z-index: 2;
  max-width: 560px; margin: 0 auto;
  padding: 12px 20px 90px;
}

.upload-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 38px 30px 34px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.card-title {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 32px; text-align: center; color: var(--gold-light);
}
.card-sub {
  text-align: center; font-size: 14.5px; font-weight: 300;
  color: var(--ink-dim); line-height: 1.6;
  max-width: 400px; margin: 10px auto 30px;
}

.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block; font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.field-label em { color: var(--blush); font-style: normal; }
.field-label small { text-transform: none; letter-spacing: 0.02em; color: var(--ink-dim); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.05);
  border: 1px solid rgba(233, 207, 158, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(201, 189, 169, 0.45); }
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 0 0 4px rgba(201, 164, 104, 0.12);
}

.dropzone {
  border: 1.6px dashed rgba(233, 207, 158, 0.4);
  border-radius: 18px;
  padding: 30px 18px;
  text-align: center;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: var(--gold);
  background: rgba(201, 164, 104, 0.07);
}
.dropzone.dragover { transform: scale(1.015); }
.dropzone svg { color: var(--gold); margin-bottom: 10px; }
.dropzone p { font-size: 15px; }
.dropzone b { color: var(--ink); font-weight: 500; }
.dz-hint { font-size: 12.5px !important; margin-top: 4px; opacity: 0.7; }

.file-list { list-style: none; margin-top: 14px; }
.file-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin-bottom: 8px;
  background: rgba(255, 250, 240, 0.045);
  border: 1px solid rgba(233, 207, 158, 0.14);
  border-radius: 13px;
  animation: reveal 0.35s ease forwards;
}
.file-list .fl-thumb {
  width: 46px; height: 46px; flex: none;
  border-radius: 9px; object-fit: cover;
  background: rgba(201, 164, 104, 0.15);
}
.file-list .fl-thumb.video { display: flex; align-items: center; justify-content: center; font-size: 19px; }
.file-list .fl-meta { flex: 1; min-width: 0; }
.file-list .fl-name {
  font-size: 13.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-list .fl-size { font-size: 11.5px; color: var(--ink-dim); }
.file-list .fl-status { font-size: 12px; flex: none; color: var(--ink-dim); }
.file-list .fl-status.done { color: #9fd6a1; }
.file-list .fl-status.err { color: #e59a9a; }
.file-list .fl-remove {
  flex: none; border: none; background: none; cursor: pointer;
  color: var(--ink-dim); font-size: 17px; line-height: 1; padding: 5px;
  border-radius: 8px; transition: color 0.15s;
}
.file-list .fl-remove:hover { color: var(--blush); }

.fl-bar { height: 3px; margin-top: 5px; background: rgba(233, 207, 158, 0.14); border-radius: 4px; overflow: hidden; }
.fl-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.2s; }

.total-progress { margin-top: 18px; }
.tp-bar { height: 6px; background: rgba(233, 207, 158, 0.14); border-radius: 6px; overflow: hidden; }
.tp-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.25s; border-radius: 6px; }
.tp-text { font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; text-align: center; letter-spacing: 0.05em; }

.submit-btn {
  width: 100%; margin-top: 22px;
  padding: 17px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #241a10;
  background: linear-gradient(135deg, #ecd3a2, #c9a468 55%, #b8905a);
  border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 8px 28px rgba(201, 164, 104, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201, 164, 104, 0.42), inset 0 1px 0 rgba(255,255,255,0.4); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Yükleme kapalı albüm (demo / arşiv) */
.submit-btn.as-link { display: block; text-align: center; text-decoration: none; }
.closed-card { text-align: center; }
.closed-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 18px;
  color: var(--gold, #c9a468);
  border: 1px solid rgba(201, 164, 104, 0.35);
  border-radius: 50%;
  background: rgba(201, 164, 104, 0.08);
}

.form-error {
  margin-top: 14px; text-align: center;
  font-size: 14px; color: #e59a9a;
}

.gallery-link {
  display: block; text-align: center; margin-top: 26px;
  color: var(--gold); text-decoration: none; font-size: 14.5px;
  letter-spacing: 0.06em;
}
.gallery-link:hover { color: var(--gold-light); }

/* ─── Başarı ekranı ─── */
.success-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 11, 9, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 24px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.success-card {
  position: relative; text-align: center;
  max-width: 420px; width: 100%;
  padding: 46px 34px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }

.success-ring { width: 84px; margin-bottom: 18px; }
.success-ring .check {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw 0.7s 0.25s ease forwards;
}
.success-card h3 {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 30px; color: var(--gold-light);
}
.success-card p { color: var(--ink-dim); font-size: 15px; font-weight: 300; margin-top: 10px; line-height: 1.6; }

.again-btn {
  margin-top: 26px; padding: 13px 34px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(233, 207, 158, 0.45);
  border-radius: 100px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.again-btn:hover { background: rgba(201, 164, 104, 0.12); border-color: var(--gold); }

.hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 28px; }
.hearts span {
  position: absolute; bottom: -24px;
  font-size: 18px;
  animation: floatUp linear forwards;
  opacity: 0;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.7) rotate(-8deg); }
  12% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-340px) scale(1.15) rotate(10deg); }
}

.site-footer {
  position: relative; z-index: 2;
  text-align: center; padding: 26px 0 34px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201, 189, 169, 0.4);
}

@media (max-width: 480px) {
  .upload-card { padding: 30px 20px 28px; border-radius: 22px; }
  .hero { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ornament .draw { stroke-dashoffset: 0; }
}
