@use "/src/styles/utils.scss";

.detail {
  z-index: 10;
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0 10px 20px 10px;
  transition: 0.2s;
}

.detail.open {
  left: 0;
}

.container {
  height: 100%;
  background: linear-gradient(
    to bottom right,
    hsla(0, 0%, 100%, 0.2),
    hsla(0, 0%, 100%, 0)
  );
  box-shadow:
    -1px 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 30px 0 #ffffff54;
  backdrop-filter: blur(20px);
  @include utils.noise-bg;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 8px;
}

.btn-close {
  position: absolute;
  right: 5px;
  top: 5px;
}

.card {
  --width: 160px;
  width: var(--width);
  height: calc(var(--width) / var(--card-ratio));
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0px 0px -15px #5a627a,
    0 0px 5px -30px #41485f;
  transition: 0.3s;
  cursor: pointer;
  &:hover {
    --width: 200px;
    filter: contrast(1.1);
    box-shadow:
      25px 0px 2px -15px #5a627a,
      50px 0px 5px -30px #41485f;
  }
}

.title {
  font-size: 20px;
  font-family: var(--nato-serif-font);
  margin: 20px 0 15px;
  display: flex;
  justify-content: space-between;
  // color: rgba(255, 255, 255, 0.45);
}

.content {
  color: white;
}
