/* Modern Bildirim Sistemi CSS */

/* Bildirim Butonu */
.notification-bell {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.notification-bell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.notification-bell:active {
  transform: translateY(0);
}

.notification-bell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification-bell:hover::before {
  opacity: 1;
}

.notification-bell i {
  font-size: 1.4em;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.notification-bell:hover i {
  transform: scale(1.1);
}

/* Bildirim Badge */
.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.75em;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
  border: 2px solid #fff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Bildirim Modal */
.notification-modal {
  position: absolute;
  right: 0;
  top: 60px;
  background: rgba(30, 30, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  padding: 0;
  max-width: 380px;
  width: 360px;
  z-index: 2100;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.notification-modal.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Bildirim Header */
.notification-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-title {
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-title i {
  font-size: 1.2em;
}

.notification-actions {
  display: flex;
  gap: 8px;
}

.notification-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Bildirim Listesi */
.notification-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Bildirim Öğesi */
.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid #667eea;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  flex-shrink: 0;
}

.notification-icon.info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.notification-icon.success {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
  color: #fff;
}

.notification-icon.warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.notification-icon.error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
}

.notification-details {
  flex: 1;
  min-width: 0;
}

.notification-message {
  color: #fff;
  font-size: 0.95em;
  line-height: 1.4;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.notification-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-time i {
  font-size: 0.9em;
}

/* Bildirim Footer */
.notification-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
}

.notification-footer-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-footer-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.notification-footer-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.notification-footer-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-footer-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Boş Bildirim Durumu */
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.notification-empty i {
  font-size: 3em;
  margin-bottom: 16px;
  opacity: 0.5;
}

.notification-empty h4 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-size: 1.1em;
}

.notification-empty p {
  font-size: 0.9em;
  margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .notification-modal {
    position: fixed;
    right: 20px;
    left: 20px;
    width: auto;
    max-width: none;
    top: 80px;
  }
  
  .notification-bell {
    width: 44px;
    height: 44px;
  }
  
  .notification-badge {
    top: -1px;
    right: -1px;
    min-width: 18px;
    height: 18px;
    font-size: 0.7em;
  }
}

/* Bildirim Animasyonları */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.notification-slide-in {
  animation: slideInRight 0.3s ease-out;
}

.notification-slide-out {
  animation: slideOutRight 0.3s ease-in;
}

/* Toast Bildirimleri */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(30, 30, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 350px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast.success {
  border-left: 4px solid #56ab2f;
}

.notification-toast.warning {
  border-left: 4px solid #f093fb;
}

.notification-toast.error {
  border-left: 4px solid #ff6b6b;
}

.notification-toast.info {
  border-left: 4px solid #667eea;
}
