@import "../../styles/helper";

.vol-item {
  position: relative;
  box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.5);
  @include cursor;
  @include transition;

  &:hover {
    transform: scale(1.05);
    box-shadow: none;
  }

  & > * {
    z-index: 2;
    position: relative;
  }

  .vol-item-bg {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0.65;
  }

  .vol-item-cover {
    width: 100%;
    height: 0;
    padding-bottom: 70.6%;
    position: relative;
    box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
  }

  .vol-item-info {
    padding: 15px 20px 20px 20px;
    .vol-item-info-index {
      font-size: 2.5em;
      letter-spacing: 0.05em;
      font-family: "Savoye LET", sans-serif;
    }
    .vol-item-info-title {
      font-size: 1.3em;
      margin-top: 4px;
    }
    .vol-item-operation {
      position: absolute;
      right: 6%;
      top: 0;
      width: 66px;
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .icon {
        width: 28px;
        height: 28px;
      }
    }
  }

  .vol-item-tags {
    position: absolute;
    left: 10px;
    top: 6px;
    & > span {
      display: inline-block;
      color: white;
      background-color: rgba(0, 0, 0, 0.2);
      font-size: 10px;
      line-height: 14px;
      padding: 0 5px;
      height: 16px;
      border-radius: 16px;
      margin-right: 4px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
      @include transition;
      &:hover {
        background-color: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
      }
    }
  }
}
