/* ── Upload Page Specific Styles ─────────── */

.upload-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
  position: relative;
  z-index: 1;
}

/* ── Animated Background Particles ──────── */
.bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: float 20s infinite ease-in-out;
}
.p1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rose), transparent);
  top: -100px; left: -100px;
  animation-duration: 18s;
}
.p2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--gold), transparent);
  bottom: -50px; right: -50px;
  animation-duration: 22s; animation-delay: -8s;
}
.p3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--rose-light), transparent);
  top: 40%; left: 60%;
  animation-duration: 15s; animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Header ──────────────────────────────── */
.upload-header {
  max-width: 480px;
  width: 100%;
  padding-top: 36px;
}

.ornament-top { margin-bottom: 16px; }

.masa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.upload-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

/* ── Upload Section ──────────────────────── */
.upload-section {
  width: 100%;
  max-width: 520px;
  margin-top: 24px;
}

.upload-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Drop Zone ───────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(201,168,76,0.03);
}

.drop-zone:hover, .drop-zone:focus-visible {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  outline: none;
}

.drop-zone.drag-over {
  border-color: var(--rose);
  background: rgba(212,184,134,0.12);
  transform: scale(1.01);
}

.drop-zone-icon { margin-bottom: 16px; }

.camera-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,184,134,0.1), rgba(212,184,134,0.25));
  margin: 0 auto;
  transition: transform var(--transition);
}

.drop-zone:hover .camera-wrapper { transform: scale(1.1) rotate(-5deg); }

.drop-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.drop-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.drop-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

.drop-zone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(251, 249, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.drop-zone.drag-over .drop-zone-overlay { opacity: 1; }

.drop-overlay-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ── Preview Grid ────────────────────────── */
.preview-section { display: flex; flex-direction: column; gap: 12px; }

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

/* ── Toplu Özet (12+ dosyada) ────────────── */
.bulk-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  text-align: center;
  animation: fade-in 0.3s ease;
}

.bulk-icon {
  font-size: 3rem;
  line-height: 1;
}

.bulk-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.bulk-text strong {
  font-size: 2rem;
  display: block;
  color: var(--gold-dark);
  font-family: 'Playfair Display', serif;
}

.bulk-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.preview-item img, .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: none;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.preview-item:hover .remove-btn { opacity: 1; }

.preview-item .video-badge {
  position: absolute;
  bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ── Upload Progress ─────────────────────── */
.upload-progress-wrap { display: flex; flex-direction: column; gap: 8px; }

.upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Upload Note ─────────────────────────── */
.upload-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ── Success Screen ──────────────────────── */
.success-screen {
  width: 100%;
  max-width: 480px;
  margin-top: 40px;
  animation: fade-up 0.6s ease forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-card {
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-animation { position: relative; margin-bottom: 8px; }

.success-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,184,134,0.1), rgba(212,184,134,0.25));
  border: 2px solid rgba(212,184,134,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.6s 0.4s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.confetti-area {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 100px;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  animation: confetti-fall 1.2s ease forwards;
}

@keyframes confetti-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--cx), var(--cy)) rotate(720deg); opacity: 0; }
}

.success-title {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-msg {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.success-count {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 480px) {
  .upload-card { padding: 20px; }
  .drop-zone { padding: 30px 16px; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .success-card { padding: 28px 20px; }
}
