/* ================================
   BASE STYLES
================================ */

.ai-share-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 18px 0 28px;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ai-share-left,
.ai-share-right {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

/* Divider */
.ai-share-right {
  border-left: 1px solid #e5e5e5;
  padding-left: 16px;
  justify-content: flex-end;
  text-align: right;
}

/* Labels */
.ai-share-label {
  flex-basis: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  white-space: nowrap;
}

/* Right align Share label */
.ai-share-right .ai-share-label {
  text-align: right;
}

/* Icons */
.ai-share-bar a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0; /* 🔥 KILLS ANY INLINE TEXT */
}

/* Kill ANY accidental text nodes */
.ai-share-bar a * {
  font-size: 0 !important;
}

/* SVG / IMG */
.ai-share-bar img,
.ai-share-bar svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
  filter: grayscale(100%) contrast(120%);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-share-bar a:hover img,
.ai-share-bar a:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* ================================
   LINK COPIED TOOLTIP (ONLY ON CLICK)
================================ */

.ai-share-bar a[data-share="copy"]::after {
  content: "Link copied";
  position: absolute;
  top: -30px;
  right: 0;
  background: #111;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Show ONLY when clicked */
.ai-share-bar a[data-share="copy"].copied::after {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {
  .ai-share-bar a {
    width: 18px;
    height: 18px;
  }

  .ai-share-label {
    font-size: 13px;
  }

  .ai-share-right {
    padding-left: 12px;
  }
}
