/* ============================================================
   Marshall Institute — Homepage Stylesheet
   /assets/css/home.css

   Loaded ONLY on the homepage. Contains:
   - Hero band with concierge search
   - Concierge result panel
   - Search-data editor (admin-only)
   ============================================================ */

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, #0d1c2c 0%, #112030 55%, #091520 100%);
  padding: 80px 40px 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mi-gold);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp .6s .1s forwards;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 6.5vw, 79px);
  line-height: .98;
  text-transform: uppercase;
  color: var(--mi-white);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}
.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp .6s .3s forwards;
}
.hero-tagline-top {
  font-size: 19px;
  color: rgba(255,255,255,.6);
  line-height: 1.3;
  font-style: italic;
}
.hero-tagline-top strong { color: var(--mi-gold); font-weight: 700; }
.hero-tagline-bottom { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.5; }
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .4s forwards;
}

/* ── CONCIERGE ── */
.concierge-section { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.concierge-eyebrow { display: flex; align-items: center; gap: 10px; }
.concierge-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--mi-gold);
}
.concierge-label em { font-style: italic; }
.concierge-badge {
  background: var(--mi-gold);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.concierge-bar {
  width: 100%;
  max-width: 780px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(245,166,35,.35);
  border-radius: 999px;
  padding: 8px 8px 8px 28px;
  height: 68px;
  transition: border-color .2s, box-shadow .2s;
}
.concierge-bar:focus-within {
  border-color: rgba(245,166,35,.75);
  box-shadow: 0 0 28px rgba(245,166,35,.12);
}
.concierge-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--mi-white);
  letter-spacing: .02em;
}
.concierge-input::placeholder { color: rgba(255,255,255,.3); font-style: italic; }
.concierge-submit {
  background: var(--mi-gold);
  color: #000;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 0 30px;
  height: 50px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.concierge-submit:hover { background: var(--mi-gold-dark); }
.concierge-hint {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  letter-spacing: .04em;
  font-style: italic;
}

/* ── CHIPS ── */
.concierge-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
}
.chip:hover {
  background: rgba(245,166,35,.12);
  border-color: rgba(245,166,35,.4);
  color: var(--mi-gold);
}

/* ── RESULTS ── */
.concierge-results {
  width: 100%;
  max-width: 780px;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10,20,32,.97);
  margin-top: 4px;
}
.concierge-results.visible { display: flex; }
.results-header {
  padding: 12px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.results-header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mi-gold);
}
.results-count { font-size: 11px; color: rgba(255,255,255,.5); }
.result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: background .15s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: rgba(245,166,35,.06); }
.result-item.pinned {
  background: rgba(245,166,35,.04);
  border-left: 3px solid var(--mi-gold);
  padding-left: 17px;
}
.result-icon {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(245,166,35,.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 2px;
}
.result-icon.pinned-icon { background: rgba(245,166,35,.2); }
.result-body { flex: 1; }
.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mi-white);
  margin-bottom: 2px;
  line-height: 1.3;
}
.result-url {
  font-size: 11px;
  color: var(--mi-gold);
  letter-spacing: .03em;
  margin-bottom: 3px;
}
.result-desc { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.45; }
.result-pin-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mi-gold);
  background: rgba(245,166,35,.15);
  padding: 2px 6px;
  border-radius: 3px;
  align-self: center;
  flex-shrink: 0;
}
.result-arrow { color: rgba(255,255,255,.2); font-size: 16px; flex-shrink: 0; align-self: center; }
.no-results { padding: 20px 24px; font-size: 13px; color: rgba(255,255,255,.5); font-style: italic; }

/* ── No Results card ── */
.mi-no-results {
  background: var(--mi-white);
  border: 1.5px solid rgba(245,166,35,.3);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.mi-no-results-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.mi-no-results-icon svg { width: 36px; height: 36px; }
.mi-no-results-main { font-size: 16px; color: var(--mi-grey-800); line-height: 1.4; }
.mi-no-results-main strong { color: var(--mi-dark-teal); font-weight: 700; }
.mi-no-results-tip { font-size: 13px; color: rgba(143,163,177,1); line-height: 1.6; max-width: 380px; }
.mi-no-results-tip em { color: var(--mi-orange); font-style: normal; font-weight: 600; }
.mi-no-results-divider { width: 40px; height: 1px; background: rgba(0,0,0,.1); margin: 4px 0; }
.mi-no-results-help { font-size: 14px; font-weight: 600; color: var(--mi-dark-teal); }
.mi-no-results-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.mi-no-results-btn {
  background: var(--mi-dark-teal);
  color: var(--mi-white);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s;
  white-space: nowrap;
}
.mi-no-results-btn:hover { background: #0f3f49; }
.mi-no-results-btn-outline { background: transparent; color: var(--mi-dark-teal); border: 1.5px solid rgba(4,36,51,.25); }
.mi-no-results-btn-outline:hover { background: rgba(4,36,51,.05); border-color: var(--mi-dark-teal); }

/* ── Editor (admin-only via ?mi-admin=true) ── */
.editor-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--mi-gold);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(245,166,35,.4);
  transition: all .2s;
}
.editor-toggle:hover { background: var(--mi-gold-dark); transform: translateY(-1px); }
.editor-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: 480px;
  max-height: 80vh;
  background: #0a1520;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  border-right: none;
  border-radius: 12px 0 0 0;
  overflow-y: auto;
  z-index: 99;
  transform: translateY(100%);
  transition: transform .3s ease;
  box-shadow: -4px -4px 40px rgba(0,0,0,.5);
}
.editor-panel.open { transform: translateY(0); }
.editor-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #0a1520;
  z-index: 1;
}
.editor-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--mi-white);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.editor-close { background: none; border: none; color: rgba(255,255,255,.6); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.editor-close:hover { color: var(--mi-white); }
.editor-body { padding: 20px; }
.editor-section { margin-bottom: 24px; }
.editor-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mi-gold);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(245,166,35,.2);
}
.editor-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.editor-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--mi-white);
  outline: none;
  transition: border-color .2s;
}
.editor-input:focus { border-color: rgba(245,166,35,.5); }
.editor-input::placeholder { color: rgba(255,255,255,.2); }
.editor-textarea { resize: vertical; min-height: 60px; }
.editor-btn {
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mi-gold);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.editor-btn:hover { background: rgba(245,166,35,.25); }
.editor-btn.danger { background: rgba(255,80,80,.1); border-color: rgba(255,80,80,.25); color: #f88; }
.editor-btn.danger:hover { background: rgba(255,80,80,.2); }
.editor-save {
  width: 100%;
  background: var(--mi-gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.editor-save:hover { background: var(--mi-gold-dark); }
.page-entry {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.page-entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.page-entry-title { font-size: 12px; font-weight: 600; color: var(--mi-white); }
.pin-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.pin-label { font-size: 11px; color: rgba(255,255,255,.5); min-width: 60px; }
.editor-note { font-size: 11px; color: rgba(255,255,255,.3); line-height: 1.5; font-style: italic; margin-bottom: 12px; }

/* ── Hero animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero { padding: 56px 20px 64px; }
  .editor-panel { width: 100%; }
}
