@use '@inside-library/styles/mixins/partials/common-mixin' as *;
@use '@inside-library/styles/mixins/partials/gradient-mixin' as *;

.card-ged {
  position: relative;
  width: 32%;
  margin-bottom: 2rem;

  @include tablet {
    width: 48%;
  }

  @include mobile {
    width: 100%;
  }

  &-likes {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 5rem;
    height: 2.6rem;
    padding: 0 1rem;
    border-radius: 1.5rem;
    background-color: var(--color-light);

    span {
      margin-left: 0.4rem;
    }
  }

  &__img,
  &__video,
  &__gradient {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 15.5rem;

    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: all 0.3s ease;
    }

    img,
    canvas {
      width: 100%;
    }

    &:hover img {
      transform: translate(-50%, -50%) scale(1.08);
    }

    .video-background {
      height: 100%;
      object-fit: cover;
    }
  }

  &__img {
    canvas {
      height: 100%;
    }
  }

  &__gradient {
    @include gradient;
  }

  &__video {
    .play-img {
      width: 6rem;
      transform: translate(-50%, -50%) !important;
    }
  }

  &__img img,
  &__video img {
    @include transition(all 5s);
  }

  &__infos {
    position: relative;
    width: 78%;
    margin-top: 1rem;
    font-size: 13px;

    @include mobile {
      width: 82%;
    }

    &-title {
      margin-bottom: 0.4rem;

      span {
        color: var(--color-text);
      }
    }

    &-date {
      color: var(--color-text);
    }

    div &-interactions {
      position: absolute;
      right: 0;
      bottom: 0;
      display: flex;

      i::before,
      p {
        font-size: 13px;
      }

      div:first-of-type {
        margin-right: 1rem;
      }
    }
  }

  &__player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);

    i {
      position: relative;
      left: 3px;
      color: var(--color-light);
      font-size: var(--font-size-h3);
    }
  }

  .report-container {
    margin-left: var(--spacing-s);
  }
}
