/* Zero Hour — shared chrome styles for the popup AND the marketing-site demo.
 *
 * One source of truth for the wordmark bar, tab strip, snipe-card, thumb ring,
 * and FAB. Both the real Chrome popup and the .mockup demo on
 * zerohourbid.com import this file so they look identical.
 *
 * Outer frame (.mockup itself with rounded corners + glow) is NOT included
 * here — the popup IS the chrome, only the demo needs the frame.
 *
 * Required CSS variables (define on a parent selector):
 *   --bg, --surface, --surface-2, --border, --border-strong,
 *   --cyan, --amber, --gold, --red, --green,
 *   --text, --text-2, --text-3, --mono, --ease
 *
 * Class scope: every selector is prefixed with .zh-mock so consumers can
 * scope this to a wrapper element if they don't want it leaking.
 */

.zh-mock .mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.zh-mock .mock-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--text);
  text-transform: uppercase;
}
.zh-mock .mock-brand-bolt {
  width: 16px; height: 16px;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0,245,255,0.6));
}
.zh-mock .mock-brand-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: zh-pulse 2s ease-in-out infinite;
}
@keyframes zh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.zh-mock .mock-chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,245,255,0.45);
  color: var(--cyan);
  background: rgba(0,245,255,0.06);
}
.zh-mock .mock-icon-btn {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.zh-mock .mock-icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.zh-mock .mock-bar-actions { display: flex; gap: 6px; align-items: center; }

.zh-mock .mock-tabs {
  display: flex;
  margin: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.zh-mock .mock-tab {
  padding: 10px 16px;
  color: var(--text-3);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.zh-mock .mock-tab:hover { color: var(--text); }
.zh-mock .mock-tab.active,
.zh-mock .mock-tab[data-active="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.zh-mock .mock-tab:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.zh-mock [data-mock-panel][hidden] { display: none; }
.zh-mock .mock-list {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.zh-mock .snipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex; gap: 12px; align-items: center;
  position: relative;
  overflow: hidden;
}
.zh-mock .snipe-card .thumb {
  width: 54px; height: 54px; border-radius: 8px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.zh-mock .snipe-card .thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.zh-mock .snipe-card .ring {
  position: absolute; inset: -2px;
  border: 2px solid var(--cyan);
  border-radius: 10px;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(0,245,255,0.4));
  pointer-events: none;
}
.zh-mock .snipe-card .thumb-glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px; height: 28px;
  color: var(--cyan);
  opacity: 0.85;
}
.zh-mock .snipe-card.urgent .thumb-glyph { color: var(--amber); }
.zh-mock .snipe-card .meta { flex: 1; min-width: 0; }
.zh-mock .snipe-card .ttl {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.zh-mock-ttl,
.zh-mock .snipe-card a.ttl { text-decoration: none; }
.zh-mock .snipe-card a.ttl:hover { color: var(--cyan); }
.zh-mock .snipe-card .row {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-2);
  gap: 10px;
}
.zh-mock .snipe-card .row .price { color: var(--cyan); }
.zh-mock .snipe-card .row .cd { color: var(--amber); }
.zh-mock .snipe-card .row .price strong,
.zh-mock .snipe-card .row .cd strong { font-weight: 500; }
.zh-mock .snipe-card.urgent {
  border-color: rgba(255,184,0,0.4);
  box-shadow: 0 0 18px rgba(255,184,0,0.18);
}
.zh-mock .snipe-card.urgent .ring {
  border-color: var(--amber);
  filter: drop-shadow(0 0 6px rgba(255,184,0,0.4));
  opacity: 0.6;
}
.zh-mock .snipe-card.won .ring {
  border-color: #4ade80;
  filter: drop-shadow(0 0 6px rgba(74,222,128,0.45));
  opacity: 0.6;
}
.zh-mock .snipe-card.urgent .row .cd { color: var(--red); }

/* completed snipe states */
.zh-mock .snipe-card.won {
  border-color: rgba(34,197,94,0.32);
}
.zh-mock .snipe-card.won .thumb {
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,197,94,0.05));
}
.zh-mock .snipe-card.won .thumb-glyph { color: #4ade80; opacity: 0.95; }
.zh-mock .snipe-card.lost .thumb {
  background: linear-gradient(135deg, rgba(120,120,120,0.18), rgba(60,60,60,0.05));
}
.zh-mock .snipe-card.lost .thumb-glyph { color: var(--text-3); opacity: 0.85; }
.zh-mock .snipe-card.lost { opacity: 0.85; }
.zh-mock .snipe-card .row .price.won { color: #4ade80; font-weight: 600; }
.zh-mock .snipe-card .row .price.lost {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}
.zh-mock .snipe-card .row .cd.dim { color: var(--text-3); }

/* live snipe states (hero demo) */
.zh-mock .snipe-card .row .cd.sniping {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
  animation: zh-pulse-fast 0.7s ease-in-out infinite;
}
@keyframes zh-pulse-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Crossfade for state-text swaps (Sniping... → WON, etc.) */
.zh-mock .zh-fade-out {
  opacity: 0 !important;
  transform: translateY(-2px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.zh-mock .zh-fade-in {
  animation: zh-fade-in-up 0.35s var(--ease) both;
}
@keyframes zh-fade-in-up {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bracketed max-bid aside next to the final price on completed cards.
 * The whole .price (final price + aside) stays on one line; if the row
 * runs out of horizontal room the right-side timestamp truncates with
 * an ellipsis rather than the aside wrapping under the price. */
.zh-mock .snipe-card .row .price { white-space: nowrap; }
.zh-mock .snipe-card .row .price .max-aside {
  color: var(--text-3);
  font-weight: 400;
  margin-left: 4px;
  font-size: 0.92em;
}
.zh-mock .snipe-card .row .cd {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.zh-mock .snipe-card,
.zh-mock .snipe-card .thumb,
.zh-mock .snipe-card .thumb-glyph,
.zh-mock .snipe-card .row .price,
.zh-mock .snipe-card .row .cd {
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}

.zh-mock .mock-fab {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cyan);
  color: #021014;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0,245,255,0.6);
  animation: zh-mock-breathe 2.2s var(--ease) infinite;
  z-index: 10;
}
@keyframes zh-mock-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
