/*
  KB - UX Widget: Trace Identity Header
  File: assets/ux/ux-widget-trace-identity.css
  Direction: intimate, modern, quiet, full-width.
*/

.kb-ux-container > .kbmb-widget.kbmb-widget--trace-identity {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: clamp(320px, 44vh, 560px);
  padding: clamp(48px, 7vh, 96px) clamp(20px, 7vw, 132px);
  background: linear-gradient(180deg, #32485f 0%, #2d4158 100%);
  border-radius: 0;
  box-shadow: none;

  display: grid;
  gap: 12px;
  align-content: center;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__label {
  margin: 0 0 0 clamp(10px, 2.4vw, 38px);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 520;
  color: rgba(220, 229, 236, 0.70);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__name {
  margin: 0 0 0 clamp(10px, 2.4vw, 38px);
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.05;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: rgba(244, 248, 252, 0.97);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__signature {
  margin: 18px 0 0 clamp(10px, 2.4vw, 38px);
  max-width: min(760px, 100%);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.45;
  font-weight: 460;
  color: rgba(214, 223, 230, 0.90);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__birth {
  margin: 4px 0 0 clamp(10px, 2.4vw, 38px);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(200, 210, 220, 0.58);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__stats {
  margin: 16px 0 0 clamp(10px, 2.4vw, 38px);
  display: grid;
  gap: 8px;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.35;
  color: rgba(232, 239, 245, 0.92);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__stat-label {
  font-size: 14px;
  font-weight: 520;
  color: rgba(206, 218, 230, 0.86);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__stat-value {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 620;
  color: rgba(244, 248, 252, 0.96);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__stat--next .kbmb-trace-identity__stat-value {
  font-size: 15px;
  font-weight: 560;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__actions {
  margin: 18px 0 0 clamp(10px, 2.4vw, 38px);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.1;
  text-decoration: none;
  font-weight: 600;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__btn:hover,
.kbmb-widget--trace-identity .kbmb-trace-identity__btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper-icon[aria-pressed="true"] {
  border-color: rgba(212, 175, 55, 0.68);
  background: rgba(212, 175, 55, 0.30);
  color: #1f2e46;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper-icon:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.82);
  outline-offset: 2px;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper-tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(13, 22, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease;
}

.kbmb-widget--trace-identity .kbmb-trace-identity__helper:hover .kbmb-trace-identity__helper-tooltip,
.kbmb-widget--trace-identity .kbmb-trace-identity__helper:focus-within .kbmb-trace-identity__helper-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .kb-ux-container > .kbmb-widget.kbmb-widget--trace-identity {
    min-height: 300px;
    padding: 34px 18px;
    gap: 10px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__label {
    font-size: 12px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__stats {
    margin-top: 8px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__stat {
    gap: 7px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__stat-label {
    font-size: 13px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__stat-value {
    font-size: 18px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__stat--next .kbmb-trace-identity__stat-value {
    font-size: 14px;
  }

  .kbmb-widget--trace-identity .kbmb-trace-identity__actions {
    margin-top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}
