@import '../Styles/styles.scss';

MapVoteHud {
  pointer-events: none;
  color: $text-primary-color;
  font-family: $font-secondary;

  .map-vote-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    pointer-events: all;

    .panel {
      width: 1180px;
      flex-direction: column;
      gap: 22px;
      padding: 28px;
      border-radius: 6px;
      background-color: rgba(10, 10, 10, 0.9);
      box-shadow: 0 16px 64px rgba(0, 0, 0, 0.55);
    }

    .header {
      align-items: center;
      justify-content: space-between;
      
      .header-copy {
        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);
        }
      }

      .timer {
        width: 72px;
        height: 72px;
        align-items: center;
        justify-content: center;
        border-radius: 36px;
        background-image: linear-gradient(to bottom, $selected, $selected-dark);
        font-size: 42px;
        text-stroke: 5px black;
      }
    }

    .options {
      flex-direction: row;
      gap: 14px;
      pointer-events: all;
    }

    .option {
      width: 270px;
      height: 230px;
      position: relative;
      overflow: hidden;
      border-radius: 5px;
      border: 3px solid rgba(255, 255, 255, 0.12);
      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;
      }

      .hub-icon {
        position: absolute;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        background-image: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.95));

        i {
          font-size: 92px;
          color: rgba(255, 255, 255, 0.7);
          text-stroke: 8px black;
        }
      }

      .shade {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
      }

      .content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
      }

      .name {
        align-items: center;
        justify-content: space-between;
        gap: 8px;

        label {
          font-size: 28px;
          text-stroke: 5px black;
          text-overflow: ellipsis;
        }

        i {
          font-size: 30px;
          color: deepskyblue;
          text-stroke: 4px black;
        }
      }

      .votes {
        align-self: flex-start;
        padding: 4px 8px;
        border-radius: 4px;
        font-family: $font-primary;
        font-size: 18px;
        font-weight: bold;
        background-color: rgba(0, 0, 0, 0.72);
        color: rgba(255, 255, 255, 0.84);
      }

      &.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.46);
      }
    }
  }
}
