/* ==============================================
   Resume Notification — "Kaldığın Yerden Devam Et"
   Premium glassmorphism toast
   GPU-friendly animations (transform + opacity)
   ============================================== */

.rn-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9500;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: rgba(14,27,46,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow:
    0 12px 40px rgba(0,0,0,.4),
    0 4px 12px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}
.rn-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.rn-toast.is-hiding {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}

/* ---- Header row ---- */
.rn-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rn-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  animation: rnBreathe 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes rnBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.rn-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}
.rn-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.rn-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ---- Message ---- */
.rn-msg {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244,247,250,.85);
  margin: 0 0 4px;
  padding-left: 50px;
}
.rn-sub {
  font-size: 12px;
  color: rgba(244,247,250,.5);
  margin: 0 0 14px;
  padding-left: 50px;
}

/* ---- Actions ---- */
.rn-actions {
  display: flex;
  gap: 8px;
  padding-left: 50px;
}
.rn-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none;
}
.rn-btn-primary {
  background: linear-gradient(135deg, #16C1C7, #0EA5A9);
  color: #fff;
  box-shadow: 0 2px 10px rgba(22,193,199,.25);
}
.rn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,193,199,.35);
}
.rn-btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
}
.rn-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.rn-btn:active { transform: scale(.95); }

/* ---- Progress bar (auto-close indicator) ---- */
.rn-progress {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.rn-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #16C1C7, #F5922E);
  border-radius: 2px;
  transform-origin: left;
  animation: rnCountdown 5s linear forwards;
  will-change: transform;
}
.rn-toast.is-paused .rn-progress-bar {
  animation-play-state: paused;
}
@keyframes rnCountdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .rn-toast {
    top: 16px;
    right: 50%;
    transform: translateX(50%) translateY(-20px);
    width: 90vw;
    max-width: 360px;
  }
  .rn-toast.is-visible {
    transform: translateX(50%) translateY(0);
  }
  .rn-toast.is-hiding {
    transform: translateX(50%) translateY(-16px);
  }
  .rn-msg, .rn-sub, .rn-actions { padding-left: 0; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .rn-toast { transition: opacity .3s ease; transform: none !important; }
  .rn-toast.is-visible { transform: none !important; }
  .rn-toast.is-hiding { transform: none !important; }
  .rn-avatar { animation: none; }
  .rn-progress-bar { animation-duration: 5s; }
}
