@import '../../styles/breakpoints/index';

.list {
  box-shadow: inset 0 1px 0 0 var(--color-border);
  padding-top: calc(var(--margin) * 2);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--Pagination-itemSize));
  align-items: center;
  justify-content: center;
  grid-gap: calc(var(--gutter) / 2);
  margin-bottom: calc(var(--margin) * 2);
}

.link {
  color: var(--color-text);
  border-radius: 50%;
  display: grid;
  align-items: center;
  justify-content: center;
  height: var(--Pagination-itemSize);
  width: var(--Pagination-itemSize);
  position: relative;
}

.text {
  position: relative;
  font-size: var(--size-3);

  @media ($md) {
    font-size: var(--size-4);
  }
}

.link:not(.active):hover {
  color: var(--color-white);
}

.link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.link:not(.active):hover::before  {
  background-color: var(--color-primary);
}

.link:not(.active):active::before {
  transform: scale(1.1);
}

.link.active {
  color: var(--color-white);
  cursor: auto;
}

.link.active::before {
  background-color: var(--color-black-light-1);
}
