@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #07090e;
  --bg-card: rgba(14, 18, 27, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --accent-gold: #eab308;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(234, 179, 8, 0.05), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle Film Grain */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.font-editorial {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.font-mono-tag {
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.06em;
}

/* Glass & Surface Containers */
.cinema-card {
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.85) 0%, rgba(9, 12, 18, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

/* Editorial Visual Role Card (Fashion Marketplace Inspiration) */
.visual-role-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  background-size: cover;
  background-position: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 110px;
}

.visual-role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(5, 7, 12, 0.92) 85%);
  transition: background 0.25s ease;
}

.visual-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.visual-role-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(5, 7, 12, 0.85) 85%);
}

.visual-role-card.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff, 0 12px 28px -6px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px) scale(1.01);
}

.visual-role-card.selected::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(5, 7, 12, 0.88) 85%);
}

.visual-role-card .check-pill {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-role-card.selected .check-pill {
  opacity: 1;
  transform: scale(1);
}

/* Clean Editorial Inputs */
.cinema-input {
  background: rgba(8, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.cinema-input:focus {
  outline: none;
  background: rgba(13, 18, 28, 0.95);
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff, 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.cinema-input::placeholder {
  color: #475569;
}

/* Smooth step pane transition */
.step-pane {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing REC dot */
.rec-dot {
  animation: recBlink 1.5s infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
