@import '../Styles/styles.scss';

PlayNowMapSelector {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font-family: $font-secondary;
  color: $text-primary-color;

  .play-now-button {
    position: absolute;
    right: 96px;
    bottom: 168px;
    width: 280px;
    height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 6px;
    background-image: linear-gradient(to bottom, rgba(250, 179, 25, 0.95), rgba(233, 125, 30, 0.95));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    transition: all 0.12s ease-out;

    .play-now-copy {
      flex-direction: column;

      .title {
        font-size: 32px;
        text-stroke: 3px rgba(0, 0, 0, 1);
      }

      .subtitle {
        font-family: $font-primary;
        font-size: 18px;
        font-weight: bold;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.87);
      }
    }

    InputGlyph {
      width: 48px;
      height: 48px;
      background-tint: white;
      filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.67));
    }
  }

  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: all;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
  }

  .selector {
    width: 900px;
    max-height: 780px;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border-radius: 6px;
    background-color: rgba(12, 12, 12, 0.94);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.55);
  }

  .selector-header {
    align-items: center;
    justify-content: space-between;

    .labels {
      flex-direction: column;

      .title {
        font-size: 56px;
        text-stroke: 4px black;
      }

      .subtitle {
        font-family: $font-primary;
        font-size: 20px;
        font-weight: bold;
        color: rgba(255, 255, 255, 0.72);
      }
    }
  }

  .close-button {
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);

    i {
      font-size: 38px;
    }

    &:hover {
      background-color: rgba(255, 255, 255, 0.16);
    }
  }

  .map-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .map-card {
    width: 270px;
    height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.12s ease-out;

    img {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-repeat: no-repeat;
    }

    .card-shade {
      position: absolute;
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86));
    }

    .card-content {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      flex-direction: column;
      gap: 10px;
      padding: 12px;
    }

    .card-title {
      align-items: center;
      justify-content: space-between;
      gap: 8px;

      label {
        font-size: 28px;
        text-stroke: 6px black;
        text-overflow: ellipsis;
      }

      i {
        font-size: 30px;
        color: deepskyblue;
        text-stroke: 4px black;
      }
    }

    .card-footer {
      align-items: center;
      justify-content: space-between;
    }

    .skill {
      i {
        font-family: 'Material Icons';
        font-size: 24px;
        color: $selected;
        text-stroke: 4px black;

        &.empty {
          color: #555;
        }
      }
    }

    .votes {
      min-width: 52px;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 24px;
      background-color: rgba(0, 0, 0, 0.7);
      text-stroke: 4px black;
    }

    .launching {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2;
      justify-content: center;
      padding: 8px;
      font-size: 24px;
      background-image: linear-gradient(to right, rgba(250, 179, 25, 0.95), rgba(233, 125, 30, 0.95));
      text-stroke: 5px black;
    }

    &.is-selected {
      border-color: deepskyblue;
      box-shadow: 0 0 18px rgba(0, 191, 255, 0.45);
    }

    &:hover {
      transform: scale(1.03);
      border-color: rgba(255, 255, 255, 0.45);
    }
  }
}
