/* Snap N Share — placeholder branding, swappable per-event via config.
   Guest pages are mobile-first and tiny: they must load on venue 4G. */
:root {
  --brand: #1a1a2e;
  --accent: #e94560;
  --bg: #f7f7fa;
  --card: #ffffff;
  --text: #22222a;
  --muted: #6b6b76;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.admin .wrap { max-width: 1000px; }
h1 { font-size: 1.4rem; margin: 0.6em 0; }
h2 { font-size: 1.1rem; margin: 1em 0 0.4em; }
.foot { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 24px 8px; }
.foot a { color: var(--muted); }

.card-box {
  background: var(--card); border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 16px;
}
.brandbar { background: var(--brand); color: #fff; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.brandbar h1 { margin: 0; font-size: 1.2rem; }
.brandbar .sub { opacity: 0.85; font-size: 0.85rem; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d5d5de; border-radius: 8px; font-size: 1rem;
}
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-weight: 400; }
.consent input { margin-top: 4px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn.secondary { background: var(--brand); }
.btn.small { padding: 5px 10px; font-size: 0.8rem; }
.btn.danger { background: #b02a37; }
.error { background: #fdecea; color: #b02a37; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.notice { background: #e7f4e8; color: #1e6b30; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.muted { color: var(--muted); font-size: 0.85rem; }

/* Honeypot: invisible to humans, tempting to bots */
.website-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery a { display: block; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

table.list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.list th, table.list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e5e5ec; }
table.list th { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.nav a { color: var(--brand); font-weight: 600; text-decoration: none; }
.inline-form { display: inline; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photo-admin .p { background: var(--card); border-radius: 8px; padding: 8px; font-size: 0.8rem; }
.photo-admin img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.tag { display: inline-block; background: #ececf3; border-radius: 5px; padding: 1px 7px; font-size: 0.75rem; }
.tag.warn { background: #fff2cc; }
