// Download Page Styles
// Only custom styles that cannot be achieved with Bootstrap

// Folder icon custom styling (gradient background and tab)
.folder-icon {
  width: 120px;
  height: 90px;
  background: linear-gradient(135deg, #fce7ab 0%, #facd55 100%);
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  &::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 0;
    width: 45px;
    height: 12px;
    background: linear-gradient(135deg, #f6c041 0%, #f1bc40 100%);
    border-radius: 4px 4px 0 0;
    z-index: -1;
  }

  i {
    color: rgba(0, 0, 0, 0.25);
  }
}

// Mac platform folder styling
[data-platform="mac"] .folder-icon {
  background: linear-gradient(135deg, #6BB6FF 0%, #4A9FFF 100%);

  &::before {
    background: linear-gradient(135deg, #5AA5EE 0%, #4A9FFF 100%);
    z-index: 1;
  }

  i {
    color: rgba(255, 255, 255, 0.4);
  }

  svg {
    opacity: 0.4;
    fill: white;

    path {
      fill: white;
    }
  }
}

// File icon sizing
.file-to-click {
  width: 100px;
  height: 100px;

  .brandmark {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
}

// Click indicator animation
.click-indicator {
  pointer-events: none;

  .pointer-icon {
    width: 48px;
    height: 48px;
    animation: mouse-move 3s ease-in-out infinite;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  .click-pulse {
    width: 30px;
    height: 30px;
    top: -2px;
    left: -2px;
    animation: click-pulse 3s ease-in-out infinite;
    opacity: 0;
  }
}

@keyframes mouse-move {
  0% {
    transform: translate(60px, -20px);
  }
  20%, 80% {
    transform: translate(0, 0);
  }
  81%, 100% {
    transform: translate(60px, -20px);
  }
}

@keyframes click-pulse {
  0%, 30% {
    opacity: 0;
    transform: scale(0.5);
  }
  40%, 50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
  55% {
    opacity: 0;
  }
  65%, 75% {
    opacity: 0.8;
    transform: scale(1.3);
  }
  80%, 100% {
    opacity: 0;
  }
}

// Wizard window sizing
.wizard-window {
  width: 250px;
  height: 150px;

  .wizard-header {
    height: 30px;
  }

  .wizard-content {
    height: calc(100% - 30px);
  }
}

// Progress bar container and animation
.progress-bar-container {
  height: 20px;

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    border-radius: 10px;
    animation: install-progress 3s ease-in-out infinite;
  }
}

@keyframes install-progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

// Launch app icon sizing
.app-icon {
  width: 100px;
  height: 100px;

  .brandmark {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
}


@keyframes app-appear {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

// Drag indicator animation for Mac drag-to-Applications
.drag-indicator {
  pointer-events: none;
  z-index: 10;

  .pointer-icon {
    width: 48px;
    height: 48px;
    animation: mouse-drag 3s ease-in-out infinite;
    position: relative;
    z-index: 11;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  .click-pulse {
    width: 30px;
    height: 30px;
    top: -2px;
    left: -2px;
    animation: drag-click-pulse 3s ease-in-out infinite;
    opacity: 0;
    z-index: 10;
  }
}

@keyframes mouse-drag {
  0%, 10% {
    transform: translate(0, 0);
  }
  40% {
    transform: translate(200px, 0);
  }
  40%, 60% {
    transform: translate(200px, 0);
  }
  61%, 100% {
    transform: translate(0, 0);
  }
}

@keyframes drag-click-pulse {
  0%, 3% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  7%, 10% {
    opacity: 0.6;
    transform: translate(0, 0) scale(1);
  }
  40% {
    opacity: 0.6;
    transform: translate(200px, 0) scale(1);
  }
  45%, 55% {
    opacity: 0.8;
    transform: translate(200px, 0) scale(1.3);
  }
  60%, 100% {
    opacity: 0;
    transform: translate(200px, 0) scale(0.5);
  }
}

.instruction-step-container {
  min-height: 200px;
}
