/* ── NeitClem UI Showcase — Global Styles ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B2545;
  --dark:   #343A40;
  --red:    #D32F2F;
  --light:  #F2F4F5;
  --white:  #FFFFFF;
  --border: #DEE2E6;
  --muted:  #606F7B;
  --green:  #155724;
  --green-bg: #D4EDDA;
  --amber:  #856404;
  --amber-bg: #FFF3CD;
  --blue:   #185FA5;
  --blue-bg: #E6F1FB;
  --red-bg: #F8D7DA;
  --red-text: #721C24;
  --font: 'Segoe UI', Arial, sans-serif;
}

body { font-family: var(--font); background: #f0f2f5; color: var(--dark); font-size: 13px; }

/* ── SHOWCASE SHELL ── */
@keyframes nav-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes brand-icon-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.showcase-nav {
  background: var(--navy);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: nav-slide-down .4s cubic-bezier(.22,.68,0,1.2) both;
  box-shadow: 0 2px 12px #00000033;
}
.showcase-brand { color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.showcase-brand span { color: var(--red); }
.showcase-brand small { color: #8899bb; font-size: 10px; font-weight: 400; }
.showcase-brand > i { animation: brand-icon-pulse 3s ease-in-out infinite; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  color: #8899bb;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width .25s cubic-bezier(.4,0,.2,1), left .25s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 80%; left: 10%; }
.nav-link.active { color: #fff; background: transparent; }
.nav-link.active::after { width: 80%; left: 10%; background: var(--red); }

/* ── PAGE ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mockup frame hover lift */
.mockup-frame {
  will-change: transform;
  transition: box-shadow .25s ease, transform .25s ease;
}
.mockup-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px #0b254522;
}

.showcase-hero {
  background: var(--navy);
  padding: 48px 24px 40px;
  text-align: center;
  animation: fade-up .6s ease-in-out .1s both;
}
.showcase-hero h1 { color: #fff; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.showcase-hero h1 span { color: var(--red); }
.showcase-hero p { color: #8899bb; font-size: 13px; max-width: 600px; margin: 0 auto 20px; line-height: 1.6; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 12px;
  border: 1px solid #ffffff25; color: #ccd; background: #ffffff10;
}
.hero-badge.red { background: var(--red); color: #fff; border-color: var(--red); }

.section-header {
  padding: 32px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 0;
}
.section-header h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.section-header p { color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 700px; }
.section-tag {
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  background: var(--blue-bg); color: var(--blue); vertical-align: middle;
}
.section-tag.phase2 { background: var(--amber-bg); color: var(--amber); }

.mockup-wrapper { padding: 24px; }
.mockup-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.mockup-caption {
  font-size: 11px; color: var(--muted); padding: 8px 12px;
  background: var(--light); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 8px 8px;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 6px;
}
.mockup-caption strong { color: var(--dark); }

/* ── SHARED UI TOKENS ── */
.topbar {
  background: var(--navy); display: flex; align-items: center;
  justify-content: space-between; padding: 0 14px; height: 46px; flex-shrink: 0;
}
.logo { color: #fff; font-size: 14px; font-weight: 700; }
.logo span { color: var(--red); }
.tb-pill { background: #ffffff18; border: 1px solid #ffffff25; border-radius: 12px; color: #ccd; font-size: 10px; padding: 2px 9px; }
.tb-pill.red { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-icon { color: #aab; font-size: 17px; position: relative; cursor: pointer; }
.tb-badge { position: absolute; top: -3px; right: -4px; background: var(--red); color: #fff; font-size: 8px; border-radius: 50%; width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tb-badge.green { background: #1a7a3a; }
.tb-av { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: #28a745; display: inline-block; margin-right: 3px; }

/* ── LEFT NAV (shared) ── */
.side-nav { background: var(--navy); display: flex; flex-direction: column; padding: 10px 0; flex-shrink: 0; }
.nav-section-label { font-size: 9px; font-weight: 700; color: #5577aa; text-transform: uppercase; letter-spacing: .7px; padding: 6px 14px 3px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; color: #8899bb; border-left: 3px solid transparent; font-size: 11px; cursor: pointer; }
.nav-item.active { color: #fff; background: #ffffff0d; border-left-color: var(--red); }
.nav-item i { font-size: 14px; flex-shrink: 0; }
.nav-count { margin-left: auto; color: #fff; font-size: 9px; border-radius: 9px; padding: 1px 5px; font-weight: 700; background: var(--red); }
.nav-count.amber { background: #854F0B; }
.nav-count.green { background: #1a7a3a; }
.nav-count.blue { background: #185FA5; }
.nav-divider { height: 1px; background: #ffffff12; margin: 6px 10px; }

/* ── STATUS BADGES ── */
.badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 10px; display: inline-block; }
.badge.new { background: var(--blue-bg); color: var(--blue); }
.badge.review { background: var(--amber-bg); color: var(--amber); }
.badge.quoted { background: var(--blue-bg); color: var(--navy); }
.badge.bound { background: var(--green-bg); color: var(--green); }
.badge.urgent { background: var(--red-bg); color: var(--red-text); }
.badge.revision { background: var(--red-bg); color: var(--red-text); }
.badge.navy { background: var(--navy); color: #fff; }
.badge.phase2 { background: var(--amber-bg); color: var(--amber); border: 1px solid #ffc107; }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #f0f2f5; }
.card-title { font-size: 11px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 5px; }
.card-title i { font-size: 13px; color: var(--navy); }

/* ── TIMELINE ── */
.timeline { display: flex; margin-top: 5px; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-step::after { content: ''; position: absolute; top: 6px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.tl-step:last-child::after { display: none; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; margin: 0 auto 2px; position: relative; z-index: 1; border: 2px solid var(--border); background: #fff; }
.tl-dot.done { background: var(--navy); border-color: var(--navy); }
.tl-dot.active { background: var(--red); border-color: var(--red); }
.tl-label { font-size: 8px; color: #8090a0; }
.tl-label.done { color: var(--navy); font-weight: 700; }
.tl-label.active { color: var(--red); font-weight: 700; }

/* ── CHAT ── */
.chat-panel { background: #fff; display: flex; flex-direction: column; }
.chat-header { background: var(--navy); padding: 10px 12px; flex-shrink: 0; }
.chat-header-title { color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.chat-header-sub { color: #8899bb; font-size: 9px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #28a745; display: inline-block; }
.chat-tabs { display: flex; background: #f4f5f7; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-tab { flex: 1; text-align: center; padding: 6px 4px; font-size: 10px; font-weight: 700; color: #606F7B; cursor: pointer; border-bottom: 2px solid transparent; }
.chat-tab.active { color: var(--navy); border-bottom-color: var(--red); background: #fff; }
.tab-badge { background: var(--red); color: #fff; font-size: 7px; border-radius: 9px; padding: 0 4px; font-weight: 700; margin-left: 2px; }
.chat-msgs { padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.chat-msg { display: flex; flex-direction: column; gap: 2px; }
.chat-msg.me { align-items: flex-end; }
.msg-meta { font-size: 8px; color: #8090a0; display: flex; align-items: center; gap: 3px; }
.msg-avatar { width: 16px; height: 16px; border-radius: 50%; font-size: 7px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-bubble { max-width: 175px; font-size: 10px; line-height: 1.35; padding: 5px 8px; border-radius: 7px; }
.msg-bubble.other { background: #f4f5f7; color: #1a2a3a; border-radius: 0 7px 7px 7px; }
.msg-bubble.me { background: var(--navy); color: #fff; border-radius: 7px 0 7px 7px; }
.msg-bubble.broker { background: var(--blue-bg); color: #042C53; border-radius: 0 7px 7px 7px; }
.msg-bubble.agent { background: #E1F5EE; color: #04342C; border-radius: 0 7px 7px 7px; }
.msg-bubble.system { background: var(--amber-bg); color: var(--amber); font-size: 9px; text-align: center; border-radius: 5px; border: 1px solid #ffc107; max-width: 100%; padding: 3px 7px; }
.typing-hint { font-size: 8px; color: #8090a0; padding: 2px 9px; height: 13px; }
.chat-input-area { border-top: 1px solid var(--border); padding: 7px 8px; flex-shrink: 0; }
.chat-input-hint { font-size: 8px; color: #8090a0; margin-bottom: 3px; display: flex; align-items: center; gap: 3px; }
.chat-input-row { display: flex; gap: 4px; align-items: center; }
.chat-input { flex: 1; background: #f4f5f7; border: 1px solid var(--border); border-radius: 5px; font-size: 10px; padding: 5px 7px; outline: none; color: #333; }
.send-btn { background: var(--navy); color: #fff; border: none; border-radius: 5px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* ── MISC ── */
.stat-grid { display: grid; gap: 8px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 9px 10px; }
.stat-label { font-size: 9px; color: #606F7B; margin-bottom: 2px; }
.stat-val { font-size: 18px; font-weight: 700; color: var(--navy); }
.stat-sub { font-size: 8px; color: #8090a0; margin-top: 1px; }

.info-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #f0f2f5; font-size: 11px; }
.info-row:last-child { border-bottom: none; }
.info-key { color: #606F7B; }
.info-val { font-weight: 700; color: #1a2a3a; }

.flash-banner { background: var(--red); color: #fff; padding: 7px 14px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.flash-banner i { font-size: 14px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Large tablet / iPad Pro landscape (1024px – 1279px) ── */
@media (max-width: 1279px) {
  .mockup-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Tablet / iPad portrait (768px – 1023px) ── */
@media (max-width: 1023px) {
  /* Nav becomes two rows */
  .showcase-nav {
    height: auto;
    min-height: 52px;
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }

  /* Hero */
  .showcase-hero          { padding: 36px 20px 28px; }
  .showcase-hero h1       { font-size: 22px; }
  .showcase-hero p        { font-size: 12px; }

  /* Section header */
  .section-header         { padding: 22px 20px 14px; }
  .section-header h2      { font-size: 16px; flex-wrap: wrap; row-gap: 6px; }

  /* Mockup — scroll horizontally, no zoom */
  .mockup-wrapper         { padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mockup-caption         { font-size: 10px; }
}

/* ── Large phone / small tablet (600px – 767px) ── */
@media (max-width: 767px) {
  .showcase-brand small   { display: none; }
  .showcase-hero h1       { font-size: 19px; }
  .showcase-hero p        { max-width: 100%; font-size: 12px; }
  .hero-badge             { font-size: 9px; padding: 3px 10px; }
  .section-header         { padding: 18px 14px 12px; }
  .section-header h2      { font-size: 14px; }
  .section-header p       { font-size: 11px; }
  .section-tag            { display: none; }
  .mockup-wrapper         { padding: 10px; }
  .mockup-frame:hover     { transform: none; box-shadow: none; }
}

/* ── Mobile phone (< 600px) ── */
@media (max-width: 599px) {
  .showcase-nav           { padding: 8px 12px; gap: 5px; }
  .showcase-brand         { font-size: 13px; gap: 7px; }
  .nav-link               { font-size: 10px; padding: 4px 8px; }
  .showcase-hero          { padding: 24px 14px 20px; }
  .showcase-hero h1       { font-size: 16px; }
  .showcase-hero p        { font-size: 11px; margin-bottom: 14px; }
  .hero-badges            { gap: 5px; }
  .hero-badge             { font-size: 8px; padding: 3px 8px; }
  .section-header h2      { font-size: 13px; }
  .mockup-wrapper         { padding: 8px; }
  .mockup-caption         { font-size: 9px; padding: 6px 10px; }
}
