/* Photora — small layer on top of Tailwind CDN */

:root {
  --brand: #8b5cf6;
  --brand-2: #06b6d4;
}

html { scroll-behavior: smooth; }

body {
  background: #0a0a12;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #6d28d9);
  transition: filter .15s ease, transform .15s ease;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

/* Before/after slider */
.ba-wrap { position: relative; overflow: hidden; border-radius: 1rem; touch-action: none; }
.ba-wrap img, .ba-wrap .ba-pane { display: block; width: 100%; user-select: none; -webkit-user-drag: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; cursor: ew-resize; transform: translateX(-50%);
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 40px; height: 40px;
  border-radius: 9999px; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* Drag & drop zone */
.dropzone { border: 2px dashed rgba(255,255,255,.2); transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--brand); background: rgba(139, 92, 246, .08); }

/* Aspect ratio picker */
.ratio-btn { border: 2px solid transparent; transition: border-color .15s; text-align: center; }
.ratio-btn:hover { border-color: rgba(255,255,255,.25); }
.ratio-btn.selected { border-color: var(--brand); }

/* Style picker */
.style-card { cursor: pointer; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.style-card:hover { transform: translateY(-2px); }
.style-card.selected { border-color: var(--brand); }

/* Results grid */
.result-thumb { aspect-ratio: 1 / 1; object-fit: cover; }

.spinner {
  width: 2rem; height: 2rem; border-radius: 9999px;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Simple demo "photos" for the landing slider (pure CSS, no image assets) */
.demo-before {
  background:
    radial-gradient(circle at 50% 38%, #c8a988 0 15%, transparent 16%),
    radial-gradient(circle at 50% 78%, #5f6b7a 0 32%, transparent 33%),
    linear-gradient(160deg, #3a3f4a, #23262e);
}
.demo-after {
  background:
    radial-gradient(circle at 50% 38%, #d9b891 0 15%, transparent 16%),
    radial-gradient(circle at 50% 78%, #1f2937 0 32%, transparent 33%),
    radial-gradient(circle at 30% 20%, rgba(139,92,246,.35), transparent 60%),
    linear-gradient(160deg, #14161d, #0a0a12);
}
