/* Kara ekran */
.black-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 9999;
  animation: fadeInBlack 2s ease-in-out;
}

/* WhatsApp bildirimi - büyük ve ortada */
.whatsapp-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  animation: notificationSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.app-icon {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff3b30;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  border: 3px solid white;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
}

.notification-text {
  flex: 1;
  overflow: hidden;
}

.app-name {
  font-weight: 700;
  font-size: 22px;
  color: #000;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.message-preview {
  font-size: 18px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.notification-time {
  font-size: 16px;
  color: #666;
  align-self: flex-start;
  margin-top: 4px;
  font-weight: 500;
}

/* Bildirim kaybolma efekti */
.whatsapp-notification.fade-out {
  animation: notificationSlideOut 1s ease-in-out forwards;
}

/* Animasyonlar */
@keyframes fadeInBlack {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes notificationSlideIn {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes notificationSlideOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
  }
}

/* Telefon uyumluluğu */
@media (max-width: 480px) {
  .whatsapp-notification {
    width: 95%;
    padding: 20px;
    border-radius: 18px;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .notification-badge {
    width: 24px;
    height: 24px;
    font-size: 14px;
    top: -6px;
    right: -6px;
  }

  .app-name {
    font-size: 20px;
  }

  .message-preview {
    font-size: 16px;
  }

  .notification-time {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .whatsapp-notification {
    padding: 18px;
  }

  .notification-content {
    gap: 15px;
  }

  .app-name {
    font-size: 18px;
  }

  .message-preview {
    font-size: 15px;
  }
}
