/* Real Fast Photos web upload — clean, mobile-first styling */
:root {
  --blue: #0a84ff;
  --blue-dark: #006edc;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #f5f5f7;
  --card: #ffffff;
  --border: #d2d2d7;
  --error: #d70015;
  --success: #248a3d;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
header.brand h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
header.brand .brand-link {
  text-decoration: none;
  color: inherit;
}
header.brand .brand-link:hover h1 {
  opacity: 0.7;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

p.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

button.primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 16px;
  font-family: inherit;
}
button.primary:hover { background: var(--blue-dark); }
button.primary:disabled { background: #b0b0b0; cursor: not-allowed; }

button.secondary {
  background: transparent;
  color: var(--blue);
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
  font-family: inherit;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--blue);
  background: #f0f7ff;
}
.dropzone .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.progress {
  margin-top: 16px;
  height: 8px;
  background: #e5e5ea;
  border-radius: 4px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.3s;
}

.step { display: none; }
.step.active { display: block; }

.message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}
.message.error { background: #ffebee; color: var(--error); }
.message.success { background: #e8f5e9; color: var(--success); }
.message.info { background: #e3f2fd; color: #0d47a1; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .total { font-weight: 600; font-size: 18px; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.album-card { padding: 16px 20px; }
.album-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.album-text { min-width: 0; flex: 1; }
.album-address {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-sub { font-size: 13px; margin-top: 2px; }
.album-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.album-status.status-ready { background: #e8f5e9; color: var(--success); }
.album-status.status-pending { background: #e3f2fd; color: #0d47a1; }
.album-status.status-failed { background: #ffebee; color: var(--error); }
.album-status.status-muted { background: #f0f0f0; color: var(--muted); }
.album-action { margin-top: 12px; }
.album-action .as-button {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}
.album-action .as-button:hover { background: var(--blue-dark); }

footer.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
}
footer.foot a { color: var(--muted); }
