/* =========================================
   FOLLOW SYSTEM - MODAL & NOTIFICATION STYLES
   Prefix: fs- (follow-system)
   ========================================= */

/* ===== FOLLOW MODAL ===== */
.fs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.fs-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fs-modal {
  background: var(--bg-surface);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.fs-modal-overlay.active .fs-modal {
  transform: scale(1);
}

.fs-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fs-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fs-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.fs-modal-close-btn:hover {
  color: var(--text-primary);
}

.fs-modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.fs-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.fs-user-item:hover {
  background: var(--bg-muted);
}

.fs-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.fs-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fs-user-details {
  flex: 1;
  min-width: 0;
}

.fs-user-name {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.125rem;
}

.fs-user-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.fs-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.fs-empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* ===== NOTIFICATION BELL ===== */
.fs-notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.fs-notif-bell-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.fs-notif-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #ef4444;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  min-width: 1.125rem;
  text-align: center;
  line-height: 1;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.fs-notif-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.fs-notif-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fs-notif-header strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.fs-notif-mark-all {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.fs-notif-mark-all:hover {
  background: var(--color-primary-light);
}

.fs-notif-list {
  overflow-y: auto;
  flex: 1;
}

.fs-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
}

.fs-notif-item:last-child {
  border-bottom: none;
}

.fs-notif-item:hover {
  background: var(--bg-muted);
}

.fs-notif-item.unread {
  background: var(--color-primary-light);
}

.fs-notif-item.unread::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.fs-notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fs-notif-content {
  flex: 1;
  min-width: 0;
}

.fs-notif-message {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.fs-notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fs-notif-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .fs-modal {
    width: 95%;
    max-height: 90vh;
  }

  .fs-notif-dropdown {
    position: fixed;
    top: calc(var(--header-height, 4.5rem) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: 80vh;
    z-index: 10002;
  }

  .fs-user-avatar {
    width: 40px;
    height: 40px;
  }
}
