/* Search Preview Styles */
.search-preview {
  width: 100%;
  background: rgba(26, 34, 52, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.3, .7, .4, 1);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    0 16px 32px -4px rgba(0, 0, 0, 0.1);
}

.search-preview:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.25),
    0 20px 40px -8px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
}

.search-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
}

.search-icon {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.platform-badges {
  display: flex;
  gap: 8px;
  margin-left: auto;
}




.search-results {
  padding: 12px;
}

.result-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}



.result-platform {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.platform-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 0;
  overflow: visible;
}


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

.result-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.chat-name {
  color: #fff;
  font-weight: 500;
}

.timestamp {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.message-preview {
  color: #8fa1b8;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-preview mark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .search-preview {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .platform-badges {
    display: none;
  }
  
  .search-bar {
    padding: 10px 14px;
  }
  
  .result-item {
    padding: 12px;
  }
  
  .result-platform {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}