*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0f0f14;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.35);
  --success: #22c55e;
  --error: #ef4444;
  --progress-bg: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(236, 72, 153, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(236, 72, 153, 0.15); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-word {
  font-family: 'Righteous', cursive;
  font-weight: 400;
  letter-spacing: 0.04em;
  display: block;
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-sametim {
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  background-image: linear-gradient(135deg, #f472b6, #c084fc, #818cf8);
  text-shadow: 0 0 40px var(--pink-glow);
  filter: drop-shadow(0 4px 24px rgba(244, 114, 182, 0.3));
}

.hero-yukle {
  font-size: clamp(2rem, 8vw, 2.8rem);
  background-image: linear-gradient(135deg, #a78bfa, #e879f9, #f472b6);
  animation-delay: 0.5s;
}

.hero-bebegim {
  font-size: clamp(2.6rem, 11vw, 3.8rem);
  background-image: linear-gradient(135deg, #ec4899, #f472b6, #fda4af, #ec4899);
  animation-delay: 1s;
  filter: drop-shadow(0 4px 30px rgba(236, 72, 153, 0.4));
}

.hero-heart {
  -webkit-text-fill-color: initial;
  display: inline-block;
  animation: heart-bounce 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes heart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) translateY(-3px); }
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.upload-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  flex: 1;
}

.drop-area {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-area:hover,
.drop-area.drag-over {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
}

.drop-icon {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.drop-area h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.drop-area p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.formats {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 20px;
}

.btn-select {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-select:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.file-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.file-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  color: var(--accent-hover);
}

.file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-remove {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.btn-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--accent));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-upload:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-percent {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-hover);
}

.progress-bar {
  height: 10px;
  background: var(--progress-bg);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--accent), #a78bfa);
  border-radius: 100px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.result-section {
  text-align: center;
  padding: 24px 0;
}

.result-icon {
  margin-bottom: 16px;
}

.result-icon.success {
  color: var(--success);
}

.result-icon.error {
  color: var(--error);
}

.result-section h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.result-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.btn-new {
  background: transparent;
  color: var(--accent-hover);
  border: 1px solid var(--accent);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.btn-new:hover {
  background: rgba(99, 102, 241, 0.1);
}

.footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }

  .upload-card {
    padding: 20px;
  }

  .drop-area {
    padding: 32px 16px;
  }

  .progress-stats {
    grid-template-columns: 1fr;
  }

  .hero-title {
    gap: 2px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 5px 12px;
  }
}
