/* SteadyTill Billboard AR — Shared Styles */
:root {
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --green: #22c55e;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font);
  background: var(--slate-900);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
h1 .accent { color: var(--blue); }
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.subtitle {
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: var(--font);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-block { width: 100%; }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-bar .fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Steps */
.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s;
}
.step-dot.active { background: var(--blue); }
.step-dot.done { background: var(--green); }

/* Header bar */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.header .brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
}
.header .brand .accent { color: var(--blue); }
.header .back {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Upload area */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-area:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.03);
}
.upload-area.has-image {
  padding: 0;
  border-style: solid;
  border-color: var(--blue);
  overflow: hidden;
}
.upload-area .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.upload-area .label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.upload-area .hint {
  font-size: 0.8rem;
  color: var(--slate-400);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-area img {
  width: 100%;
  display: block;
}

/* QR output */
.qr-output {
  text-align: center;
  padding: 2rem;
}
.qr-output canvas {
  margin: 1rem auto;
  display: block;
  border-radius: 12px;
}
.qr-url {
  font-size: 0.8rem;
  color: var(--slate-400);
  word-break: break-all;
  margin: 0.5rem 0 1.5rem;
  font-family: monospace;
}

/* Status message */
.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin: 1rem 0;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status .dot.pulse {
  background: var(--blue);
  animation: pulse 1.5s ease-in-out infinite;
}
.status .dot.success { background: var(--green); }
.status .dot.error { background: #ef4444; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem; }
  h1 { font-size: 1.6rem; }
}
