/* ==========================================================
   TIME AGO TOOLTIP
   Version : 2.0
========================================================== */

.timeago {
  position: relative;
  display: inline-block;
  cursor: help;
}

/* ==========================================================
   TOOLTIP BOX
========================================================== */

.timeago::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
  min-width: max-content;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: rgba(25, 30, 40, 0.92);
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  z-index: 99999;
}

/* ==========================================================
   ARROW
========================================================== */

.timeago::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(25, 30, 40, 0.92) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  z-index: 99998;
}

/* ==========================================================
   SHOW
========================================================== */

.timeago:hover::before,
.timeago:hover::after {
  opacity: 1;

  visibility: visible;
}

.timeago:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {
  .timeago {
    cursor: default;
  }

  .timeago::before,
  .timeago::after {
    display: none;
  }
}
