@import "src/styles/variables";

$notification_color: darken($content_bg, 2%);

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.wrap {
  position: absolute;
  background: $notification_color;
  top: 42px;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: $radius;
  animation: appear 0.25s forwards;
  z-index: 2;

  &::before {
    content: ' ';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent $notification_color transparent;
    position: absolute;
    left: 50%;
    top: -16px;
    transform: translate(-20px, 0);
  }
}

.list {
  width: 300px;
  max-width: 100vw;
  min-width: 0;
  max-height: 400px;
  overflow: auto;
}

.item {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  flex-direction: column;
  padding: $gap;
  min-width: 0;
  cursor: pointer;

  svg {
    fill: white;
    margin-right: $gap;
  }
}

.item_head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
}

.item_title {
  flex: 1;
  white-space: nowrap;
  font: $font_14_semibold;
  overflow: hidden;
  text-overflow: ellipsis;
  // text-transform: none;
}

.item_text {
  font: $font_14_regular;
  max-height: 2.4em;
  padding-left: 30px;
  overflow: hidden;
}

.placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-transform: uppercase;
  font: $font_16_semibold;
  box-sizing: border-box;
  padding: 80px;
  text-align: center;
  line-height: 1.6em;

  svg {
    width: 120px;
    height: 120px;
    opacity: 0.05;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
