/* AnimaBoard — resort animation-team scheduling showcase. Warm, sunny, card-based —
   a deliberately different world from Badjo's dark gamified widget. */

:root {
  --ab-bg: #FFF8EF;
  --ab-bg-deep: #FCEEDA;
  --ab-surface: #FFFFFF;
  --ab-ink: #2B2118;
  --ab-muted: #8A7A68;
  --ab-subtle: #B7A896;
  --ab-line: rgba(43, 33, 24, 0.1);
  --ab-coral: #FF6B4A;
  --ab-coral-ink: #7A2A16;
  --ab-teal: #128585;
  --ab-teal-ink: #0B4F4F;
  --ab-gold: #F4B942;
  --ab-gold-ink: #6B4B06;
  --ab-violet: #7A5CFA;
  --ab-font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ab-display: "Fraunces", ui-serif, Georgia, serif;
  --ab-radius: 1.1rem;
}

* { box-sizing: border-box; }

body.ab-body {
  margin: 0;
  background: var(--ab-bg);
  color: var(--ab-ink);
  font-family: var(--ab-font);
  -webkit-font-smoothing: antialiased;
}

.ab-shell { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.ab-shell.narrow { max-width: 640px; }
.ab-shell.wide { max-width: 1220px; }

.ab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ab-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ab-ink);
}
.ab-wordmark .mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--ab-coral), var(--ab-gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ab-wordmark .word {
  font-family: var(--ab-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.ab-wordmark .tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ab-subtle);
  font-weight: 600;
}

.ab-nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ab-muted);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
.ab-nav-link:hover { background: var(--ab-surface); color: var(--ab-ink); }

.ab-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ab-coral-ink);
}

h1.ab-h1 {
  margin: 0 0 0.5rem;
  font-family: var(--ab-display);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.15;
  text-wrap: balance;
}

p.ab-lede {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--ab-muted);
  max-width: 42rem;
  line-height: 1.6;
}

.ab-card {
  background: var(--ab-surface);
  border-radius: var(--ab-radius);
  box-shadow: 0 1px 0 var(--ab-line), 0 16px 32px -24px rgba(43, 33, 24, 0.35);
  padding: 1.5rem;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.ab-btn:active { transform: scale(0.97); }
.ab-btn.primary { background: var(--ab-coral); color: #fff; box-shadow: 0 10px 20px -10px rgba(255, 107, 74, 0.6); }
.ab-btn.primary:hover { box-shadow: 0 14px 24px -10px rgba(255, 107, 74, 0.7); }
.ab-btn.teal { background: var(--ab-teal); color: #fff; box-shadow: 0 10px 20px -10px rgba(18, 133, 133, 0.55); }
.ab-btn.ghost { background: var(--ab-surface); color: var(--ab-ink); box-shadow: 0 0 0 1.5px var(--ab-line); }
.ab-btn.ghost:hover { box-shadow: 0 0 0 1.5px var(--ab-coral); }
.ab-btn.sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
.ab-btn.danger { background: #fff; color: #C23B2B; box-shadow: 0 0 0 1.5px rgba(194, 59, 43, 0.3); }
.ab-btn.danger:hover { background: #FDEEEB; }
.ab-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ab-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ab-field label { font-size: 0.78rem; font-weight: 700; color: var(--ab-muted); }
.ab-field input, .ab-field select {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--ab-line);
  background: var(--ab-bg);
  color: var(--ab-ink);
}
.ab-field input:focus, .ab-field select:focus { outline: 2px solid var(--ab-coral); outline-offset: 1px; }
.ab-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .ab-field-row { grid-template-columns: 1fr; } }

.ab-chip-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ab-chip-picker button {
  border: 1.5px solid var(--ab-line);
  background: var(--ab-surface);
  border-radius: 0.6rem;
  width: 2.6rem; height: 2.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}
.ab-chip-picker button.is-on { border-color: var(--ab-coral); background: #FFF0EB; }

/* ---------- Activity row/card ---------- */
.ab-activity {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--ab-surface);
  box-shadow: 0 1px 0 var(--ab-line);
}
.ab-activity + .ab-activity { margin-top: 0.65rem; }
.ab-activity .banner {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ab-activity .body { flex: 1; min-width: 0; }
.ab-activity .title { margin: 0; font-weight: 700; font-size: 0.98rem; }
.ab-activity .meta { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--ab-muted); display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ab-activity .meta .dot { color: var(--ab-subtle); }
.ab-activity .time {
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ab-ink);
  min-width: 4.6rem;
}
.ab-activity .actions { flex: none; display: flex; gap: 0.4rem; }

.ab-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.74rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px;
}
.ab-pill.animator { background: rgba(122, 92, 250, 0.12); color: #4E37C4; }
.ab-pill.location { background: rgba(18, 133, 133, 0.12); color: var(--ab-teal-ink); }

.ab-activity.is-next {
  box-shadow: 0 0 0 2px var(--ab-gold), 0 16px 30px -18px rgba(244, 185, 66, 0.6);
}
.ab-activity.is-past { opacity: 0.5; }

.ab-next-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--ab-gold); color: var(--ab-gold-ink);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 999px; margin-bottom: 0.4rem;
}

.ab-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ab-muted);
  border: 1.5px dashed var(--ab-line);
  border-radius: var(--ab-radius);
}

.ab-day-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1.5rem; }
.ab-day-tab {
  flex: none;
  border: 0;
  background: var(--ab-surface);
  color: var(--ab-muted);
  font: inherit; font-weight: 700; font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--ab-line);
}
.ab-day-tab.is-on { background: var(--ab-ink); color: #fff; }

.ab-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.ab-role-card {
  display: block;
  text-decoration: none;
  color: var(--ab-ink);
  background: var(--ab-surface);
  border-radius: var(--ab-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 0 var(--ab-line), 0 16px 32px -24px rgba(43, 33, 24, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ab-role-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(43, 33, 24, 0.4); }
.ab-role-card .icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }
.ab-role-card h3 { margin: 0 0 0.35rem; font-family: var(--ab-display); font-size: 1.2rem; }
.ab-role-card p { margin: 0; font-size: 0.85rem; color: var(--ab-muted); line-height: 1.5; }

.ab-picker-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.ab-picker-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ab-surface);
  border-radius: 0.9rem;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 0 var(--ab-line);
}
.ab-picker-item:hover { box-shadow: 0 0 0 1.5px var(--ab-coral); }
.ab-picker-item .avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex: none;
}
.ab-picker-item .name { font-weight: 700; }

.ab-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--ab-ink); color: #fff;
  padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none; z-index: 50;
}
.ab-toast.is-on { opacity: 1; }

.ab-modal-backdrop {
  position: fixed; inset: 0; background: rgba(43, 33, 24, 0.35);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto; z-index: 40;
}
.ab-modal {
  background: var(--ab-surface); border-radius: var(--ab-radius);
  padding: 1.75rem; width: 100%; max-width: 30rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.ab-modal h2 { margin: 0 0 1.25rem; font-family: var(--ab-display); font-size: 1.35rem; }

.ab-footer { text-align: center; margin-top: 3rem; font-size: 0.78rem; color: var(--ab-subtle); }
.ab-footer a { color: var(--ab-subtle); }

.ab-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; padding: 2rem 0; }
.ab-qr-wrap .qr-frame { background: #fff; padding: 1.25rem; border-radius: 1.25rem; box-shadow: 0 20px 50px -24px rgba(43,33,24,0.5); }
.ab-qr-wrap .url { font-size: 0.85rem; color: var(--ab-muted); word-break: break-all; }

@media print {
  .ab-no-print { display: none !important; }
  body.ab-body { background: #fff; }
  .ab-shell { max-width: none; padding: 0; }
}
