/* ADHD Made It — shared styles for madeit.html, submit.html, review.html */
:root {
  --black: #0B2018;
  --deep: #081A13;
  --surface: #11291F;
  --surface-light: #173426;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --amber: #D4A04A;
  --amber-dim: #A07830;
  --amber-wash: rgba(212, 160, 74, 0.10);
  --green: #4ADE80;
  --green-dim: rgba(74, 222, 128, 0.12);
  --green-bright: #6EE7A0;
  --gold-line: rgba(212, 160, 74, 0.35);
  --red: #EF4444;
  --red-dim: rgba(239, 68, 68, 0.10);
  --text: #E8E4DF;
  --text-muted: #888580;
  --white: #F5F2ED;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

/* ── TOP BAR ── */
.topbar {
  border-bottom: 1px solid var(--gold-line);
  background: var(--deep);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.topbar-right a { color: var(--text); text-decoration: none; }
.topbar-right a:hover { color: var(--amber); }

/* ── HERO ── */
.hero { padding: 88px 0 56px; position: relative; }
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 1px;
  background: var(--green);
  opacity: 0.5;
  transform: translateX(-50%);
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 400;
}
.hero h1 span { color: var(--amber); }
.hero-sub {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 680px;
}

/* ── SECTIONS ── */
.section { padding: 48px 0; border-top: 1px solid var(--border); }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.section h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--white);
  margin-bottom: 24px;
}

/* ── PLACARDS ── */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.placard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.placard:hover { border-color: var(--gold-line); }
.placard-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placard-media img { width: 100%; height: 100%; object-fit: cover; }
.placard-media .glyph {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--amber-dim);
}
.placard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plaque {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-wash);
  border: 1px solid rgba(212,160,74,0.25);
  border-radius: 3px;
  padding: 3px 8px;
}
.placard h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--white);
}
.placard .maker { font-size: 14px; color: var(--text-muted); }
.placard .desc { font-size: 15px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.placard .visit {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.placard .visit:hover { text-decoration: underline; }

/* Featured: wide, image beside text */
.placard.featured { flex-direction: row; border-color: var(--gold-line); box-shadow: 0 0 0 1px rgba(212,160,74,0.08), 0 20px 60px rgba(0,0,0,0.4); }
.placard.featured .placard-media { flex: 1 1 55%; aspect-ratio: auto; min-height: 340px; }
.placard.featured .placard-body { flex: 1 1 45%; padding: 32px; gap: 12px; }
.placard.featured h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.placard.featured .desc { font-size: 16px; }
@media (max-width: 720px) {
  .placard.featured { flex-direction: column; }
  .placard.featured .placard-media { min-height: 0; aspect-ratio: 4 / 3; }
  .placard.featured .placard-body { padding: 22px; }
}

/* Empty spot */
.placard.open {
  background: transparent;
  border: 1.5px dashed var(--gold-line);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  padding: 28px;
  gap: 10px;
}
.placard.open h3 { font-size: 1.3rem; color: var(--text); }
.placard.open p { font-size: 14px; color: var(--text-muted); }
.placard.open a { font-size: 14px; font-weight: 600; text-decoration: none; }

.note { font-size: 14px; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--amber); color: var(--black); }
.btn-primary:hover { background: #E0B060; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hover); }
.btn-ghost:hover { border-color: var(--amber); color: var(--white); }
.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--green-bright); }
.btn-red { background: transparent; color: var(--red); border-color: rgba(239,68,68,0.4); }
.btn-red:hover { background: var(--red-dim); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-small { font-size: 14px; padding: 9px 18px; }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-muted); text-decoration: underline;
}
.linkish:hover { color: var(--amber); }

/* ── CALL TO ACTION ── */
.cta {
  text-align: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta p { color: var(--text-muted); margin-bottom: 28px; }

/* ── PANELS & FORMS ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}
@media (max-width: 520px) { .panel { padding: 22px; } }
.panel h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}
.panel > p { color: var(--text-muted); margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field label, .field .label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.field .hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.field .tag { font-weight: 400; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--deep);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
input[type=file] { color: var(--text-muted); font-size: 14px; max-width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.chip input:checked + span { background: var(--amber); color: var(--black); border-color: var(--amber); font-weight: 600; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  background: var(--amber-wash);
  font-size: 15px;
  cursor: pointer;
}
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }

.divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-muted); margin: 22px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

.msg { font-size: 15px; padding: 12px 14px; border-radius: 4px; margin-top: 16px; }
.msg:empty { display: none; }
.msg.ok { background: var(--green-dim); color: var(--green); }
.msg.err { background: var(--red-dim); color: #F87171; }
.msg.info { background: var(--amber-wash); color: var(--amber); }

.done { text-align: center; padding: 48px 32px; }
.done h2 { margin-bottom: 12px; }

/* ── REVIEW ── */
.queue { display: flex; flex-direction: column; gap: 20px; }
.review-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
@media (max-width: 640px) { .review-card { grid-template-columns: 1fr; } }
.review-card .placard-media { border-radius: 4px; }
.review-card h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.5rem; color: var(--white); }
.review-card .meta { font-size: 13px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.review-card .desc { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0; }
.review-card .link { overflow-wrap: anywhere; font-size: 14px; }
.review-card .row { margin-top: 16px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.hidden { display: none !important; }
