/**
 * VAULT SEAL OVERLAY
 * "Im Vault gesichert" - Native-style Toast Notification
 * Frosted Glass Effect mit animiertem goldenem Haken
 * Auto-closes nach 1.5-2.0s
 */

.vault-seal-overlay {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  
  /* Frosted Glass Material */
  background: var(--bg-overlay-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border: 1px solid rgba(230, 184, 125, 0.3);
  border-radius: 24px;
  
  padding: 14px 20px;
  
  /* Warmer Schein nach außen */
  box-shadow: 
    var(--shadow-lg),
    var(--glow-amber);
  
  z-index: 9999;
  
  opacity: 0;
  pointer-events: none;
  
  /* Smooth slide-in mit Bounce */
  transition: all var(--timing-overlay) var(--easing-bounce);
  
  /* Minimale Breite für gutes Aussehen */
  min-width: 280px;
  max-width: 400px;
}

.vault-seal-overlay.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.vault-seal-overlay.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-50px);
  pointer-events: none;
  transition: all var(--timing-normal) var(--easing-smooth);
}

/* ================================ */
/* CONTENT LAYOUT */
/* ================================ */

.vault-seal-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ================================ */
/* ANIMATED CHECKMARK ICON */
/* ================================ */

.vault-seal-icon {
  width: 36px;
  height: 36px;
  
  background: var(--accent-gold-primary);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  flex-shrink: 0;
  
  /* Warmer Glow */
  box-shadow: 0 0 15px rgba(230, 184, 125, 0.5);
  
  /* Pulse Animation beim Erscheinen */
  animation: vaultSealPulse 0.5s var(--easing-smooth);
}

.vault-seal-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #0A0A0A;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  
  /* SVG Path Animation - "Zeichnet" den Haken */
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.6s 0.2s var(--easing-smooth) forwards;
}

@keyframes vaultSealPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* ================================ */
/* TEXT CONTENT */
/* ================================ */

.vault-seal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vault-seal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.vault-seal-filename {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-warm-grey);
  
  /* Truncate lange Dateinamen */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ================================ */
/* MOBILE RESPONSIVENESS */
/* ================================ */

@media (max-width: 480px) {
  .vault-seal-overlay {
    top: 20px;
    min-width: 240px;
    max-width: calc(100vw - 40px);
    padding: 12px 16px;
  }
  
  .vault-seal-icon {
    width: 32px;
    height: 32px;
  }
  
  .vault-seal-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .vault-seal-title {
    font-size: 15px;
  }
  
  .vault-seal-filename {
    font-size: 12px;
    max-width: 200px;
  }
}
