/* FairDrop prototype styles. Swap colours/fonts here to match the Figma designs. */
:root {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --ink: #1c1917;
  --muted: #78716c;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #e7e2da;
  --ok: #15803d;
  --bad: #b91c1c;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand-dark); }
h1 { margin: .2em 0 .3em; line-height: 1.2; }
code { background: #f1ede6; padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--ink); }
.logo span { color: var(--brand); }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); }
.inline { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }

.site-footer { margin-top: 48px; padding-bottom: 32px; color: var(--muted); font-size: .85rem; }
.sim { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.hero { margin-bottom: 24px; }
.hero h1 { font-size: 2.2rem; }
.hero p { color: var(--muted); max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.drop-card { text-decoration: none; color: inherit; transition: transform .1s, box-shadow .1s; }
.drop-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.drop-card h2 { margin: 10px 0 0; }
.narrow { max-width: 520px; margin: 0 auto; }
.drop-detail, .queue-card { max-width: 640px; margin: 0 auto; }
.price { font-size: 1.5rem; font-weight: 700; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7e5e4; }
.badge-upcoming { background: #dbeafe; color: #1e40af; }
.badge-open, .badge-open-lottery-window { background: #dcfce7; color: #166534; }
.badge-sold-out { background: #fee2e2; color: #991b1b; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.facts div { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn-big { padding: 14px 26px; font-size: 1.1rem; }
.btn-small { padding: 6px 12px; color: #fff; }
.btn-secondary { background: #e7e5e4; color: var(--ink); }
.btn-secondary:hover { background: #d6d3d1; }

.big-status { font-size: 1.6rem; font-weight: 800; margin: 12px 0; }
.big-status.ok { color: var(--ok); }
.big-status.bad { color: var(--bad); }
.position { font-size: 4rem; font-weight: 800; color: var(--brand); line-height: 1; margin: 16px 0 8px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; background: #e0f2fe; }
.alert-success { background: #dcfce7; }
.alert-error { background: #fee2e2; }
.alert-warning { background: #fef3c7; }
.error { color: var(--bad); font-size: .85rem; display: block; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.space-between { justify-content: space-between; }
.stacked label { display: block; margin-bottom: 14px; font-weight: 600; }
.stacked input, .stacked select, .stacked textarea, .row select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.row select { width: auto; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f5f2ec; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--muted); }
.stat span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .table { font-size: .85rem; }
}
