/* Fase 3.0.3 — stato mercato (zen, basso contrasto) */

.t1-market-status {
  position: relative;
  display: inline-block;
}

.t1-market-status__badge {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-family: var(--font-tech, var(--font-mono, monospace));
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 218, 230, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.t1-market-status__badge::-webkit-details-marker {
  display: none;
}

.t1-market-status__badge--static {
  cursor: default;
  opacity: 0.88;
}

/* Tier: stesso lessico del CHECK su `profili.status_label` */
.t1-market-status__badge[data-tier='superstar'] {
  color: rgba(255, 232, 190, 0.95);
  border-color: rgba(255, 200, 110, 0.38);
  background: rgba(255, 185, 70, 0.1);
}

.t1-market-status__badge[data-tier='star'] {
  color: rgba(255, 224, 170, 0.94);
  border-color: rgba(255, 190, 100, 0.32);
  background: rgba(255, 170, 60, 0.07);
}

.t1-market-status__badge[data-tier='volto-noto'] {
  color: rgba(200, 228, 255, 0.94);
  border-color: rgba(120, 190, 255, 0.28);
  background: rgba(80, 150, 255, 0.08);
}

.t1-market-status__badge[data-tier='emergente'] {
  color: rgba(210, 218, 230, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.t1-market-status__badge[data-tier='sconosciuto'] {
  color: rgba(165, 175, 190, 0.82);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
}

.t1-market-status__badge:hover:not(.t1-market-status__badge--static) {
  filter: brightness(1.08);
}

.t1-market-status__badge:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--geo-ice-cyan, #5ee7df) 55%, transparent);
  outline-offset: 2px;
}

.t1-market-status__badge:active:not(.t1-market-status__badge--static) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--geo-ice-cyan, #5ee7df) 35%, transparent),
    0 0 12px color-mix(in srgb, var(--geo-ice-cyan, #5ee7df) 22%, transparent);
}

@keyframes t1-market-status-ack {
  0% {
    box-shadow: none;
  }
  45% {
    box-shadow: 0 0 16px color-mix(in srgb, var(--geo-ice-cyan, #5ee7df) 40%, transparent);
  }
  100% {
    box-shadow: none;
  }
}

.t1-market-status--ack .t1-market-status__badge {
  animation: t1-market-status-ack 0.42s ease-out;
}

.t1-market-status__menu {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 4px);
  min-width: 10rem;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: rgba(10, 14, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.t1-market-status__item {
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(220, 226, 236, 0.92);
  cursor: pointer;
  transition: background 0.12s ease;
}

.t1-market-status__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.t1-market-status__item:active {
  background: rgba(255, 255, 255, 0.1);
}

.t1-market-status__item:focus-visible {
  outline: none;
  background: rgba(94, 231, 223, 0.12);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--geo-ice-cyan, #5ee7df) 45%, transparent);
}

.t1-market-status:not([open]) .t1-market-status__menu {
  display: none;
}
