/* src/client/features/tasks/styles/TaskCard.css */
/* Styles for TaskCard component */

.task-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.task-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  cursor: grab;
}

.task-card__header:active {
  cursor: grabbing;
}

.task-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  cursor: text;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__title-input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.task-card__title-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.task-card__delete {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.task-card__delete:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.task-card__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  cursor: default;
}

/* Smooth move animation for task items */
.task-card__body .task-item {
  transition: transform 0.2s ease, margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease, background-color 0.2s ease;
}

/* Визуальный placeholder для drag-and-drop */
.task-card__placeholder {
  height: 36px;
  display: flex;
  align-items: center;
  transition: margin-left 0.15s ease;
}

.task-card__placeholder-inner {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
  }
}

.task-card__empty {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.task-card__add-btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-top: 1px solid #e5e7eb;
}

.task-card__add-btn:hover {
  background-color: #e5e7eb;
}

.task-card__add-btn:active {
  background-color: #d1d5db;
}
