/* ==========================================================================
   Xoventra identity card
   Shared by the home sidebar and the profile page.
   ========================================================================== */

.xv-card-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
}

.xv-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(238, 245, 249, 0.52));
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(14, 20, 23, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 44px -24px rgba(6, 48, 63, 0.35);
}

/* Header - logo tile beside the name */

.xv-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.xv-card-logo {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(14, 20, 23, 0.05),
    0 6px 16px -10px rgba(6, 48, 63, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Beats the legacy .card-image sizing from profile.css. Fills the tile. */
.xv-card .xv-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  margin: 0;
}

.xv-card-id {
  min-width: 0;
}

.xv-card .xv-card-name {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #06303f;
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.xv-card-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(2, 98, 130, 0.1);
  border: 1px solid rgba(2, 98, 130, 0.18);
  color: #026282;
  font-size: 12.5px;
  font-weight: 600;
}

.xv-card-role i {
  font-size: 10.5px;
  opacity: 0.8;
}

.xv-card-divider {
  height: 1px;
  margin: 16px 0 13px;
  background: linear-gradient(90deg,
      transparent,
      rgba(14, 20, 23, 0.12) 15%,
      rgba(14, 20, 23, 0.12) 85%,
      transparent);
}

.xv-card .xv-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #33424a;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.xv-card .xv-card-desc.is-muted {
  color: #8a959b;
  font-style: italic;
  white-space: normal;
}

/* Action */

.xv-card .xv-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a7397, #013f55);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(2, 98, 130, 0.75);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.xv-card .xv-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(2, 98, 130, 0.85);
  color: #fff;
}

.xv-card .xv-card-cta i {
  font-size: 12px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.xv-card .xv-card-cta:hover i {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .xv-card {
    padding: 18px;
  }

  .xv-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .xv-card .xv-card-name {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .xv-card .xv-card-cta,
  .xv-card .xv-card-cta i {
    transition: none;
  }

  .xv-card .xv-card-cta:hover {
    transform: none;
  }
}