﻿@import '../Styles/styles.scss';

CosmeticUnlockedScreen {
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: all;
  
  &.show {
    opacity: 1;
  }
  
  .unlock-content {
    position: absolute;
    font-family: $font-secondary;
    z-index: 2;
    flex-direction: column;
    font-size: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 16px;
    width: 100%;
    height: 100%;
    
    .unlock-text {
      position: absolute;
      padding: 8px 16px;
      border-radius: 8px;
      font-family: $font-secondary;
      font-size: 64px;
      color: white;
      margin-bottom: 2px;
      top: 340px;
      text-shadow: 8px 8px 8px black;
    }
    
    .unlock-image {
      filter: drop-shadow(0px 10px 16px black) border-wrap(2px black);
    }
    
    .bottom-text {
      position: absolute;
      align-items: center;
      flex-direction: column;
      bottom: 330px;

      .unlock-name {
        font-size: 48px;
        color: white;
        text-shadow: 4px 4px 4px black;
      }

      .unlock-rarity {
        text-stroke: 3px black;
        text-shadow: 4px 4px 4px black;
      }
    }

    .buttons {
      position: absolute;
      bottom: 100px;
      gap: 8px;
      
      > button {
        font-size: 32px;
        border-radius: 4px;
        padding: 12px 24px;
        transition: transform 0.2s;
        
        &:hover {
          transform: scale(1.03);
        }
      }
      
      .equip-btn {
        color: white;
        background-image: $selected-gradient;
      }
      
      .back-btn {
        color: white;
        background-color: #333;
      }
    }
  }
  
  .star {
    width: 600px;
    height: 600px;
    mask-image: url("textures/ui/cosmetic_star.png");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-mode: alpha;
    animation: spin;
    animation-iteration-count: infinite;
    animation-duration: 16s;
  }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}