/* Ether badge styles — consumed by public/_ether/badge.js. */

#__ether_badge {
  position: fixed;
  right: 16px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(20, 20, 19, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  box-sizing: border-box;
  pointer-events: auto;
  transition: bottom 0.3s ease;
}

.__ether-owner-card-open #__ether_badge {
  display: none !important;
}

#__ether_badge a {
  text-decoration: none;
  color: #fff;
}

.__ether-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 20px;
  transition: width 260ms ease;
}

.__ether-pill-layer {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 260ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.__ether-pill-layer.__built {
  transform: translateY(0);
  opacity: 1;
}

.__ether-pill-layer.__by {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: translateY(-120%);
  opacity: 0;
}

#__ether_badge:hover .__ether-pill-layer.__built {
  transform: translateY(120%);
  opacity: 0;
}

#__ether_badge:hover .__ether-pill-layer.__by {
  transform: translateY(0);
  opacity: 1;
}

.__ether-pill-text {
  font-family: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
  max-width: calc(100vw - 80px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: "ss02" 1, "ss03" 1;
}

.__ether-pill-text.__built {
  font-weight: 500;
}

.__ether-pill-text.__by {
  font-weight: 400;
}

.__ether-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: #0073ff;
  color: #fff;
  font: 600 11px/1 system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.__ether-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.__ether-icon-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.__ether-icon-wrap img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.__ether-badge-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-left: 4px;
}

.__ether-badge-close:hover {
  color: rgba(255, 255, 255, 0.85);
}

.__ether-card-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: transparent;
  animation: __ether-fade-in 280ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.__ether-card {
  position: fixed;
  right: 16px;
  z-index: 2147483647;
  width: min(300px, calc(100vw - 32px));
  border-radius: 20px;
  background: rgba(20, 20, 19, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  transform-origin: bottom right;
  will-change: transform, opacity, filter;
  animation: __ether-card-in 420ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes __ether-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes __ether-card-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .__ether-card,
  .__ether-card-backdrop {
    animation: none;
  }
}

.__ether-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.__ether-card-iconbox {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #333330, #141413);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.__ether-card-iconbox img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.__ether-card-title {
  font-family: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #fff;
  margin: 0;
  font-feature-settings: "ss02" 1, "ss03" 1;
}

.__ether-card-byrow {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.__ether-card-byname {
  flex: 1 1 0;
  min-width: 0;
  font-family: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #fff;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-feature-settings: "ss02" 1, "ss03" 1;
}

.__ether-card-slackbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0.64;
  flex-shrink: 0;
}

.__ether-card-slackbtn:hover {
  opacity: 1;
}

.__ether-card-slackbtn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.__ether-card-primary {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  background: linear-gradient(90deg, #0b8ea0, #077c8c);
  color: #fff;
  font-family: "Host Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.__ether-card-primary svg {
  width: 16px;
  height: 16px;
}

.__ether-card-primary:hover {
  filter: brightness(1.04);
}

.__ether-card-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.__ether-card-close:hover {
  opacity: 0.85;
}

.__ether-card-close svg {
  width: 16px;
  height: 16px;
  display: block;
}
