frontend/src/assets/styles/pages/_Votes.scss
@use '../base/breakpoints' as breakpoints;

.Votes {
  max-width: unset;
  height: 100%;
  overflow: hidden;

  &__container {
    padding: 1.75rem 1rem 1.5rem;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    max-width: 30rem;
    margin: 0 auto;
  }

  &__bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: rgba(var(--mui-palette-secondary-mainChannel) / 0.3) !important;
  }

  &__bg-circle {
    position: absolute;
    bottom: 20vh;
    left: 50%;
    width: 200vw;
    height: 200vw;
    z-index: -2;
    background-color: var(--mui-palette-background-main);
    border-radius: 200vw;
    transform: translateX(-50%);
  }

  &__stack {
    flex: 1;
    height: 70%;
    width: 100%;
    align-items: center;
    justify-content: end;
  }

  &__actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;

    @media only screen and (min-width: breakpoints.$width-mobile) {
      gap: 3rem;
    }

    .actions {
      &__pour,
      &__contre,
      &__passer {
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: unset !important;
        background-color: var(--mui-palette-white-main);

        svg,
        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }

        &:hover {
          background-color: var(--mui-palette-white-main);
        }
      }

      &__pour,
      &__contre {
        width: 4.5rem;
        height: 4.5rem;
        padding: 1rem;

        @media (min-height: breakpoints.$height-normal) {
          width: 5.5rem;
          height: 5.5rem;
          padding: 1.25rem;
        }
      }

      &__passer {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0.875rem !important;

        @media (min-height: breakpoints.$height-normal) {
          width: 4rem;
          height: 4rem;
          padding: 1.25rem !important;
        }

        svg {
          path {
            transition: fill 0.25s linear;
          }
        }

        @media (hover: hover) and (pointer: fine) {
          &:hover {
            background-color: var(--mui-palette-body-main);

            svg {
              path {
                fill: var(--mui-palette-white-main);
              }
            }
          }
        }
      }

      &__pour {
        @media (hover: hover) and (pointer: fine) {
          &:hover {
            background-color: var(--mui-palette-green-main);

            svg {
              fill: var(--mui-palette-white-main);
            }
          }
        }
      }

      &__contre {
        @media (hover: hover) and (pointer: fine) {
          &:hover {
            background-color: var(--mui-palette-red-main);

            svg {
              fill: var(--mui-palette-white-main);
            }
          }
        }
      }
    }
  }

  &__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.5rem;
    width: 100%;
    background-color: var(--vote-progress-color);
    z-index: 5;

    .progress {
      &__bar {
        background-color: var(--mui-palette-lightBlue-main);
        position: absolute;
        transition: width 0.3s ease-in-out;
        transition-delay: 0.3s;
        border-radius: 0 0.5rem 0.5rem 0;
        display: block;
        height: 0.5rem;
        padding: 0;
        margin: 0;
      }
    }
  }

  .swipe-card {
    &__container {
      overflow: unset !important;
      background: transparent !important;

      &:not(:last-child, :nth-last-child(2), :nth-last-child(3), :nth-last-child(4)) {
        display: none;
      }

      &:not(:last-child) {
        .swipe-card__content {
          filter: brightness(70%);
        }
      }
    }

    &__ribbon-like,
    &__ribbon-dislike {
      border-radius: 1rem;
      width: 10.625rem;
      height: 3.75rem;
      font-family: var(--font-title), sans-serif;
      font-style: italic;
      font-weight: 900;
    }

    &__image-container {
      display: none;
    }

    &__content {
      height: 100%;
      width: 100%;
      background: transparent !important;
      filter: brightness(100%);
      transition:
        filter 0.5s ease-out,
        opacity 0.5s ease-out;
    }
  }

  .Card {
    height: 100%;

    &__front {
      height: 100%;
    }
  }
}
