/* ===== OG TOAST OVERLAY ===== */

#og-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(0px);
}

#og-toast-overlay.active { 
    opacity: 1; 
    background: rgba(0, 0, 0, 0.55); 
    backdrop-filter: blur(3px);
}
#og-toast-overlay.fade-out { 
    opacity: 0; 
    background: transparent;
    backdrop-filter: blur(0px);
    transition: opacity 0.8s ease-in, background 0.8s ease-in, backdrop-filter 0.8s ease-in; 
}

/* Vignette — kenar karartma */
#og-toast-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#og-toast-overlay.active #og-toast-vignette { opacity: 1; }

/* İçerik */
#og-toast-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 600px;
}

/* Üst etiket */
.og-toast-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  border: none !important;
}
.og-toast-badge::before, .og-toast-badge::after { content: none !important; display: none !important; }

#og-toast-overlay.active .og-toast-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Başlık */
.og-toast-title {
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              letter-spacing 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#og-toast-overlay.active .og-toast-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Açıklama */
.og-toast-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#og-toast-overlay.active .og-toast-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Şerit */
.og-toast-bar-track {
  position: relative;
  width: 320px;
  height: 2px;
  margin-top: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.og-toast-bar-fill {
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
#og-toast-overlay.active .og-toast-bar-fill {
  width: 100%;
  transition-delay: 0.4s;
}

/* XP */
.og-toast-xp {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#og-toast-overlay.active .og-toast-xp {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.7s;
}

/* --- TEMA: Achievement (altın) --- */
.og-toast--achievement .og-toast-badge      { color: #ffca28; text-shadow: 0 0 15px rgba(255, 202, 40, 0.4), 0 2px 4px rgba(0,0,0,0.5); }
.og-toast--achievement .og-toast-title      { font-size: 36px; letter-spacing: 1px; color: #ffffff; text-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 5px 15px rgba(0,0,0,0.8); }
.og-toast--achievement .og-toast-bar-fill   { background: linear-gradient(90deg, transparent, #ffca28, #ffffff, #ffca28, transparent); }
.og-toast--achievement .og-toast-xp         { color: #ffca28; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.og-toast--achievement .og-toast-description { color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* --- TEMA: Level Up (turkuaz) --- */
.og-toast--levelup .og-toast-badge          { color: #5de4c7; text-shadow: 0 0 15px rgba(93, 228, 199, 0.4), 0 2px 4px rgba(0,0,0,0.5); }
.og-toast--levelup .og-toast-title          {
  font-size: 52px;
  letter-spacing: 8px;
  color: #ffffff;
  text-shadow: 0 0 50px rgba(93, 228, 199, 0.6), 0 5px 20px rgba(0,0,0,0.8);
}
#og-toast-overlay.active .og-toast--levelup .og-toast-title {
  letter-spacing: 2px;
}
.og-toast--levelup .og-toast-bar-fill       { background: linear-gradient(90deg, transparent, #5de4c7, #ffffff, #5de4c7, transparent); height: 3px; }
.og-toast--levelup .og-toast-bar-track      { height: 3px; }
.og-toast--levelup .og-toast-xp             { color: #5de4c7; }
.og-toast--levelup .og-toast-description    { color: #89c4b8; font-weight: 600; font-size: 18px; }

/* Parçacık efekti (sadece level up) */
.og-toast-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.og-toast-particle {
  position: absolute;
  width: 6px; height: 6px;
  opacity: 0;
  border-radius: 2px;
}

#og-toast-overlay.active .og-toast-particle {
  animation: ogConfettiFall 3s ease-out forwards;
}

@keyframes ogConfettiFall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0); }
  10%  { opacity: 1; transform: translateY(-20px) rotate(45deg) scale(1.2); }
  100% { opacity: 0; transform: translateY(200px) translateX(var(--px)) rotate(var(--rot)) scale(0.5); }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .og-toast--achievement .og-toast-title { font-size: 26px; }
    .og-toast--levelup .og-toast-title { font-size: 36px; }
    .og-toast-bar-track { width: 240px; }
}
