/* ===== NOTIFICACIONES ===== */

/* Campanita en header */
.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.notification-bell:hover {
  background: rgba(255,255,255,0.1);
}

.notification-bell svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: badgePulse 2s infinite;
}

.notification-badge.hidden {
  display: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Dropdown de notificaciones */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
  animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.notification-header button {
  background: none;
  border: none;
  color: var(--primary-color, #2563eb);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.notification-header button:hover {
  background: rgba(37, 99, 235, 0.1);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #f0f7ff;
}

.notification-item.unread:hover {
  background: #e3f0ff;
}

.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.notification-text strong {
  font-weight: 600;
}

.notification-time {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.notification-actions button {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-accept {
  background: var(--primary-color, #2563eb);
  color: #fff;
}

.btn-accept:hover {
  background: #1d4ed8;
}

.btn-reject {
  background: #e5e7eb;
  color: #374151;
}

.btn-reject:hover {
  background: #d1d5db;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
}

.notification-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ===== BOTÓN AGREGAR AMIGO ===== */

.friend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.friend-btn.add-friend {
  background: var(--primary-color, #2563eb);
  color: #fff;
}

.friend-btn.add-friend:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.friend-btn.pending {
  background: #fef3c7;
  color: #92400e;
}

.friend-btn.pending:hover {
  background: #fde68a;
}

.friend-btn.friends {
  background: #d1fae5;
  color: #065f46;
}

.friend-btn.remove-friend {
  background: #fee2e2;
  color: #b91c1c;
}

.friend-btn.remove-friend:hover {
  background: #fecaca;
}

.friend-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
  .notification-dropdown {
    position: fixed;
    top: calc(60px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
  
  .notification-item {
    padding: 12px;
  }
  
  .notification-avatar {
    width: 40px;
    height: 40px;
  }
}
