/* Gator Group demo — mirrors the real app's dark navy / Gator orange theme. */
:root {
  --background: #0d1528;
  --card: #16203c;
  --card-2: #1b2749;
  --foreground: #f4f6fc;
  --muted-foreground: #9aa7c7;
  --primary: #fa4616;
  --primary-bright: #ff7a3c;
  --gator-blue: #1a56db;
  --gator-blue-bright: #3b78f0;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
}

* { box-sizing: border-box; border-color: var(--border); }

html, body { margin: 0; padding: 0; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { font-family: "Archivo", "Inter", sans-serif; letter-spacing: -0.02em; margin: 0; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---------- demo banner ---------- */
.demo-banner {
  background: #fff7e8;
  color: #6b4e00;
  border-bottom: 2px solid #f2b01e;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 8px 14px;
  text-align: center;
}
.demo-banner strong { color: #543d00; }

/* ---------- shell ---------- */
.shell {
  max-width: 448px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--background);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-size: 26px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 50%, var(--gator-blue-bright) 100%);
}
.brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 19px; }
.brand-sub { font-size: 11px; color: var(--muted-foreground); letter-spacing: 0.04em; text-transform: uppercase; }

.user-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  font-size: 12px; font-weight: 600;
}
.user-chip .avatar { width: 24px; height: 24px; font-size: 14px; }
.user-chip small { display: block; font-weight: 500; color: var(--muted-foreground); font-size: 10px; }

.view-root { flex: 1; padding: 4px 16px 110px; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(18, 27, 52, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.bottom-nav { display: flex; justify-content: space-around; max-width: 448px; margin: 0 auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav-item {
  flex: 1;
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 4px;
  color: var(--muted-foreground);
  font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
}
.nav-item .nav-ico { font-size: 19px; filter: grayscale(0.4); opacity: 0.75; }
.nav-item.active { color: var(--primary-bright); }
.nav-item.active .nav-ico { filter: none; opacity: 1; }

/* ---------- generic ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}
.card h3 { font-size: 15px; }
.muted { color: var(--muted-foreground); }
.small { font-size: 12px; }
.view-title { font-size: 24px; font-weight: 800; margin-top: 8px; }
.section-label {
  margin: 22px 0 4px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted-foreground);
}
.avatar {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--card-2);
  border: 1px solid var(--border);
  flex: none;
}
.btn {
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: 8px 14px;
  font-weight: 700; font-size: 13px;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-ghost {
  background: transparent; color: var(--muted-foreground);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-weight: 600; font-size: 12.5px;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 9px; font-size: 12px; font-weight: 600;
  background: var(--card-2); color: var(--foreground);
}
.pill.win { border-color: rgba(74, 222, 128, 0.5); color: #4ade80; }
.pill.loss { border-color: rgba(248, 113, 113, 0.45); color: #f87171; }

/* ---------- board ---------- */
.next-up {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 13px 14px;
  background: linear-gradient(120deg, rgba(250, 70, 22, 0.22), rgba(59, 120, 240, 0.22));
  border: 1px solid var(--border);
  font-size: 13px;
}
.next-up b { font-family: "Archivo", sans-serif; }
.members-row { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 2px; }
.member-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted-foreground); min-width: 52px; text-align: center; }
.member-mini .avatar { width: 42px; height: 42px; font-size: 21px; }

.composer textarea {
  width: 100%; resize: vertical; min-height: 64px;
  background: var(--card-2); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; font-size: 14px;
}
.composer .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.post .post-head { display: flex; gap: 10px; align-items: center; }
.post .post-name { font-weight: 700; font-size: 14px; }
.post .post-time { font-size: 11.5px; color: var(--muted-foreground); }
.post .post-text { margin-top: 9px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.pin-tag { font-size: 10.5px; font-weight: 700; color: var(--primary-bright); text-transform: uppercase; letter-spacing: 0.06em; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reaction {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px;
  font-size: 13px; color: var(--foreground);
}
.reaction.mine { border-color: var(--primary); background: rgba(250, 70, 22, 0.16); }
.replies { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 9px; }
.reply { display: flex; gap: 8px; font-size: 13.5px; }
.reply .avatar { width: 28px; height: 28px; font-size: 15px; }
.reply .rname { font-weight: 700; font-size: 12.5px; }
.reply-form { display: flex; gap: 8px; margin-top: 10px; }
.reply-form input {
  flex: 1; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px; color: var(--foreground); font-size: 13px;
}

/* ---------- game day ---------- */
.hero-game {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, var(--gator-blue) 0%, #123a8f 55%, var(--primary) 130%);
  border: 1px solid var(--border);
}
.hero-game .matchup { font-family: "Archivo", sans-serif; font-size: 21px; font-weight: 800; line-height: 1.25; }
.hero-game .meta { font-size: 12.5px; opacity: 0.92; margin-top: 6px; line-height: 1.55; }
.game-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.game-row .g-main { min-width: 0; }
.game-row .g-opp { font-weight: 700; font-size: 14.5px; }
.game-row .g-meta { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; line-height: 1.5; }
.game-row .g-score { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 17px; text-align: right; white-space: nowrap; }
.game-row .g-score small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 10.5px; color: var(--muted-foreground); letter-spacing: 0.05em; }
.result-w { color: #4ade80; }
.result-l { color: #f87171; }

/* ---------- pick'em ---------- */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-family: "Archivo", sans-serif; font-weight: 800; width: 22px; text-align: center; color: var(--muted-foreground); }
.lb-row.leader .lb-rank { color: var(--primary-bright); }
.lb-name { font-weight: 700; font-size: 14px; flex: 1; }
.lb-name small { display: block; font-weight: 500; color: var(--muted-foreground); font-size: 11.5px; }
.lb-pts { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 18px; }
.lb-pts small { font-size: 10.5px; color: var(--muted-foreground); font-family: "Inter", sans-serif; font-weight: 600; }
.pick-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); }
.pick-line:last-child { border-bottom: none; }
.pick-line .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pick-line .avatar { width: 26px; height: 26px; font-size: 14px; }
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; padding: 9px 6px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--foreground); font-weight: 700; font-size: 13px;
}
.seg button.sel { border-color: var(--primary); background: rgba(250, 70, 22, 0.18); }
.score-inputs { display: flex; gap: 8px; align-items: center; }
.score-inputs input {
  width: 64px; padding: 8px; text-align: center;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--foreground); font-size: 15px; font-weight: 700;
}
.field-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); margin: 12px 0 6px; }

/* ---------- trips ---------- */
.expense-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); font-size: 13.5px; }
.expense-row:last-child { border-bottom: none; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.check-row .done { text-decoration: line-through; color: var(--muted-foreground); }
.check-row .who { margin-left: auto; font-size: 11.5px; color: var(--muted-foreground); }

/* ---------- polls ---------- */
.poll-opt { margin-top: 10px; }
.poll-bar-wrap {
  position: relative; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--card-2);
  padding: 9px 12px; cursor: pointer; width: 100%; text-align: left; color: var(--foreground);
  display: block; font-size: 14px;
}
.poll-bar-fill { position: absolute; inset: 0 auto 0 0; background: rgba(59, 120, 240, 0.35); }
.poll-bar-wrap.mine { border-color: var(--primary); }
.poll-bar-wrap.mine .poll-bar-fill { background: rgba(250, 70, 22, 0.3); }
.poll-bar-txt { position: relative; display: flex; justify-content: space-between; font-weight: 600; }

.footer-note { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--muted-foreground); line-height: 1.6; }
