/**
 * Live conversation feed styles
 */

#conversation-feed {
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: rgba(20, 20, 35, 0.95);
  border-left: 1px solid #333;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

#conversation-feed .header {
  padding: 16px;
  border-bottom: 1px solid #333;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

#conversation-feed .header .live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

#conversation-feed .messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#conversation-feed .message {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  animation: slideIn 0.3s ease-out;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#conversation-feed .message:hover {
  background: rgba(255, 255, 255, 0.08);
}

#conversation-feed .message:active {
  transform: scale(0.99);
}

#conversation-feed .message .speaker {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#conversation-feed .message .speaker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#conversation-feed .message .speaker .arrow {
  color: white;
}

#conversation-feed .message .share-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

#conversation-feed .message .share-btn:hover {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

#conversation-feed .message .text {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
}

#conversation-feed .message .location {
  font-size: 10px;
  color: #666;
  margin-top: 6px;
}

#conversation-feed .conversation-start {
  text-align: center;
  font-size: 11px;
  color: #666;
  padding: 8px;
  border-bottom: 1px solid #333;
  margin-bottom: 4px;
}

#conversation-feed .conversation-end {
  text-align: center;
  font-size: 11px;
  color: #4ade80;
  padding: 4px;
}

#conversation-feed .jump-to-latest {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4ade80;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

#conversation-feed .jump-to-latest:hover {
  transform: translateX(-50%) scale(1.05);
}

#conversation-feed .jump-to-latest.visible {
  display: block;
}

/* Mobile feed toggle */
#feed-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid #333;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

#feed-toggle .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

#feed-toggle .badge.visible {
  opacity: 1;
}

/* Feed backdrop for mobile */
#feed-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

#feed-backdrop.visible {
  display: block;
}
