/* NEXA Forge — Görev Yönetimi / Kanban (Apple tarzı) */

.tasks-toolbar {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 20px; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.tasks-toolbar .spacer { flex: 1; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: all var(--t-base);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-chip.active {
  background: var(--accent-primary);
  border-color: transparent;
  color: #fff;
}
.filter-chip .fc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.filter-chip.active .fc-dot { background: #fff !important; }

/* Kanban board */
.kanban-board {
  display: flex; gap: 20px;
  align-items: flex-start;
  position: relative; z-index: 1;
}
.kanban-col { flex: 1; min-width: 0; }

.kanban-col-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 0 2px;
}
.kanban-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.col-count {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}

.kanban-cards {
  min-height: 60px;
  border-radius: var(--radius-md);
  transition: background var(--t-base);
}
.kanban-cards.drag-over { background: var(--accent-soft); }

/* Görev kartı */
.task-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  height: 148px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.task-card:hover { box-shadow: var(--card-glow); transform: translateY(-1px); }
.task-card.dragging { opacity: 0.55; transform: rotate(1.5deg) scale(1.02); }

.tc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tc-title {
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  line-height: 1.35; flex: 1; min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.35em * 2);
}

.tc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.tc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.tc-assignee {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 500; color: var(--text-secondary);
  min-width: 0;
}
.tc-date {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
}
.tc-date .msr { font-size: 13px; }
.tc-date.overdue { color: var(--c-red); font-weight: 600; }

/* Kolon altı görev ekle */
.add-task-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  margin-top: 2px;
}
.add-task-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-soft);
}

@media (max-width: 1000px) {
  .kanban-board { flex-direction: column; align-items: stretch; }
}
